/// <summary>
        /// Creates a hosted test isolation provider.
        /// </summary>
        /// <param name="hostFactory">The host factory.</param>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="hostFactory"/>
        /// is null.</exception>
        public HostedTestIsolationProvider(IHostFactory hostFactory)
        {
            if (hostFactory == null)
                throw new ArgumentNullException("hostFactory");

            this.hostFactory = hostFactory;
        }
        /// <summary>
        /// Creates a hosted test isolation provider.
        /// </summary>
        /// <param name="hostFactory">The host factory.</param>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="hostFactory"/>
        /// is null.</exception>
        public HostedTestIsolationProvider(IHostFactory hostFactory)
        {
            if (hostFactory == null)
            {
                throw new ArgumentNullException("hostFactory");
            }

            this.hostFactory = hostFactory;
        }
Exemplo n.º 3
0
        /// <summary>
        /// Creates a hosted test isolation context.
        /// </summary>
        /// <param name="hostFactory">The host factory.</param>
        /// <param name="testIsolationOptions">The test isolation options.</param>
        /// <param name="logger">The logger.</param>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="hostFactory"/>,
        /// <paramref name="testIsolationOptions"/> or <paramref name="logger"/> is null.</exception>
        public HostedTestIsolationContext(IHostFactory hostFactory,
                                          TestIsolationOptions testIsolationOptions, ILogger logger)
        {
            if (hostFactory == null)
            {
                throw new ArgumentNullException("hostFactory");
            }
            if (testIsolationOptions == null)
            {
                throw new ArgumentNullException("testIsolationOptions");
            }
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            this.hostFactory     = hostFactory;
            TestIsolationOptions = testIsolationOptions;
            this.logger          = logger;
        }
Exemplo n.º 4
0
        public HostStarter(string defaultName, IHostFactory hostFactory)
        {
            if (string.IsNullOrEmpty(defaultName))
            {
                throw new ArgumentNullException("defaultName");
            }

            if (hostFactory == null)
            {
                throw new ArgumentNullException("hostFactory");
            }

            ExceptionPolicy.Instance.Init();

            _defaultName = defaultName;
            // раньше получать нельзя, т.к. не будет инициализрован
            _log         = LogManager.GetLogger(GetType());
            _hostFactory = hostFactory;

            AppName     = System.Diagnostics.Process.GetCurrentProcess().ProcessName.Replace(".vshost", "");
            ServiceName = AppName;
            DisplayName = AppName;
        }
Exemplo n.º 5
0
 public WriteDocumentationTask(ITaskFactory taskFactory, IHostFactory hostFactory)
 {
     this._taskFactory = taskFactory;
     this._hostFactory = hostFactory;
 }
Exemplo n.º 6
0
 public void start(IHostFactory factory)
 {
     host_factory = factory;
     main();
 }
Exemplo n.º 7
0
 public HostRepository(IAddressRepository addressRepository, IHostFactory hostFactory)
 {
     _addressRepository = addressRepository;
     _hostFactory       = hostFactory;
 }
Exemplo n.º 8
0
 public HostServicoWebAPI(IHostFactory host_)
 {
     _HostFactory = host_;
 }