コード例 #1
0
        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
ファイル: Async.cs プロジェクト: multinetinventiv/routine
 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
ファイル: ProxyGenerator.cs プロジェクト: zhongzepeng/EasyRpc
 protected override object Invoke(MethodInfo method, object[] parameters)
 {
     return(interceptor.InterceptAsync(method, parameters));
 }