C# Class System.Threading.CancellationTokenSource

Inheritance: IDisposable
Afficher le fichier Open project: runefs/Marvin Class Usage Examples

Private Properties

Свойство Type Description
GetTokenReg System.Threading.CancellationTokenRegistration
Register System.Threading.CancellationTokenRegistration
RemoveCallback void

Méthodes publiques

Méthode Description
Cancel ( ) : void
Cancel ( bool throwOnFirst ) : void
CreateLinkedTokenSource ( ) : CancellationTokenSource
CreateLinkedTokenSource ( CancellationToken token1, CancellationToken token2 ) : CancellationTokenSource
Dispose ( ) : void

Private Methods

Méthode Description
GetTokenReg ( ) : System.Threading.CancellationTokenRegistration
Register ( System.Action callback, bool useSynchronizationContext ) : System.Threading.CancellationTokenRegistration
RemoveCallback ( System.Threading.CancellationTokenRegistration tokenReg ) : void

Method Details

Cancel() public méthode

public Cancel ( ) : void
Résultat void

Cancel() public méthode

public Cancel ( bool throwOnFirst ) : void
throwOnFirst bool
Résultat void

CreateLinkedTokenSource() public static méthode

public static CreateLinkedTokenSource ( ) : CancellationTokenSource
Résultat CancellationTokenSource

CreateLinkedTokenSource() public static méthode

public static CreateLinkedTokenSource ( CancellationToken token1, CancellationToken token2 ) : CancellationTokenSource
token1 CancellationToken
token2 CancellationToken
Résultat CancellationTokenSource

Dispose() public méthode

public Dispose ( ) : void
Résultat void