/// <summary>The remove return listener.</summary> /// <param name="listener">The listener.</param> public void RemoveReturnListener(BasicReturnEventHandler listener) { if (this.returnListeners.Contains(listener)) { this.returnListeners.Remove(listener); this.channelDelegate.BasicReturn -= listener; } }
/// <summary>The add return listener.</summary> /// <param name="listener">The listener.</param> public void AddReturnListener(BasicReturnEventHandler listener) { this.returnListeners.Add(listener); this.channelDelegate.BasicReturn += listener; }