Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HostOptions"/> class.
 /// </summary>
 /// <param name="consoleArguments">console arguments</param>
 /// <param name="containerOptions">container options</param>
 /// <param name="requestShutdown">injected request shutdown service</param>
 /// <param name="monitorShutdown">injected monitor shutdown service</param>
 public HostOptions(ConsoleArguments consoleArguments, IContainerOptions containerOptions, IRequestShutdown requestShutdown, IMonitorShutdown monitorShutdown)
 {
     this.RequestShutdown  = requestShutdown;
     this.MonitorShutdown  = monitorShutdown;
     this.ConsoleArguments = consoleArguments;
     this.ContainerOptions = containerOptions;
 }
        /// <summary>
        ///     Fluent API to Indicate Logging Facility should use the specified options
        /// </summary>
        /// <param name="options">container options</param>
        /// <returns>the logging facility</returns>
        public AbbotwareLoggingFacility WithOptions(IContainerOptions options)
        {
            options = Arguments.EnsureNotNull(options, nameof(options));

            this.containerName = options.Component;

            return(this);
        }
Beispiel #3
0
        /// <summary>
        /// creates the container
        /// </summary>
        /// <param name="options">container options</param>
        /// <returns>new container</returns>
        public static IWindsorContainer Create(IContainerOptions options)
        {
            options = Arguments.EnsureNotNull(options, nameof(options));

            return(Create(options.Component, options.DisableStartable));
        }
Beispiel #4
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="DefaultFacilitiesInstaller" /> class.
        /// </summary>
        /// <param name="options">container options</param>
        public DefaultFacilitiesInstaller(IContainerOptions options)
        {
            Arguments.NotNull(options, nameof(options));

            this.Options = options;
        }