wcf - Communicate between two .Net Applications running on terminal services -


i have inhouse erp developed in .net , in process of developing outlook add on. need send message outlook add on running instance of erp open file. there many instances of erp on same server (1 per user using terminal services) , cant use wcf result.

i want outlook add on send message instance of erp running on user session. possible wcf? or other methods can use?

you can use window terminal services api session id include part of uri. eg, [system.runtime.interopservices.dllimport("wtsapi32.dll")] internal static extern bool wtsquerysessioninformation( system.intptr hserver, int sessionid, wts_info_class wtsinfoclass, out system.intptr ppbuffer, out uint pbytesreturned);

hserver = intptr.zero use local server (normally wanted unless you're managing client sessions remotely) sessionid can passed in -1 (wts_current_session) current session details if you're calling inside session.

i trying same (single service, 1 client per session) have run problem whereby named pipe listener appears getting closed when client session disconnected.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -