private void OnControllerDisconnected(object sender, EventArgs e) { if (this.disposed || this.disposing) { return; } ControllerError?.Invoke(sender, string.Format(CultureInfo.InvariantCulture, "Controller disconnected {0}", sender.GetType().Name)); }
private void OnControllerError(object sender, ControllerErrorEventArgs e) { if (this.disposed || this.disposing) { return; } ControllerError?.Invoke(sender, e.Message); }