LifecycleSubject.OnStop(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Handle stop notifications.
public virtual System.Threading.Tasks.Task OnStop (System.Threading.CancellationToken ct);
public virtual System.Threading.Tasks.Task OnStop (System.Threading.CancellationToken cancellationToken = default);
abstract member OnStop : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnStop : System.Threading.CancellationToken -> System.Threading.Tasks.Task
abstract member OnStop : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnStop : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function OnStop (ct As CancellationToken) As Task
Public Overridable Function OnStop (Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- ctcancellationToken
- CancellationToken
Returns
A Task which represents the operation.