コード例 #1
0
        public override Task SendAllAsync(string methodName, object[] args, CancellationToken cancellationToken = default)
        {
            if (IsInvalidArgument(methodName))
            {
                throw new ArgumentException(NullOrEmptyStringErrorMessage, nameof(methodName));
            }

            return(ServiceConnectionContainer.WriteAsync(
                       new BroadcastDataMessage(null, SerializeAllProtocols(methodName, args))));
        }
コード例 #2
0
 protected Task WriteAsync <T>(T message) where T : ServiceMessage, IMessageWithTracingId =>
 WriteCoreAsync(message, m => ServiceConnectionContainer.WriteAsync(message));
コード例 #3
0
        public override Task SendAllAsync(string methodName, object[] args, CancellationToken cancellationToken = default)
        {
            if (IsInvalidArgument(methodName))
            {
                return(Task.CompletedTask);
            }

            return(_serviceConnectionManager.WriteAsync(
                       new BroadcastDataMessage(null, SerializeAllProtocols(methodName, args))));
        }