Пример #1
0
 protected void EventRemove <T>(T handler, [CallerMemberName] string eventName = null)
 {
     if (handler == null && !DtoGuid.Equals(Guid.Empty))
     {
         _client?.EventRemove(this, eventName);
     }
 }
Пример #2
0
 protected void EventRemove <T>(T handler, [CallerMemberName] string eventName = null)
 {
     if (_isDisposed == DisposedValue)
     {
         return;
     }
     if (handler == null && !DtoGuid.Equals(Guid.Empty))
     {
         _client?.EventRemove(this, eventName);
     }
 }