private void dispatcherTimer_Tick(object sender, EventArgs e) { try { ws.Start(); } catch (Exception ex) { new RMSAppException(this, "0500", "dispatcherTimer_Tick failed. " + ex.Message, ex, true); } }
/// <summary> /// Initializes a new instance of the <see cref="UpdateWebResources"/> class. /// </summary> public CrmWebResourcesUpdater() { AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; watchdogService = new WatchdogService($@"{assemblyPath}\CrmWebResourceUpdater.ServiceConsole.exe", "CrmWebResourceUpdater.ServiceConsole"); watchdogService.Start(); }