/// <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(); }
/// <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 }); }
/// <summary> /// Initializes a new instance of the <see cref="MinaServiceBase"/> class. /// </summary> public MinaServiceBase() { this.options = new MinaServiceOption(); }