예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MinaServiceBase"/> class.
        /// </summary>
        /// <param name="service">The service.</param>
        /// <param name="option">The option.</param>
        public MinaServiceBase(MinaService service, MinaServiceOption option) : this()
        {
            this.service = service;
            this.options = option;

            SetOptions();
        }
예제 #2
0
        /// <summary>
        /// Builds the service installer.
        /// </summary>
        /// <param name="options">The options.</param>
        /// <param name="statrup">The statrup.</param>
        /// <returns></returns>
        internal ServiceInstaller BuildServiceInstaller(MinaServiceOption options, MinaStatrupOption statrup)
        {
            return(new ServiceInstaller()
            {
                ServiceName = options.ServiceName,
                DisplayName = options.DisplayName,
                Description = options.Description,
                StartType = statrup.StartType,
#if !(NET20 || NET35)
                DelayedAutoStart = statrup.DelayedAutoStart,
#endif
                ServicesDependedOn = statrup.ServicesDependedOn
            });
        }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MinaServiceBase"/> class.
 /// </summary>
 public MinaServiceBase()
 {
     this.options = new MinaServiceOption();
 }