Exemple #1
0
        private Task Client_ClientError(ClientErrorEventArgs e)
        {
            Logger.Error($"Exception occured: {e.Exception.GetType()}: {e.Exception.Message}");

            return Task.CompletedTask;
        }
Exemple #2
0
        private Task Client_SocketClosed(SocketCloseEventArgs e)
        {
            Logger.Info($"Gateway connection closed. Code: {e.CloseCode}");

            return Task.CompletedTask;
        }
Exemple #3
0
        private Task Client_SocketErrored(SocketErrorEventArgs e)
        {
            Logger.Error("Gateway connection error", e.Exception);

            return Task.CompletedTask;
        }
Exemple #4
0
        private Task Client_Ready(ReadyEventArgs e)
        {
            Logger.Info("Client is ready to process events.");

            return Task.CompletedTask;
        }