Share via


JoinableTaskContext.RevertRelevance Struct

Definition

A structure that clears CallContext and SynchronizationContext async/thread statics and restores those values when this structure is disposed.

public: value class JoinableTaskContext::RevertRelevance : IDisposable
public struct JoinableTaskContext.RevertRelevance : IDisposable
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct JoinableTaskContext.RevertRelevance : IDisposable
type JoinableTaskContext.RevertRelevance = struct
    interface IDisposable
[<System.Runtime.CompilerServices.IsReadOnly>]
type JoinableTaskContext.RevertRelevance = struct
    interface IDisposable
Public Structure JoinableTaskContext.RevertRelevance
Implements IDisposable
Inheritance
JoinableTaskContext.RevertRelevance
Attributes
Implements

Methods

Dispose()

Reverts the async local and thread static values to their original values.

Applies to

Thread Safety

This type is thread-safe for all members.