# IInvokable.GetCancellationToken

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.invocation.iinvokable/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.invocation.iinvokable/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Invocation/IInvokable.cs#L83)

```csharp
public virtual CancellationToken GetCancellationToken()
```

Gets the cancellation token for this request. If the request does not accept a cancellation token, this will be `System.Threading.CancellationToken.None`.

### Returns

The cancellation token for this request.
