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); } }
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"); } }