private void OnFree(Message msg, Protocols.FreeKey free) { LockInfo info = new LockInfo(); info.RequestMessage = msg; info.Key = free.Key; info.Owner = free.Owner; info.Type = ProcessType.Free; mLockInfoQueue.Enqueue(info); }
public void Exit(string key, string owner) { Protocols.FreeKey free = new Protocols.FreeKey(); free.Owner = owner; free.Key = key; Protocols.LockResult result = Subscriber.Publish <Protocols.LockResult>(DMonitoCenter.SMART_DLOCKCENTER, free, TimeOut); if (!result.Success) { throw new DLockExecption(result.StatusMessage); } }