Exemplo n.º 1
0
 /// <summary>
 /// Allows awaiting this object directly.
 /// </summary>
 public TaskAwaiter <TResponse> GetAwaiter()
 {
     return(ResponseAsync.GetAwaiter());
 }
Exemplo n.º 2
0
 /// <summary>Configures an awaiter used to await this task>.</summary>
 /// <param name="continueOnCapturedContext">
 /// true to attempt to marshal the continuation back to the original context captured; otherwise, false.
 /// </param>
 /// <returns>An object used to await this task.</returns>
 public IConfiguredTaskAwaitable <TResponse> ConfigureAwait(bool continueOnCapturedContext) =>
 new ConfiguredValueTaskAwaitableWrapper <TResponse>(ResponseAsync.ConfigureAwait(continueOnCapturedContext));