Share via


TaskExtensions.CultureAwaiter Struct

Definition

Provides an awaitable object that allows for awaits on Task that preserve the culture.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="Awaiter")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1815:OverrideEqualsAndOperatorEqualsOnValueTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")]
public struct TaskExtensions.CultureAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion
type TaskExtensions.CultureAwaiter = struct
    interface ICriticalNotifyCompletion
    interface INotifyCompletion
Public Structure TaskExtensions.CultureAwaiter
Implements ICriticalNotifyCompletion
Inheritance
TaskExtensions.CultureAwaiter
Attributes
Implements

Remarks

This type is intended for compiler use only.

Constructors

TaskExtensions.CultureAwaiter(Task)

Constructs a new instance of the TaskExtensions.CultureAwaiter class.

Properties

IsCompleted

Gets whether this Task has completed.

Methods

GetAwaiter()

Gets an awaiter used to await this Task.

GetResult()

Ends the await on the completed Task.

OnCompleted(Action)

This method is not implemented and should not be called.

UnsafeOnCompleted(Action)

Schedules the continuation onto the Task associated with this TaskAwaiter.

Applies to