public void Unregister(IExcepticonClient client) { _appDomain.ProcessExit -= OnProcessExit; _client = null; }
public MyHostedService(IExcepticonClient excepticonClient) { _excepticonClient = excepticonClient ?? throw new ArgumentNullException(nameof(excepticonClient)); }
public void Register(IExcepticonClient client, ExcepticonOptions options) { _client = client; _appDomain.ProcessExit += OnProcessExit; }