Centreon_EventLog_2_Syslog.MyProjectInstaller.MyProjectInstaller C# (CSharp) Méthode

MyProjectInstaller() public méthode

public MyProjectInstaller ( ) : System
Résultat System
        public MyProjectInstaller()
            : base()
        {
            this.Committed += new InstallEventHandler(MyProjectInstaller_Committed);
            this.Committing += new InstallEventHandler(MyProjectInstaller_Committing);

            ServiceInstaller myService = new ServiceInstaller();
            ServiceProcessInstaller monInstallProcess = new ServiceProcessInstaller();

            myService.ServiceName = "Centreon-E2S";
            myService.DisplayName = "Centreon EventLog to Syslog";
            myService.Description = "This service course with regular interval the Windows events in order to seek events corresponding to the rules described by user. So correspondence are found, then the events are translated in syslog format for then being sent to a syslog server.";

            this.Installers.Add(myService);

            monInstallProcess.Account = System.ServiceProcess.ServiceAccount.LocalSystem;

            myService.StartType = ServiceStartMode.Automatic;

            this.Installers.Add(monInstallProcess);
        }