public Task StartAsync(CancellationToken cancellationToken) { _exampleDependency.WriteLine($"Starting {nameof(ExampleHostedService)}."); return(Task.CompletedTask); }
public void Start() { _exampleDependency.WriteLine("Using ExampleDependency"); }