Struct WithRawResponseTask
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
A task-like type that wraps Task<RawResponse> and provides dual-mode awaiting for endpoints with no response body:
- Direct await completes with no value (void semantics)
- .WithRawResponse() yields RawResponse (when raw response metadata is needed)
public readonly struct WithRawResponseTask
- Inherited Members
Constructors
WithRawResponseTask(Task<RawResponse>)
Creates a new WithRawResponseTask wrapping the given task.
public WithRawResponseTask(Task<RawResponse> task)
Parameters
taskTask<RawResponse>
Methods
ConfigureAwait(bool)
Configures the awaiter to continue on the captured context or not. The configured awaitable completes with no value.
public ConfiguredTaskAwaitable ConfigureAwait(bool continueOnCapturedContext)
Parameters
continueOnCapturedContextbool
Returns
GetAwaiter()
Awaiter delegates to the non-generic Task, completing with no value.
public TaskAwaiter GetAwaiter()
Returns
WithRawResponse()
Returns the underlying task that yields raw response metadata.
public Task<RawResponse> WithRawResponse()
Returns
Operators
implicit operator Task(WithRawResponseTask)
Implicitly converts WithRawResponseTask to global::System.Threading.Tasks.Task for backward compatibility.
public static implicit operator Task(WithRawResponseTask task)
Parameters
taskWithRawResponseTask