Пример #1
0
 void IObservable <ListenerStartedArgs> .Notify(ListenerStartedArgs eventArgs)
 {
     if (_listenerStarted != null)
     {
         _listenerStarted.Invoke(this, eventArgs);
     }
 }
Пример #2
0
 void IObserver <ListenerStartedArgs> .OnNotified(object sender, ListenerStartedArgs eventArgs)
 {
     (this as IObservable <ListenerStartedArgs>).Notify(eventArgs);
 }
Пример #3
0
 void IObserver <ListenerStartedArgs> .OnNotified(object sender, ListenerStartedArgs eventArgs)
 {
     //var message = string.Format("Ready for connection at {0}", eventArgs.LocalEndPoint);
     //_view.UpdateStatus(message);
 }