In Outlook I have this code...
_connection = New HubConnection(Me._url)
_connection.Credentials = CredentialCache.DefaultCredentials
_hub = _connection.CreateHubProxy(Me._hubName)
_hub.On(Of String)("NewMessage", Function(message)
Dim f As New TestForm
f.Show()
Return ""
End Function)
_connection.Start()
But showing my form "TestForm" crashes since its in the main thread and SignalR is on another thread.
Any idea how I can make it work?