.Net clients on a Delphi server.
I need to have all the client connections from different services to be using the same ClientId so they can be recognized as part of the same session.
If I manually set the ClientID to the same GUID
It works, but I set all the connections to match the logged connection on creation of the message object via injection but somewhere along the way of instantiation and after logging in, it gets changed and the clients do not hold the updated value anymore.
So to save me some headaches, If I do something like
Clientconnection1.Message = LoggedConnection.Message;
ClientConnection2.Message = LoggedConnection.Message;
Will this be thread safe? does it clones the message internally? if not, does it locks it access or it is not thread safe at all?