Beispiel #1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            WindowsServiceInitOptions options = new WindowsServiceInitOptions();

            options.RunForDebugging = true;

            AppInit.WindowsService <MainService>(options);
        }
Beispiel #2
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);
        }