Method Run
Run(INetworkEventsApi, CancellationToken)
Starts running the underlying network scenario. Make sure to handle when IsPaused and the cancellation token.
Declaration
protected abstract Task Run(INetworkEventsApi networkEventsApi, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
INetworkEventsApi | networkEventsApi | API to trigger network simulation events. |
CancellationToken | cancellationToken | Cancellation token to handle cancellation requests to the underlying task. |
Returns
Type | Description |
---|---|
Task | Task simulating the scenario |