コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="InstancesController"/> class
        /// </summary>
        public InstancesController(
            IOptions <GeneralSettings> generalSettings,
            ILogger <InstancesController> logger,
            IRegister registerService,
            IInstance instanceService,
            IData dataService,
            IExecution executionService,
            IProfile profileService,
            IPlatformServices platformService,
            IInstanceEvent eventService,
            IRepository repositoryService,
            IWorkflow processService)
        {
            this.logger            = logger;
            this.instanceService   = instanceService;
            this.dataService       = dataService;
            this.executionService  = executionService;
            this.registerService   = registerService;
            this.platformService   = platformService;
            this.eventService      = eventService;
            this.repositoryService = repositoryService;
            this.processService    = processService;

            userHelper = new UserHelper(profileService, registerService, generalSettings);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProcessAppSI"/> class.
 /// </summary>
 public ProcessAppSI(
     IOptions <AppSettings> appSettings,
     IInstanceEvent eventService,
     ILogger <ProcessAppSI> logger)
 {
     _appSettings  = appSettings.Value;
     _eventService = eventService;
     _logger       = logger;
     ProcessHelper = new ProcessHelper(GetProcessDefinition());
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProcessAppSI"/> class.
 /// </summary>
 public ProcessAppSI(
     IOptions <AppSettings> appSettings,
     ILogger <ProcessAppSI> logger,
     IInstanceEvent eventService,
     IInstance instanceService)
 {
     _appSettings     = appSettings.Value;
     _logger          = logger;
     _eventService    = eventService;
     _instanceService = instanceService;
 }
コード例 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ProcessController"/>
        /// </summary>
        public ProcessController(
            ILogger <ProcessController> logger,
            IInstance instanceService,
            IProcess processService,
            IInstanceEvent eventService,
            IProfile profileService,
            IRegister registerService,
            IOptions <GeneralSettings> generalSettings)
        {
            this.logger          = logger;
            this.instanceService = instanceService;
            this.processService  = processService;
            this.eventService    = eventService;

            userHelper = new UserHelper(profileService, registerService, generalSettings);
        }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InstanceController"/> class
 /// </summary>
 /// <param name="authorizationService">The authorizationService (set in Startup.cs)</param>
 /// <param name="logger">The logger (set in Startup.cs)</param>
 /// <param name="profileService">The profile service (set in Startup.cs)</param>
 /// <param name="registerService">The registerService (set in Startup.cs)</param>
 /// <param name="erService">The erService (set in Startup.cs)</param>
 /// <param name="formService">The form</param>
 /// <param name="repositoryService">The repository service (set in Startup.cs)</param>
 /// <param name="serviceExecutionService">The serviceExecutionService (set in Startup.cs)</param>
 /// <param name="archiveService">The archive service</param>
 /// <param name="httpContextAccessor">The http context accessor</param>
 /// <param name="testDataService">the test data service handler</param>
 /// <param name="workflowSI">the workflow service handler</param>
 /// <param name="instanceSI">the instance service handler</param>
 /// <param name="eventSI">the instance event service handler</param>
 /// <param name="platformSI">the platform service handler</param>
 /// <param name="dataSI">the data service handler</param>
 /// <param name="application">the application service handler</param>
 /// <param name="prefill">The prefill service handler</param>
 /// <param name="repositorySettings">the repository settings</param>
 /// <param name="generalSettings">the general settings</param>
 public InstanceController(
     IAuthorization authorizationService,
     ILogger <InstanceController> logger,
     IProfile profileService,
     IRegister registerService,
     IER erService,
     IForm formService,
     IRepository repositoryService,
     IExecution serviceExecutionService,
     IArchive archiveService,
     ITestdata testDataService,
     IHttpContextAccessor httpContextAccessor,
     IWorkflow workflowSI,
     IInstance instanceSI,
     IInstanceEvent eventSI,
     IPlatformServices platformSI,
     IData dataSI,
     IApplication application,
     IPrefill prefill,
     IOptions <ServiceRepositorySettings> repositorySettings,
     IOptions <GeneralSettings> generalSettings)
 {
     _authorization       = authorizationService;
     _logger              = logger;
     _profile             = profileService;
     _register            = registerService;
     _er                  = erService;
     _form                = formService;
     _repository          = repositoryService;
     _execution           = serviceExecutionService;
     _userHelper          = new UserHelper(profileService, _register, generalSettings);
     _archive             = archiveService;
     _testdata            = testDataService;
     _httpContextAccessor = httpContextAccessor;
     _workflowSI          = workflowSI;
     _instance            = instanceSI;
     _event               = eventSI;
     _platformSI          = platformSI;
     _data                = dataSI;
     _prefill             = prefill;
     _application         = application;
     _settings            = repositorySettings.Value;
     _generalSettings     = generalSettings.Value;
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProcessAppSI"/> class.
 /// </summary>
 public ProcessAppSI(
     IOptions <PlatformSettings> platformSettings,
     IOptions <AppSettings> appSettings,
     IInstanceEvent eventService,
     ILogger <ProcessAppSI> logger,
     IHttpContextAccessor httpContextAccessor,
     HttpClient httpClient)
 {
     _appSettings         = appSettings.Value;
     _eventService        = eventService;
     _httpContextAccessor = httpContextAccessor;
     _logger                = logger;
     ProcessHelper          = new ProcessHelper(GetProcessDefinition());
     httpClient.BaseAddress = new Uri(platformSettings.Value.ApiStorageEndpoint);
     httpClient.DefaultRequestHeaders.Add(General.SubscriptionKeyHeaderName, platformSettings.Value.SubscriptionKey);
     httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
     httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/xml"));
     _client = httpClient;
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceAPIController"/> class.
 /// </summary>
 /// <param name="settings">The repository settings (set in Startup.cs).</param>
 /// <param name="generalSettings">The general settings (set in Startup.cs).</param>
 /// <param name="compilationService">The compilation service (set in Startup.cs).</param>
 /// <param name="authorizationService">The authorization service (set in Startup.cs).</param>
 /// <param name="logger">The logger (set in Startup.cs).</param>
 /// <param name="registerService">The register service (set in Startup.cs).</param>
 /// <param name="formService">The form service.</param>
 /// <param name="repositoryService">The repository service (set in Startup.cs).</param>
 /// <param name="executionService">The execution service (set in Startup.cs).</param>
 /// <param name="profileService">The profile service (set in Startup.cs).</param>
 /// <param name="httpContextAccessor">The http context accessor.</param>
 /// <param name="workflowSI">The workflow service.</param>
 /// <param name="instanceSI">The instance si</param>
 /// <param name="platformSI">The platform si</param>
 /// <param name="data">the data service</param>
 /// <param name="eventSI">the instance event service handler</param>
 public ServiceAPIController(
     IOptions <ServiceRepositorySettings> settings,
     IOptions <GeneralSettings> generalSettings,
     ICompilation compilationService,
     IAuthorization authorizationService,
     ILogger <ServiceAPIController> logger,
     IRegister registerService,
     IForm formService,
     IRepository repositoryService,
     IExecution executionService,
     IProfile profileService,
     IHttpContextAccessor httpContextAccessor,
     IWorkflow workflowSI,
     IInstance instanceSI,
     IPlatformServices platformSI,
     IData data,
     IInstanceEvent eventSI)
 {
     _settings            = settings.Value;
     _generalSettings     = generalSettings.Value;
     _compilation         = compilationService;
     _authorization       = authorizationService;
     _logger              = logger;
     _register            = registerService;
     _form                = formService;
     _repository          = repositoryService;
     _execution           = executionService;
     _profile             = profileService;
     _userHelper          = new UserHelper(_profile, _register, generalSettings);
     _httpContextAccessor = httpContextAccessor;
     _workflowSI          = workflowSI;
     _instance            = instanceSI;
     _platformSI          = platformSI;
     _data                = data;
     _event               = eventSI;
 }