public BackChannelWebHost(IJobbrServiceProvider jobbrServiceProvider, ForkedExecutionConfiguration configuration)
        {
            Logger.Debug("Constructing new BackChannelWebHost");

            this.jobbrServiceProvider = jobbrServiceProvider;
            this.configuration        = configuration;
        }
Beispiel #2
0
        /// <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;
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
        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;
        }
Beispiel #5
0
 public DependencyResolverAdapter(IJobbrServiceProvider serviceProvider)
 {
     this._serviceProvider = serviceProvider;
 }
Beispiel #6
0
 public Startup(IJobbrServiceProvider serviceProvider)
 {
     this.dependencyResolver = serviceProvider;
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DashboardBackend"/> class.
 /// </summary>
 public DashboardBackend(IJobbrServiceProvider dependencyResolver, DashboardConfiguration configuration)
 {
     this.dependencyResolver = dependencyResolver;
     this.configuration      = configuration;
 }
Beispiel #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebHost"/> class.
 /// </summary>
 public WebHost(IJobbrServiceProvider dependencyResolver, JobbrWebApiConfiguration configuration)
 {
     this.dependencyResolver = dependencyResolver;
     this.configuration      = configuration;
 }