Skip to content

Instantly share code, notes, and snippets.

@jean-lourenco
Created September 28, 2020 16:34
Show Gist options
  • Save jean-lourenco/46ca35fb83c149cd2e22796d4f391a61 to your computer and use it in GitHub Desktop.
Save jean-lourenco/46ca35fb83c149cd2e22796d4f391a61 to your computer and use it in GitHub Desktop.
Interface básica no IHostedService
public class ContractUpdated : IHostedService
{
public Task StartAsync(CancellationToken token)
{
return Task.CompletedTask;
}
public Task StopAsync(CancellationToken token)
{
return Task.CompletedTask;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment