public override Task SendUserAsync(string userId, string methodName, object[] args, CancellationToken cancellationToken = default(CancellationToken))
        {
            var channel = _channels.User(userId);
            var message = _protocol.WriteInvocation(methodName, args);
            var server  = _options.ServerResovler.Resolve(_shardingServers, channel);

            return(PublishAsync(server, channel, message));
        }
예제 #2
0
        /// <inheritdoc />
        public override Task SendUserAsync(string userId, string methodName, object?[] args, CancellationToken cancellationToken = default)
        {
            var message = _protocol.WriteInvocation(methodName, args);

            return(PublishAsync(_channels.User(userId), message));
        }