Esempio n. 1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.serviceProcessInstaller1 = new System.ServiceProcess.ServiceProcessInstaller();
     this.serviceInstaller1        = new System.ServiceProcess.ServiceInstaller();
     this.eventLogInstaller1       = new System.Diagnostics.EventLogInstaller();
     //
     // serviceProcessInstaller1
     //
     this.serviceProcessInstaller1.Account  = System.ServiceProcess.ServiceAccount.LocalSystem;
     this.serviceProcessInstaller1.Password = null;
     this.serviceProcessInstaller1.Username = null;
     //
     // serviceInstaller1
     //
     this.serviceInstaller1.ServiceName = Constants.ServiceName;
     this.serviceInstaller1.DisplayName = Constants.DisplayName;
     this.serviceInstaller1.StartType   = System.ServiceProcess.ServiceStartMode.Automatic;
     //
     // eventLogInstaller1
     //
     this.eventLogInstaller1.Log    = Log.Name;
     this.eventLogInstaller1.Source = Log.Source;
     //
     // ProjectInstaller
     //
     this.Installers.AddRange(new System.Configuration.Install.Installer[] {
         this.serviceProcessInstaller1,
         this.serviceInstaller1,
         this.eventLogInstaller1
     });
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.webMethodServerCounterInstaller = new System.Diagnostics.PerformanceCounterInstaller();
     this.webMethodEventLogInstaller      = new System.Diagnostics.EventLogInstaller();
     //
     // webMethodServerCounterInstaller
     //
     this.webMethodServerCounterInstaller.CategoryHelp = "DeluxeWorks WebMethod是Web Service方法调用的性能指针。每一个方法可以具有一个独立的实例。";
     this.webMethodServerCounterInstaller.CategoryName = "DeluxeWorks WebMethod";
     this.webMethodServerCounterInstaller.CategoryType = System.Diagnostics.PerformanceCounterCategoryType.MultiInstance;
     this.webMethodServerCounterInstaller.Counters.AddRange(new System.Diagnostics.CounterCreationData[] {
         new System.Diagnostics.CounterCreationData("Request count", "总请求数。", System.Diagnostics.PerformanceCounterType.NumberOfItems32),
         new System.Diagnostics.CounterCreationData("Request fail count", "请求失败的次数。", System.Diagnostics.PerformanceCounterType.NumberOfItems32),
         new System.Diagnostics.CounterCreationData("Request success count", "请求成功的次数。", System.Diagnostics.PerformanceCounterType.NumberOfItems32),
         new System.Diagnostics.CounterCreationData("Requests per second", "每秒调用次数", System.Diagnostics.PerformanceCounterType.RateOfCountsPerSecond32),
         new System.Diagnostics.CounterCreationData("Request average duration(ms)", "", System.Diagnostics.PerformanceCounterType.RawFraction),
         new System.Diagnostics.CounterCreationData("Request average duration base", "平均执行时间的基数", System.Diagnostics.PerformanceCounterType.RawBase)
     });
     //
     // webMethodEventLogInstaller
     //
     this.webMethodEventLogInstaller.CategoryCount        = 0;
     this.webMethodEventLogInstaller.CategoryResourceFile = null;
     this.webMethodEventLogInstaller.Log = "HB2008";
     this.webMethodEventLogInstaller.MessageResourceFile   = null;
     this.webMethodEventLogInstaller.ParameterResourceFile = null;
     this.webMethodEventLogInstaller.Source = "HB2008";
     //
     // WebMethodServerCountersInstaller
     //
     this.Installers.AddRange(new System.Configuration.Install.Installer[] {
         this.webMethodServerCounterInstaller,
         this.webMethodEventLogInstaller
     });
 }
