public MainWindow() { InitializeComponent(); Host = CompositionHost.InitializeNewHost(); DocumentManager = Host.GetSharedExportedValue <IDocumentManager>(); }
private static async Task ServeAsync() { Log.WriteLine("Starting Server"); _locations.Add(new ComponentLocation(AssemblyExtensions.ApplicationDirectory, recursive: false, watchChanges: false)); _host = CompositionHost.InitializeNewHost(null, _locations); _host.GetSharedExportedValue <ScheduledActivityManager>(); _gllManager = new GllManager(_host); await _gllManager.InitializeAsync(); // setup _connectionManager = new ConnectionTypeManager(_gllManager); _httpServer = new WebServiceServer(); LoadConfigurations(GllLocation); _systemTrayManager.InstallTrayIcon(); Log.WriteLine("Server Ready!"); }