コード例 #1
0
 public virtual Task NonAsyncDecoratedMethodWithTaskResponse(Request request)
 {
     return(LongRunningTask.Instance());
 }
コード例 #2
0
 public async virtual Task <Response> AsyncDecoratedMethodWithNoParameters()
 {
     return(await LongRunningTask.Instance <Response>());
 }
コード例 #3
0
 public async virtual void AsyncDecoratedMethodWithNoResponse(Request request)
 {
     await LongRunningTask.Instance();
 }
コード例 #4
0
 public virtual Task <Response> NonAsyncDecoratedMethodWithCancellationTokenAndTaskOfTResponse(Request request, CancellationToken cancel)
 {
     return(LongRunningTask.Instance <Response>());
 }
コード例 #5
0
 public async virtual Task <Response> AsyncDecoratedMethodWithTaskOfTResponse(Request request)
 {
     return(await LongRunningTask.Instance <Response>());
 }
コード例 #6
0
 public virtual Task <Response> NonAsyncDecoratedMethodWithCancellationTokenInWrongPlace(CancellationToken cancel, Request request)
 {
     return(LongRunningTask.Instance <Response>());
 }
コード例 #7
0
 public virtual Task <Response> NonAsyncDecoratedMethodWithCancellationTokenAndOtherParameters(
     Request request, CancellationToken cancel, object other)
 {
     return(LongRunningTask.Instance <Response>());
 }