コード例 #1
0
ファイル: MinaServiceBase.cs プロジェクト: godsharp/Mina
        /// <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
ファイル: MinaServiceBase.cs プロジェクト: godsharp/Mina
 /// <summary>
 /// Initializes a new instance of the <see cref="MinaServiceBase"/> class.
 /// </summary>
 public MinaServiceBase()
 {
     this.options = new MinaServiceOption();
 }