/// <summary> /// The main entry point for the application. /// </summary> static void Main() { System.Reflection.Assembly assembly = System.Reflection.Assembly.GetEntryAssembly(); Globals.Initialize(assembly.Location, "Data/"); Directory.CreateDirectory(Globals.WritableDirectoryBase + "Projects/"); AppInit.WindowsService <ErrorTrackerSvc>(); // Most of the initialization work happens here, including loading of the Settings.data object. The method blocks, so further initialization should be done in the ErrorTrackerSvc constructor. }
/// <summary> /// The main entry point for the application. /// </summary> static void Main() { WindowsServiceInitOptions options = new WindowsServiceInitOptions(); options.RunForDebugging = true; AppInit.WindowsService <MainService>(options); }
static void Main() { System.Reflection.Assembly assembly = System.Reflection.Assembly.GetEntryAssembly(); Globals.Initialize(assembly.Location, ""); WindowsServiceInitOptions o = new WindowsServiceInitOptions(); o.ServiceManagerButtons_UpdateSettingsFile = false; o.ServiceManagerButtons = new ButtonDefinition[] { new ButtonDefinition("Configure", btnConfigure_Click) }; AppInit.WindowsService <DKPHistory>(o); }