Пример #1
0
        public override Task InvokeGroupExceptAsync(string groupName, string methodName, object[] args, IReadOnlyList <string> excludedIds)
        {
            if (groupName == null)
            {
                throw new ArgumentNullException(nameof(groupName));
            }

            var message = new RedisExcludeClientsMessage(GetInvocationId(), nonBlocking: true, target: methodName, excludedIds: excludedIds, arguments: args);

            return(PublishAsync(_channelNamePrefix + ".group." + groupName, message));
        }
Пример #2
0
        public override Task InvokeAllExceptAsync(string methodName, object[] args, IReadOnlyList <string> excludedIds)
        {
            var message = new RedisExcludeClientsMessage(GetInvocationId(), nonBlocking: true, target: methodName, excludedIds: excludedIds, arguments: args);

            return(PublishAsync(_channelNamePrefix + ".AllExcept", message));
        }