Пример #1
0
        private Task Client_ClientError(ClientErrorEventArgs e)
        {
            Logger.Error($"Exception occured: {e.Exception.GetType()}: {e.Exception.Message}");

            return Task.CompletedTask;
        }
Пример #2
0
        private Task Client_SocketErrored(SocketErrorEventArgs e)
        {
            Logger.Error("Gateway connection error", e.Exception);

            return Task.CompletedTask;
        }