public void UnregisterNotify(Notify oldNotify) { if (oldNotify == null) { throw new ArgumentNullException("oldNotify == null"); } if (this.notify == null) { return; } lock (queue) { if (oldNotify != this.notify) { throw new ArgumentException("oldNotify != this.notify"); } if (alarmSet) { alarmSet = false; AlarmManager.staticRemove(this); } this.notify = null; this.state = null; } }
protected override bool SessionDown() { // Log.report( "KeepAliveSessionDown", "server", server ); up = false; AlarmManager.staticRemove(this); return(true); }
public bool CloseDelivery() { lock (queue) { if (queue.IsClosed()) { return(false); } if (alarmSet) { alarmSet = false; AlarmManager.staticRemove(this); } mailboxManager.Unregister(this); queue.Close(); } fireNotify(); return(true); }