// Called from the Dispose method of the base class protected override void Dispose(bool disposing) { _trayHelper = null; _webHost.StopAsync(TimeSpan.FromMilliseconds(100)); }
public STAApplicationContext(string[] args) { _webHost = BuildWebHost(args); _trayHelper = new TrayHelper(_webHost); }