/// <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; }
/// <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; }
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; }
public WriteDocumentationTask(ITaskFactory taskFactory, IHostFactory hostFactory) { this._taskFactory = taskFactory; this._hostFactory = hostFactory; }
public void start(IHostFactory factory) { host_factory = factory; main(); }
public HostRepository(IAddressRepository addressRepository, IHostFactory hostFactory) { _addressRepository = addressRepository; _hostFactory = hostFactory; }
public HostServicoWebAPI(IHostFactory host_) { _HostFactory = host_; }