Ejemplo n.º 1
0
 private void OnInteractorEvent(object sender, InteractorEventArgs args)
 {
     if (args is InteractorConnectedEventArgs)
     {
         OnInteractorConnected((InteractorConnectedEventArgs)args);
     }
     else if (args is InteractorMessageEventArgs)
     {
         OnMessage((InteractorMessageEventArgs)args);
     }
     else if (args is InteractorErrorEventArgs)
     {
         OnInteractorError((InteractorErrorEventArgs)args);
     }
 }
Ejemplo n.º 2
0
 private void OnInteractorEvent(object?sender, InteractorEventArgs args)
 {
     if (args is InteractorConnectedEventArgs)
     {
         OnInteractorConnected((InteractorConnectedEventArgs)args);
     }
     else if (args is InteractorErrorEventArgs)
     {
         OnInteractorError((InteractorErrorEventArgs)args);
     }
     else if (args is InteractorClosedEventArgs)
     {
         OnInteractorClosed((InteractorClosedEventArgs)args);
     }
     else if (args is InteractorMessageEventArgs)
     {
         OnMessage((InteractorMessageEventArgs)args);
     }
     else
     {
         _logger.LogError("Unhandled interactor event");
     }
 }