private async Task <object> InvokeWithFilters(GrainReference reference, InvokeMethodRequest request, InvokeMethodOptions options)
        {
            var invoker = new OutgoingCallInvoker(reference, request, options, this.sendRequestDelegate, this.grainReferenceMethodCache, this.filters);
            await invoker.Invoke();

            return(invoker.Result);
        }
 private async ValueTask InvokeMethodWithFiltersAsync(GrainReference reference, IInvokable request, InvokeMethodOptions options)
 {
     SetGrainCancellationTokensTarget(reference, request);
     var copy    = this.deepCopier.Copy(request);
     var invoker = new OutgoingCallInvoker <object>(reference, copy, options, this.sendRequest, this.filters);
     await invoker.Invoke();
 }
Example #3
0
        private async ValueTask <TResult> InvokeMethodWithFiltersAsync <TResult>(GrainReference reference, IInvokable request, InvokeMethodOptions options)
        {
            SetGrainCancellationTokensTarget(reference, request);
            var invoker = new OutgoingCallInvoker <TResult>(reference, request, options, this.sendRequest, this.filters);
            await invoker.Invoke();

            return(invoker.TypedResult);
        }