public BackChannelWebHost(IJobbrServiceProvider jobbrServiceProvider, ForkedExecutionConfiguration configuration) { Logger.Debug("Constructing new BackChannelWebHost"); this.jobbrServiceProvider = jobbrServiceProvider; this.configuration = configuration; }
/// <summary> /// Initializes a new instance of the <see cref="Startup"/> class. /// </summary> /// <param name="serviceProvider"> /// The dependency resolver. /// </param> public Startup(IJobbrServiceProvider serviceProvider) { if (serviceProvider == null) { throw new ArgumentException("Please provide a service provider. See http://servercoredump.com/question/27246240/inject-current-user-owin-host-web-api-service for details", "serviceProvider"); } this.dependencyResolver = serviceProvider; }
public MyExtension(IJobbrServiceProvider serviceProvider, IJobManagementService jobManagementService, IQueryService queryService) { Instance = this; // you can request basically anything that is available in the JobbrDI. The list of available types are // defined in the corresponding component models available on http://github.com/jobbrIO this.serviceProvider = serviceProvider; this.jobManagementService = jobManagementService; this.queryService = queryService; }
public ExposeAllServicesComponent(IJobbrServiceProvider serviceProvider, IArtefactsStorageProvider artefactsStorageProvider, IJobStorageProvider jobStorageProvider, IJobManagementService jobManagementService, IQueryService queryService, IServerManagementService managementService, IJobRunInformationService informationService, IJobRunProgressChannel progressChannel) { this.ServiceProvider = serviceProvider; this.ArtefactsStorageProvider = artefactsStorageProvider; this.JobStorageProvider = jobStorageProvider; this.JobManagementService = jobManagementService; this.QueryService = queryService; this.ManagementService = managementService; this.InformationService = informationService; this.ProgressChannel = progressChannel; instancesPerThread.Value = this; }
public DependencyResolverAdapter(IJobbrServiceProvider serviceProvider) { this._serviceProvider = serviceProvider; }
public Startup(IJobbrServiceProvider serviceProvider) { this.dependencyResolver = serviceProvider; }
/// <summary> /// Initializes a new instance of the <see cref="DashboardBackend"/> class. /// </summary> public DashboardBackend(IJobbrServiceProvider dependencyResolver, DashboardConfiguration configuration) { this.dependencyResolver = dependencyResolver; this.configuration = configuration; }
/// <summary> /// Initializes a new instance of the <see cref="WebHost"/> class. /// </summary> public WebHost(IJobbrServiceProvider dependencyResolver, JobbrWebApiConfiguration configuration) { this.dependencyResolver = dependencyResolver; this.configuration = configuration; }