Exemple #1
0
 public void RemoveReconnectionProcessor(ReconnectionProcessor processor)
 {
     if (_reconnectionProcessor != null)
     {
         if (_reconnectionProcessor.GetInvocationList().Contains(processor))
         {
             _reconnectionProcessor -= processor;
         }
     }
 }
Exemple #2
0
 public void AddReconnectionProcessor(ReconnectionProcessor processor)
 {
     if (_reconnectionProcessor == null)
     {
         _reconnectionProcessor = processor;
     }
     else
     {
         if (_reconnectionProcessor.GetInvocationList().Contains(processor))
         {
             _reconnectionProcessor += processor;
         }
     }
 }