public static async Task <RpcAggregateHelper> Create(Channel channel, int maxConcurrentCalls, ConsumeMode mode, int?timeoutInMs)
        {
            var instance = new RpcAggregateHelper(channel, maxConcurrentCalls, mode, timeoutInMs);
            await instance.Setup().ConfigureAwait(false);

            return(instance);
        }
Beispiel #2
0
        public static async Task <RpcAggregateHelper> Create(IChannel channel, int maxConcurrentCalls, ConsumeMode mode,
                                                             bool captureContext = false, int?timeoutInMs = null)
        {
            var instance = new RpcAggregateHelper(channel, maxConcurrentCalls, mode, timeoutInMs)
            {
                CaptureContext = captureContext
            };
            await instance.Setup().ConfigureAwait(captureContext);

            return(instance);
        }
Beispiel #3
0
        public Task <RpcAggregateHelper> CreateRpcAggregateHelper(ConsumeMode mode, int?timeoutInMs, int maxConcurrentCalls, bool captureContext)
        {
            EnsureOpen();

            if (_confirmationKeeper != null)
            {
                throw new Exception("This channel is set up for confirmations");
            }

            return(RpcAggregateHelper.Create(this, maxConcurrentCalls, mode, captureContext, timeoutInMs));
        }