示例#1
0
 public Task DoSomethingAsync()
 {
     var method = typeof(IHandWritten).GetMethod("DoSomethingAsync");
     var arguments = new object[0];
     var invocation = new VoidAsyncInvocation(this, invocationHandler, method, null, arguments, args => target.DoSomethingAsync());
     return invocationHandler.VoidAsyncInvoke(invocation);
 }
        public Task DoSomethingAsync()
        {
            var method     = typeof(IHandWritten).GetMethod("DoSomethingAsync");
            var arguments  = new object[0];
            var invocation = new VoidAsyncInvocation(this, invocationHandler, method, null, arguments, args => target.DoSomethingAsync());

            return(invocationHandler.VoidAsyncInvoke(invocation));
        }