Esempio n. 3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.serviceProcessInstaller1 = new System.ServiceProcess.ServiceProcessInstaller();
     this.serviceInstaller1 = new System.ServiceProcess.ServiceInstaller();
     this.eventLogInstaller1 = new System.Diagnostics.EventLogInstaller();
     //
     // serviceProcessInstaller1
     //
     this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem;
     this.serviceProcessInstaller1.Password = null;
     this.serviceProcessInstaller1.Username = null;
     //
     // serviceInstaller1
     //
     this.serviceInstaller1.ServiceName = Constants.ServiceName;
     this.serviceInstaller1.DisplayName = Constants.DisplayName;
     this.serviceInstaller1.StartType = System.ServiceProcess.ServiceStartMode.Automatic;
     //
     // eventLogInstaller1
     //
     this.eventLogInstaller1.Log = Log.Name;
     this.eventLogInstaller1.Source = Log.Source;
     //
     // ProjectInstaller
     //
     this.Installers.AddRange(new System.Configuration.Install.Installer[] {
                                                                               this.serviceProcessInstaller1,
                                                                               this.serviceInstaller1,
                                                                               this.eventLogInstaller1});
 }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.webMethodServerCounterInstaller = new System.Diagnostics.PerformanceCounterInstaller();
            this.webMethodEventLogInstaller = new System.Diagnostics.EventLogInstaller();
            // 
            // webMethodServerCounterInstaller
            // 
            this.webMethodServerCounterInstaller.CategoryHelp = "DeluxeWorks WebMethod是Web Service方法调用的性能指针。每一个方法可以具有一个独立的实例。";
            this.webMethodServerCounterInstaller.CategoryName = "DeluxeWorks WebMethod";
            this.webMethodServerCounterInstaller.CategoryType = System.Diagnostics.PerformanceCounterCategoryType.MultiInstance;
            this.webMethodServerCounterInstaller.Counters.AddRange(new System.Diagnostics.CounterCreationData[] {
            new System.Diagnostics.CounterCreationData("Request count", "总请求数。", System.Diagnostics.PerformanceCounterType.NumberOfItems32),
            new System.Diagnostics.CounterCreationData("Request fail count", "请求失败的次数。", System.Diagnostics.PerformanceCounterType.NumberOfItems32),
            new System.Diagnostics.CounterCreationData("Request success count", "请求成功的次数。", System.Diagnostics.PerformanceCounterType.NumberOfItems32),
            new System.Diagnostics.CounterCreationData("Requests per second", "每秒调用次数", System.Diagnostics.PerformanceCounterType.RateOfCountsPerSecond32),
            new System.Diagnostics.CounterCreationData("Request average duration(ms)", "", System.Diagnostics.PerformanceCounterType.RawFraction),
            new System.Diagnostics.CounterCreationData("Request average duration base", "平均执行时间的基数", System.Diagnostics.PerformanceCounterType.RawBase)});
            // 
            // webMethodEventLogInstaller
            // 
            this.webMethodEventLogInstaller.CategoryCount = 0;
            this.webMethodEventLogInstaller.CategoryResourceFile = null;
            this.webMethodEventLogInstaller.Log = "HB2008";
            this.webMethodEventLogInstaller.MessageResourceFile = null;
            this.webMethodEventLogInstaller.ParameterResourceFile = null;
            this.webMethodEventLogInstaller.Source = "HB2008";
            // 
            // WebMethodServerCountersInstaller
            // 
            this.Installers.AddRange(new System.Configuration.Install.Installer[] {
            this.webMethodServerCounterInstaller,
            this.webMethodEventLogInstaller});

        }
Esempio n. 5
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.eventLogInstaller1 = new System.Diagnostics.EventLogInstaller();
     //
     // eventLogInstaller1
     //
     this.eventLogInstaller1.Log = Log.Name;
     this.eventLogInstaller1.Source = Log.Source;
     //
     // ProjectInstaller
     //
     this.Installers.AddRange(new System.Configuration.Install.Installer[] {
                                                                               this.eventLogInstaller1});
 }
Esempio n. 6
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.eventLogInstaller1 = new System.Diagnostics.EventLogInstaller();
     //
     // eventLogInstaller1
     //
     this.eventLogInstaller1.Log    = Log.Name;
     this.eventLogInstaller1.Source = Log.Source;
     //
     // ProjectInstaller
     //
     this.Installers.AddRange(new System.Configuration.Install.Installer[] {
         this.eventLogInstaller1
     });
 }
