/// <summary> /// Allows configuring awaiting for this object. /// </summary> public static ConfiguredTaskAwaitable <TResponse> ConfigureAwait <TResponse>( this IUnaryMethodCall <TResponse> methodCall, bool continueOnCapturedContext) { return(methodCall.ResponseAsync.ConfigureAwait(continueOnCapturedContext)); }
/// <summary> /// Allows converting this object to Task. /// </summary> public static Task <TResponse> AsTask <TResponse>(this IUnaryMethodCall <TResponse> methodCall) { return(methodCall.ResponseAsync); }
/// <summary> /// Allows awaiting this object directly. /// </summary> public static TaskAwaiter <TResponse> GetAwaiter <TResponse>(this IUnaryMethodCall <TResponse> methodCall) { return(methodCall.ResponseAsync.GetAwaiter()); }
/// <summary> /// Allows converting this object to Task. /// </summary> public static Task AsTask(this IUnaryMethodCall methodCall) { return(methodCall.ResponseAsync); }