Example #1
0
        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));
        }
Example #2
0
        private void OnControllerError(object sender, ControllerErrorEventArgs e)
        {
            if (this.disposed || this.disposing)
            {
                return;
            }

            ControllerError?.Invoke(sender, e.Message);
        }