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

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

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

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

            return Task.CompletedTask;
        }