Exemple #1
0
        private bool ensureRegisterd(IChannelHandlerContext context)
        {
            if (!_checker.IsRegistered(context.Channel.Id.AsLongText()))
            {
                context.WriteAsync(RpcResponse.CreateUnregisterdResponse(10000));

                return(false);
            }

            return(true);
        }