public async Task <VariableData> DoAsync(ReferenceData target, string operation, Dictionary <string, ParameterValueData> parameters) { var context = NewContext(target, operation, parameters); var service = GetService(context); return(await @do.InterceptAsync(context, async() => await service.InterceptAsync(context, async() => await real.DoAsync(context.TargetReference, context.OperationName, context.ParameterValues) ) ) as VariableData); }
protected override object Intercept(IInterceptor <Context> testing) => testing.InterceptAsync(context, invocation).WaitAndGetResult();
private async Task ExecuteWithoutReturnValueAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo) { await Task.Yield(); await _abpInterceptor.InterceptAsync(new CastleMethodInvaocationAdapter(invocation, proceedInfo)); }
protected override object Invoke(MethodInfo method, object[] parameters) { return(interceptor.InterceptAsync(method, parameters)); }