AsyncBridge Provides extension methods for threading-related types. Asynchronous wrappers for .NET Framework operations. Provides extension methods for threading-related types. AsyncCtpThreadingExtensions is a placeholder. Gets an awaiter used to await this . The task to await. An awaiter instance. Gets an awaiter used to await this . Specifies the type of data returned by the task. The task to await. An awaiter instance. Creates and configures an awaitable object for awaiting the specified task. The task to be awaited. true to automatic marshal back to the original call site's current SynchronizationContext or TaskScheduler; otherwise, false. The instance to be awaited. Creates and configures an awaitable object for awaiting the specified task. The task to be awaited. true to automatic marshal back to the original call site's current SynchronizationContext or TaskScheduler; otherwise, false. The instance to be awaited. Holds state related to the builder's IAsyncStateMachine. This is a mutable struct. Be very delicate with it. A reference to the heap-allocated state machine object associated with this builder. Initiates the builder's execution with the associated state machine. Specifies the type of the state machine.The state machine instance, passed by reference.The argument is null (Nothing in Visual Basic). Associates the builder with the state machine it represents. The heap-allocated state machine object.The argument was null (Nothing in Visual Basic).The builder is incorrectly initialized. Gets the Action to use with an awaiter's OnCompleted or UnsafeOnCompleted method. On first invocation, the supplied state machine will be boxed. Specifies the type of the method builder used.Specifies the type of the state machine used.The builder.The state machine. An Action to provide to the awaiter. Throws the exception on the ThreadPool. The exception to propagate.The target context on which to propagate the exception. Null to use the ThreadPool. Provides the ability to invoke a state machine's MoveNext method under a supplied ExecutionContext. The context with which to run MoveNext. The state machine whose MoveNext method should be invoked. Cached delegate used with ExecutionContext.Run. Initializes the runner. The context with which to run MoveNext. Invokes MoveNext under the provided context. Invokes the MoveNext method on the supplied IAsyncStateMachine. The IAsyncStateMachine machine instance. Provides a base class used to cache tasks of a specific return type. Specifies the type of results the cached tasks return. A singleton cache for this result type. This may be null if there are no cached tasks for this TResult. Creates a non-disposable task. The result for the task. The cacheable task. Creates a cache. A task cache for this result type. Gets a cached task if one exists. The result for which we want a cached task. A cached task if one exists; otherwise, null. Provides a cache for Boolean tasks. A true task. A false task. Gets a cached task for the Boolean result. true or false A cached task for the Boolean result. Provides a cache for zero Int32 tasks. The cache of Task{Int32}. The minimum value, inclusive, for which we want a cached task. The maximum value, exclusive, for which we want a cached task. Creates an array of cached tasks for the values in the range [INCLUSIVE_MIN,EXCLUSIVE_MAX). Gets a cached task for the zero Int32 result. The integer value A cached task for the Int32 result or null if not cached. Identities the async state machine type for this method. Initializes the attribute. The type that implements the state machine. Provides a builder for asynchronous methods that return . This type is intended for compiler use only. AsyncTaskMethodBuilder is a value type, and thus it is copied by value. Prior to being copied, one of its Task, SetResult, or SetException members must be accessed, or else the copies may end up building distinct Task instances. A cached VoidTaskResult task used for builders that complete synchronously. The generic builder object to which this non-generic instance delegates. Gets the for this builder. The representing the builder's asynchronous operation. The builder is not initialized. Gets an object that may be used to uniquely identify this builder to the debugger. This property lazily instantiates the ID in a non-thread-safe manner. It must only be used by the debugger, and only in a single-threaded manner when no other threads are in the middle of accessing this property or this.Task. Initializes a new . The initialized . Initiates the builder's execution with the associated state machine. Specifies the type of the state machine.The state machine instance, passed by reference. Associates the builder with the state machine it represents. The heap-allocated state machine object.The argument was null (Nothing in Visual Basic).The builder is incorrectly initialized. Schedules the specified state machine to be pushed forward when the specified awaiter completes. Specifies the type of the awaiter.Specifies the type of the state machine.The awaiter.The state machine. Schedules the specified state machine to be pushed forward when the specified awaiter completes. Specifies the type of the awaiter.Specifies the type of the state machine.The awaiter.The state machine. Completes the in the RanToCompletion state. The builder is not initialized.The task has already completed. Completes the in the Faulted state with the specified exception. The to use to fault the task.The argument is null (Nothing in Visual Basic).The builder is not initialized.The task has already completed. Called by the debugger to request notification when the first wait operation (await, Wait, Result, etc.) on this builder's task completes. true to enable notification; false to disable a previously set notification. Provides a builder for asynchronous methods that return . This type is intended for compiler use only. AsyncTaskMethodBuilder{TResult} is a value type, and thus it is copied by value. Prior to being copied, one of its Task, SetResult, or SetException members must be accessed, or else the copies may end up building distinct Task instances. A cached task for default(TResult). State related to the IAsyncStateMachine. The lazily-initialized task completion source. Gets the lazily-initialized TaskCompletionSource. Gets the for this builder. The representing the builder's asynchronous operation. Gets an object that may be used to uniquely identify this builder to the debugger. This property lazily instantiates the ID in a non-thread-safe manner. It must only be used by the debugger, and only in a single-threaded manner when no other threads are in the middle of accessing this property or this.Task. Temporary support for disabling crashing if tasks go unobserved. Initializes a new . The initialized . Initiates the builder's execution with the associated state machine. Specifies the type of the state machine.The state machine instance, passed by reference. Associates the builder with the state machine it represents. The heap-allocated state machine object.The argument was null (Nothing in Visual Basic).The builder is incorrectly initialized. Schedules the specified state machine to be pushed forward when the specified awaiter completes. Specifies the type of the awaiter.Specifies the type of the state machine.The awaiter.The state machine. Schedules the specified state machine to be pushed forward when the specified awaiter completes. Specifies the type of the awaiter.Specifies the type of the state machine.The awaiter.The state machine. Completes the in the RanToCompletion state with the specified result. The result to use to complete the task.The task has already completed. Completes the builder by using either the supplied completed task, or by completing the builder's previously accessed task using default(TResult). A task already completed with the value default(TResult).The task has already completed. Completes the in the Faulted state with the specified exception. The to use to fault the task.The argument is null (Nothing in Visual Basic).The task has already completed. Called by the debugger to request notification when the first wait operation (await, Wait, Result, etc.) on this builder's task completes. true to enable notification; false to disable a previously set notification. This should only be invoked from within an asynchronous method, and only by the debugger. Gets a task for the specified result. This will either be a cached or new task, never null. The result for which we need a task. The completed task containing the result. Provides a builder for asynchronous methods that return void. This type is intended for compiler use only. The synchronization context associated with this operation. State related to the IAsyncStateMachine. An object used by the debugger to uniquely identify this builder. Lazily initialized. Non-zero if PreventUnobservedTaskExceptions has already been invoked. Gets an object that may be used to uniquely identify this builder to the debugger. This property lazily instantiates the ID in a non-thread-safe manner. It must only be used by the debugger and only in a single-threaded manner. Temporary support for disabling crashing if tasks go unobserved. Initializes the . The synchronizationContext associated with this operation. This may be null. Registers with UnobservedTaskException to suppress exception crashing. Initializes a new . The initialized . Initiates the builder's execution with the associated state machine. Specifies the type of the state machine.The state machine instance, passed by reference.The argument was null (Nothing in Visual Basic). Associates the builder with the state machine it represents. The heap-allocated state machine object.The argument was null (Nothing in Visual Basic).The builder is incorrectly initialized. Schedules the specified state machine to be pushed forward when the specified awaiter completes. Specifies the type of the awaiter.Specifies the type of the state machine.The awaiter.The state machine. Schedules the specified state machine to be pushed forward when the specified awaiter completes. Specifies the type of the awaiter.Specifies the type of the state machine.The awaiter.The state machine. Completes the method builder successfully. Faults the method builder with an exception. The exception that is the cause of this fault.The argument is null (Nothing in Visual Basic).The builder is not initialized. Notifies the current synchronization context that the operation completed. Allows you to obtain the full path of the source file that contains the caller. This is the file path at the time of compile. Initializes a new instance of the class. Allows you to obtain the line number in the source file at which the method is called. Initializes a new instance of the class. Allows you to obtain the method or property name of the caller to the method. Initializes a new instance of the class. Provides an awaitable object that allows for configured awaits on . This type is intended for compiler use only. The underlying awaitable on whose logic this awaitable relies. Initializes the . The awaitable .true to attempt to marshal the continuation back to the original context captured; otherwise, false. Gets an awaiter for this awaitable. The awaiter. Provides an awaiter for a . This type is intended for compiler use only. The task being awaited. Whether to attempt marshaling back to the original context. Gets whether the task being awaited is completed. This property is intended for compiler user rather than use directly in code. The awaiter was not properly initialized. Initializes the . The awaitable .true to attempt to marshal the continuation back to the original context captured; otherwise, false. Schedules the continuation onto the associated with this . The action to invoke when the await operation completes.The argument is null (Nothing in Visual Basic).The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Schedules the continuation onto the associated with this . The action to invoke when the await operation completes.The argument is null (Nothing in Visual Basic).The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Ends the await on the completed . The result of the completed . The awaiter was not properly initialized.The task was not yet completed.The task was canceled.The task completed in a Faulted state. Provides an awaitable object that allows for configured awaits on . This type is intended for compiler use only. The task being awaited. Initializes the . The awaitable .true to attempt to marshal the continuation back to the original context captured; otherwise, false. Gets an awaiter for this awaitable. The awaiter. Provides an awaiter for a . This type is intended for compiler use only. The task being awaited. Whether to attempt marshaling back to the original context. Gets whether the task being awaited is completed. This property is intended for compiler user rather than use directly in code. The awaiter was not properly initialized. Initializes the . The to await.true to attempt to marshal the continuation back to the original context captured when BeginAwait is called; otherwise, false. Schedules the continuation onto the associated with this . The action to invoke when the await operation completes. The argument is null (Nothing in Visual Basic). The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Schedules the continuation onto the associated with this . The action to invoke when the await operation completes. The argument is null (Nothing in Visual Basic). The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Ends the await on the completed . The result of the completed . The awaiter was not properly initialized.The task was not yet completed.The task was canceled.The task completed in a Faulted state. Represents an asynchronous method builder. Represents state machines generated for asynchronous methods. This type is intended for compiler use only. Moves the state machine to its next state. Configures the state machine with a heap-allocated replica. The heap-allocated replica. Represents an awaiter used to schedule continuations when an await operation completes. Schedules the continuation action to be invoked when the instance completes. The action to invoke when the operation completes. The argument is null (Nothing in Visual Basic). Unlike OnCompleted, UnsafeOnCompleted need not propagate ExecutionContext information. Represents an operation that will schedule continuations when the operation completes. Schedules the continuation action to be invoked when the instance completes. The action to invoke when the operation completes.The argument is null (Nothing in Visual Basic). Identities the iterator state machine type for this method. Initializes the attribute. The type that implements the state machine. Identities the state machine type for this method. Gets the type that implements the state machine. Initializes the attribute. The type that implements the state machine. Provides an awaiter for awaiting a . This type is intended for compiler use only. A MethodInfo for the Exception.PrepForRemoting method. An empty array to use with MethodInfo.Invoke. The default value to use for continueOnCapturedContext. Error message for GetAwaiter. The task being awaited. Gets whether the task being awaited is completed. This property is intended for compiler user rather than use directly in code. The awaiter was not properly initialized. Whether the current thread is appropriate for inlining the await continuation. Initializes the . The to be awaited. Schedules the continuation onto the associated with this . The action to invoke when the await operation completes. The argument is null (Nothing in Visual Basic). The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Schedules the continuation onto the associated with this . The action to invoke when the await operation completes. The argument is null (Nothing in Visual Basic). The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Ends the await on the completed . The awaiter was not properly initialized. The task was not yet completed. The task was canceled. The task completed in a Faulted state. Fast checks for the end of an await operation to determine whether more needs to be done prior to completing the await. The awaited task. Handles validations on tasks that aren't successfully completed. The awaited task. Throws an exception to handle a task that completed in a state other than RanToCompletion. Schedules the continuation onto the associated with this . The awaited task. The action to invoke when the await operation completes. Whether to capture and marshal back to the current context. The argument is null (Nothing in Visual Basic). The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Invokes the delegate in a try/catch that will propagate the exception asynchronously on the ThreadPool. Copies the exception's stack trace so its stack trace isn't overwritten. The exception to prepare. Gets the MethodInfo for the internal PrepForRemoting method on Exception. The MethodInfo if it could be retrieved, or else null. Provides an awaiter for awaiting a . This type is intended for compiler use only. The task being awaited. Gets whether the task being awaited is completed. This property is intended for compiler user rather than use directly in code. The awaiter was not properly initialized. Initializes the . The to be awaited. Schedules the continuation onto the associated with this . The action to invoke when the await operation completes. The argument is null (Nothing in Visual Basic). The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Schedules the continuation onto the associated with this . The action to invoke when the await operation completes. The argument is null (Nothing in Visual Basic). The awaiter was not properly initialized. This method is intended for compiler user rather than use directly in code. Ends the await on the completed . The result of the completed . The awaiter was not properly initialized. The task was not yet completed. The task was canceled. The task completed in a Faulted state. Used with Task(of void) Provides an awaitable context for switching into a target environment. This type is intended for compiler use only. Gets an awaiter for this . An awaiter for this awaitable. This method is intended for compiler user rather than use directly in code. Provides an awaiter that switches into a target environment. This type is intended for compiler use only. A completed task. Gets whether a yield is not required. This property is intended for compiler user rather than use directly in code. Posts the back to the current context. The action to invoke asynchronously. The awaiter was not properly initialized. Posts the back to the current context. The action to invoke asynchronously. The awaiter was not properly initialized. Ends the await operation. Indicates that the .NET Framework class library method to which this attribute is applied is unlikely to be affected by servicing releases, and therefore is eligible to be inlined across Native Image Generator (NGen) images. Infrastructure. Initializes a new instance of the TargetedPatchingOptOutAttribute class. The reason why the method to which the attribute is applied is considered to be eligible for inlining across Native Image Generator (NGen) images. Infrastructure. Gets the reason why the method to which this attribute is applied is considered to be eligible for inlining across Native Image Generator (NGen) images. Provides methods for creating and manipulating tasks. TaskEx is a placeholder. An already completed task. An already canceled task. Creates a task that runs the specified action. The action to execute asynchronously. A task that represents the completion of the action. The argument is null. Creates a task that runs the specified action. The action to execute.The CancellationToken to use to request cancellation of this task. A task that represents the completion of the action. The argument is null. Creates a task that runs the specified function. The function to execute asynchronously. A task that represents the completion of the action. The argument is null. Creates a task that runs the specified function. The action to execute.The CancellationToken to use to cancel the task. A task that represents the completion of the action. The argument is null. Creates a task that runs the specified function. The action to execute asynchronously. A task that represents the completion of the action. The argument is null. Creates a task that runs the specified function. The function to execute.The CancellationToken to use to request cancellation of this task. A task that represents the completion of the function. The argument is null. Creates a task that runs the specified function. The function to execute asynchronously. A task that represents the completion of the action. The argument is null. Creates a task that runs the specified function. The action to execute.The CancellationToken to use to cancel the task. A task that represents the completion of the action. The argument is null. Starts a Task that will complete after the specified due time. The delay in milliseconds before the returned task completes. The timed Task. The argument must be non-negative or -1 and less than or equal to Int32.MaxValue. Starts a Task that will complete after the specified due time. The delay before the returned task completes. The timed Task. The argument must be non-negative or -1 and less than or equal to Int32.MaxValue. Starts a Task that will complete after the specified due time. The delay before the returned task completes.A CancellationToken that may be used to cancel the task before the due time occurs. The timed Task. The argument must be non-negative or -1 and less than or equal to Int32.MaxValue. Starts a Task that will complete after the specified due time. The delay in milliseconds before the returned task completes.A CancellationToken that may be used to cancel the task before the due time occurs. The timed Task. The argument must be non-negative or -1 and less than or equal to Int32.MaxValue. Creates a Task that will complete only when all of the provided collection of Tasks has completed. The Tasks to monitor for completion. A Task that represents the completion of all of the provided tasks. If any of the provided Tasks faults, the returned Task will also fault, and its Exception will contain information about all of the faulted tasks. If no Tasks fault but one or more Tasks is canceled, the returned Task will also be canceled. The argument is null.The argument contains a null reference. Creates a Task that will complete only when all of the provided collection of Tasks has completed. The Tasks to monitor for completion. A Task that represents the completion of all of the provided tasks. If any of the provided Tasks faults, the returned Task will also fault, and its Exception will contain information about all of the faulted tasks. If no Tasks fault but one or more Tasks is canceled, the returned Task will also be canceled. The argument is null.The argument contains a null reference. Creates a Task that will complete only when all of the provided collection of Tasks has completed. The Tasks to monitor for completion. A Task that represents the completion of all of the provided tasks. If any of the provided Tasks faults, the returned Task will also fault, and its Exception will contain information about all of the faulted tasks. If no Tasks fault but one or more Tasks is canceled, the returned Task will also be canceled. The argument is null.The argument contains a null reference. Creates a Task that will complete only when all of the provided collection of Tasks has completed. The Tasks to monitor for completion. A Task that represents the completion of all of the provided tasks. If any of the provided Tasks faults, the returned Task will also fault, and its Exception will contain information about all of the faulted tasks. If no Tasks fault but one or more Tasks is canceled, the returned Task will also be canceled. The argument is null.The argument contains a null reference. Creates a Task that will complete only when all of the provided collection of Tasks has completed. The Tasks to monitor for completion.A callback invoked when all of the tasks complete successfully in the RanToCompletion state. This callback is responsible for storing the results into the TaskCompletionSource. A Task that represents the completion of all of the provided tasks. The argument is null.The argument contains a null reference. Creates a Task that will complete when any of the tasks in the provided collection completes. The Tasks to be monitored. A Task that represents the completion of any of the provided Tasks. The completed Task is this Task's result. Any Tasks that fault will need to have their exceptions observed elsewhere. The argument is null.The argument contains a null reference. Creates a Task that will complete when any of the tasks in the provided collection completes. The Tasks to be monitored. A Task that represents the completion of any of the provided Tasks. The completed Task is this Task's result. Any Tasks that fault will need to have their exceptions observed elsewhere. The argument is null.The argument contains a null reference. Creates a Task that will complete when any of the tasks in the provided collection completes. The Tasks to be monitored. A Task that represents the completion of any of the provided Tasks. The completed Task is this Task's result. Any Tasks that fault will need to have their exceptions observed elsewhere. The argument is null.The argument contains a null reference. Creates a Task that will complete when any of the tasks in the provided collection completes. The Tasks to be monitored. A Task that represents the completion of any of the provided Tasks. The completed Task is this Task's result. Any Tasks that fault will need to have their exceptions observed elsewhere. The argument is null.The argument contains a null reference. Creates an already completed from the specified result. The result from which to create the completed task. The completed task. Creates an awaitable that asynchronously yields back to the current context when awaited. A context that, when awaited, will asynchronously transition back into the current context. If SynchronizationContext.Current is non-null, that is treated as the current context. Otherwise, TaskScheduler.Current is treated as the current context. Adds the target exception to the list, initializing the list if it's null. The list to which to add the exception and initialize if the list is null.The exception to add, and unwrap if it's an aggregate.