I've been developing a WCF Service where clients logon with their guid that they obtain when logging in to the client and the guid gets registered at the WCF Service. But every once in a while... about almost everytime I logon with the same user login. The guid from user 'x' gets re-used..
This is the code:
public void Logon(ReceiveClient rc, string name)
{
try
{
inst = new InstanceContext(rc);
DMSNotificationClient = new DMSCSSendServiceClient(inst);
var ci = Guid.NewGuid();
ClientId = ci;
LoggedOnSince = DateTime.Now;
DMSNotificationClient.Logon(name);
ReceiveMsg += OnReceiveMsg;
FolderChange += OnFolderChange;
}
catch (Exception ex)
{
var dmsEx = new DmsException(ex);
DmsException.WriteErrorsToLog(dmsEx);
}
}
After some analyses of my C# Code I'm asking you this question:
Can I say that a GUID is NOT unique?