implements IDisposable
0x00x0040
Members 15
| Offset | Size | Name | Type | Flags | Default |
|---|---|---|---|---|---|
| 0x08 | s_canceledSource | CancellationTokenSource | Static+2 flags | — | |
| 0x08 | s_neverCanceledSource | CancellationTokenSource | Static+2 flags | — | |
| 0x04 | s_nLists | int | PrivateStatic+1 flags | — | |
| 0x08 | _kernelEvent | ManualResetEvent | Private | — | |
| 0x08 | _registeredCallbacksLists | SparselyPopulatedArray<System.Threading.CancellationCallbackInfo>[] | Private | — | |
| — | 0x04 | CannotBeCanceled | int | PrivateStatic+1 flags | 43097056 |
| — | 0x04 | NotCanceledState | int | PrivateStatic+1 flags | 43097056 |
| — | 0x04 | NotifyingState | int | PrivateStatic+1 flags | 43097056 |
| — | 0x04 | NotifyingCompleteState | int | PrivateStatic+1 flags | 43097056 |
| 0x04 | _state | int | Private | — | |
| 0x04 | _threadIDExecutingCallbacks | int | Private | — | |
| 0x01 | _disposed | bool | Private | — | |
| 0x0029 | 0x07 | padding / unreflected | |||
| 0x08 | _executingCallback | CancellationCallbackInfo | Private | — | |
| 0x08 | _timer | Timer | Private | — | |
| 0x08 | s_timerCallback | TimerCallback | PrivateStatic+1 flags | — | |
Functions 28
| Signature | Flags | Native | Params |
|---|---|---|---|
| bool get_IsCancellationRequested() | Public+1 flags | 0x01 | |
| bool get_IsCancellationCompleted() | 2 flags | 0x01 | |
| bool get_IsDisposed() | 2 flags | 0x01 | |
| int get_ThreadIDExecutingCallbacks() | 2 flags | 0x04 | |
| void set_ThreadIDExecutingCallbacks(int value) | 2 flags | 0x04 | |
| CancellationToken get_Token() | Public+1 flags | 0x08 | |
| CancellationCallbackInfo get_ExecutingCallback() | 2 flags | 0x08 | |
| void .ctor() | Public+1 flags | 0x00 | |
| void .ctor(const TimeSpan& delay) | Public+1 flags | 0x08 | |
| void InitializeWithTimer(int millisecondsDelay) | Private | 0x04 | |
| void Cancel() | Public | 0x00 | |
| void Cancel(bool throwOnFirstException) | Public | 0x01 | |
| void CancelAfter(const TimeSpan& delay) | Public | 0x08 | |
| void CancelAfter(int millisecondsDelay) | Public | 0x04 | |
| void TimerCallbackLogic(object obj) | PrivateStatic | 0x08 | |
| void Dispose() | PublicFinal+2 flags | 0x00 | |
| void Dispose(bool disposing) | 3 flags | 0x01 | |
| void ThrowIfDisposed() | 1 flags | 0x00 | |
| void ThrowObjectDisposedException() | PrivateStatic | 0x00 | |
| CancellationTokenRegistration InternalRegister(Action<System.Object> callback, object stateForCallback, SynchronizationContext targetSyncContext, ExecutionContext executionContext) | 1 flags | 0x18 | |
| void NotifyCancellation(bool throwOnFirstException) | Private | 0x01 | |
| void ExecuteCallbackHandlers(bool throwOnFirstException) | Private | 0x01 | |
| void CancellationCallbackCoreWork_OnSyncContext(object obj) | Private | 0x08 | |
| void CancellationCallbackCoreWork(const CancellationCallbackCoreWorkArguments& args) | Private | 0x10 | |
| CancellationTokenSource CreateLinkedTokenSource(const CancellationToken& token1, const CancellationToken& token2) | PublicStatic | 0x08 | |
| CancellationTokenSource CreateLinkedTokenSource(const CancellationToken& token) | Static+1 flags | 0x08 | |
| void WaitForCallbackToComplete(CancellationCallbackInfo callbackInfo) | 1 flags | 0x08 | |
| void .cctor() | PrivateStatic+1 flags | 0x00 |
Subclasses 3
Used by 16
types with a member, parameter or interface of this type<AwaitReadyStatusAsync>d__5<AwaitTerminatedDeleteStatusAsync>d__6<ReadAllAsync>d__48<RunWithTimeoutWorker>d__241`1<SendAsyncWorker>d__47<WaitAsync>d__46<WaitUntilCountOrTimeoutAsync>d__32<WriteChunkTrailer>d__40ApplicationCancellationCallbackInfoCancellationTokenHttpClientHttpWebRequestMonoBehaviourWebOperationWithSyncContext