示例#1
0
 /// <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.
 }
示例#2
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            WindowsServiceInitOptions options = new WindowsServiceInitOptions();

            options.RunForDebugging = true;

            AppInit.WindowsService <MainService>(options);
        }
示例#3
0
        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);
        }