I'm creating a server (PHP/JS) application which is communicating with a client application (C#) over Websockets (WS). The C# application is listening to port 4001 and the server application will create for each request (in javascript) a websocket to the C# application.
In the server application it is possible for the end-user to create a new e-mail, which will be send over the websocket so the client application creates the e-mail in Outlook (using Microsoft.Office.Interop.Outlook
). So far so good, everything is working fine.
I need to run this client application for each user on the remote desktop envoirment, because it's using the Microsoft.Office.Interop.Outlook
libary. This is impossible, because there can only be 1 instance of the application listening to port 4001. I read on various sources that it is impossible to use Microsoft.Office.Interop.Outlook
as a C# service.
My question is, how can I achieve that there is only one active instance of the client application on the server side, which can use the Microsoft.Office.Interop.Outlook
libary off the current user.