internal void OnDeserialized(StreamingContext context) { _client = (RemoteClient)context.Context; }
internal void OnDeserializedMethod(StreamingContext context) { _client = context.Context as RemoteClient; _client.EventNotification += _onEventNotificationMessage; }
protected virtual void DoDispose() { _client = null; Disposed?.Invoke(this, EventArgs.Empty); }
protected virtual void DoDispose() { _client.EventNotification -= _onEventNotificationMessage; _client = null; Disposed?.Invoke(this, EventArgs.Empty); }