コード例 #1
0
        /// <summary>
        /// Start the service, and stop the service if there were any errors found.
        /// </summary>
        /// <param name="Arguments">An array of arguments passed from the command line (unused).</param>
        protected override void OnStart(string[] Arguments)
        {
            Web = new WebHandler();

            if (!Web.bStartedSuccessfully)
            {
                OnStop();
            }
        }
コード例 #2
0
		/// <summary>
		/// Start the service, and stop the service if there were any errors found.
		/// </summary>
		/// <param name="Arguments">An array of arguments passed from the command line (unused).</param>
		protected override void OnStart( string[] Arguments )
		{
			Web = new WebHandler();
			
			if( !Web.bStartedSuccessfully )
			{
				OnStop();
			}
		}