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);
        }
示例#2
0
 protected override object Intercept(IInterceptor <Context> testing) => testing.InterceptAsync(context, invocation).WaitAndGetResult();
示例#3
0
        private async Task ExecuteWithoutReturnValueAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo)
        {
            await Task.Yield();

            await _abpInterceptor.InterceptAsync(new CastleMethodInvaocationAdapter(invocation, proceedInfo));
        }
示例#4
0
 protected override object Invoke(MethodInfo method, object[] parameters)
 {
     return(interceptor.InterceptAsync(method, parameters));
 }