execute abstract method

Future<void> execute(
  1. CancellationToken stoppingToken
)

This method is called when the HostedService starts. The implementation should return a future that represents the lifetime of the long running operation(s) being performed.

Implementation

Future<void> execute(CancellationToken stoppingToken);