Animatroller.ExpanderCommunication.NettyServerHandler.ExceptionCaught C# (CSharp) Метод

ExceptionCaught() публичный Метод

public ExceptionCaught ( IChannelHandlerContext context, Exception exception ) : void
context IChannelHandlerContext
exception System.Exception
Результат void
        public override void ExceptionCaught(IChannelHandlerContext context, Exception exception)
        {
            if (!(exception is ObjectDisposedException))
                log.Warn($"Exception in NettyServerHandler {context.Channel.Id.AsShortText()}: {exception.Message}");

            context.CloseAsync();
        }