Esempio n. 7
0
        public ProjectInstaller()
        {
            ServiceInstaller serviceInstaller = new ServiceInstaller();

            serviceInstaller.StartType   = ServiceStartMode.Automatic;
            serviceInstaller.ServiceName = TcpGatewayServiceMain.applName;
            serviceInstaller.DisplayName = TcpGatewayServiceMain.applDisplayName;
            serviceInstaller.Description = TcpGatewayServiceMain.applDescription;
            Installers.Add(serviceInstaller);
            EventLogInstaller eventLogInstaller = new EventLogInstaller();

            eventLogInstaller.Source = TcpGatewayServiceMain.applName;
            eventLogInstaller.Log    = "Application";
            Installers.Add(eventLogInstaller);
            ServiceProcessInstaller processInstaller = new ServiceProcessInstaller();

            processInstaller.Account = ServiceAccount.LocalSystem;
            Installers.Add(processInstaller);
        }
Esempio n. 8
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.eventLogInstaller = new System.Diagnostics.EventLogInstaller();
     //
     // eventLogInstaller
     //
     this.eventLogInstaller.CategoryCount        = 0;
     this.eventLogInstaller.CategoryResourceFile = null;
     this.eventLogInstaller.Log = "Application";
     this.eventLogInstaller.MessageResourceFile   = null;
     this.eventLogInstaller.ParameterResourceFile = null;
     this.eventLogInstaller.Source = "Solidsoft Reply ESB UDDI";
     //
     // EsbUddiInstaller
     //
     this.Installers.AddRange(new System.Configuration.Install.Installer[] {
         this.eventLogInstaller
     });
 }
        /// <summary>
        /// Initialization function to set internal variables.
        /// </summary>
        private void InitializeComponent()
        {
            this.exceptionManagerEventLogInstaller    = new System.Diagnostics.EventLogInstaller();
            this.exceptionManagementEventLogInstaller = new System.Diagnostics.EventLogInstaller();
            //
            // exceptionManagerEventLogInstaller
            //
            this.exceptionManagerEventLogInstaller.Log    = "Application";
            this.exceptionManagerEventLogInstaller.Source = resourceManager.GetString("RES_EXCEPTIONMANAGER_INTERNAL_EXCEPTIONS");
            //
            // exceptionManagementEventLogInstaller
            //
            this.exceptionManagementEventLogInstaller.Log    = "Application";
            this.exceptionManagementEventLogInstaller.Source = resourceManager.GetString("RES_EXCEPTIONMANAGER_PUBLISHED_EXCEPTIONS");

            this.Installers.AddRange(new System.Configuration.Install.Installer[] {
                this.exceptionManagerEventLogInstaller,
                this.exceptionManagementEventLogInstaller
            });
        }
Esempio n. 10
0
        public ProjectInstaller()
        {
            serviceProcessInstaller = new ServiceProcessInstaller();
            serviceInstaller        = new ServiceInstaller();
            this.eventLogInstaller  = new System.Diagnostics.EventLogInstaller();
            // serviceProcessInstaller
            serviceProcessInstaller.Account = ServiceAccount.NetworkService;

            // serviceInstaller1
            this.serviceInstaller.Description = "Служба архивации и обмена данными для СГК509 и СГК510";
            this.serviceInstaller.DisplayName = "Служба СГК";
            this.serviceInstaller.ServiceName = "SGKService";
            this.serviceInstaller.StartType   = System.ServiceProcess.ServiceStartMode.Automatic;
            this.serviceInstaller.Installers.Clear();

            // EventLogInstaller
            this.eventLogInstaller.Source = "SGKSersvice";
            this.eventLogInstaller.Log    = "SGKService";

            // ProjectInstaller
            serviceInstaller.ServiceName = SGKService.MyServiceName;
            this.Installers.AddRange(new Installer[] { serviceProcessInstaller, serviceInstaller, eventLogInstaller });
        }
Esempio n. 11
0
 public EventLogInstaller()
 {
     _myEventLogInstaller = new System.Diagnostics.EventLogInstaller {Source = "Hsc.LogDemo", Log = "Application"};
     Installers.Add(_myEventLogInstaller);
 }