Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 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);
        }