multithreading - SignalR, Outlook add-in and multithread exception -
in outlook have code...
_connection = new hubconnection(me._url) _connection.credentials = credentialcache.defaultcredentials _hub = _connection.createhubproxy(me._hubname) _hub.on(of string)("newmessage", function(message) dim f new testform f.show() return "" end function) _connection.start()
but showing form "testform" crashes since in main thread , signalr on thread.
any idea how can make work?
your best attempt use dedicated thread signalr jobs , on main sta thread accessing outlook object model or displaying forms/wpf components.
this how can "continue" work on main thread: hooked events outlook vsto continuing job on main thread
Comments
Post a Comment