Beispiel #1
0
            public void Dispose()
            {
                if (_listener != null)
                {
                    lock (_owner._gate)
                        _owner._listeners -= _listener;

                    _listener = null;
                    _owner    = null;
                }
            }
Beispiel #2
0
            public void Dispose()
            {
                if (_listener != null)
                {
                    lock (_owner._gate)
                        _owner._listeners = (Action <TOptions, string>)Delegate.Remove(_owner._listeners, _listener);

                    _listener = null;
                    _owner    = null;
                }
            }
Beispiel #3
0
 public ChangeRegistrationToken(DelegatedOptionsMonitor <TOptions> owner, Action <TOptions, string> listener)
 {
     _owner    = owner;
     _listener = listener;
 }