コード例 #1
0
 public TaskService(
     SteamfitterContext context,
     IAuthorizationService authorizationService,
     IPrincipal user,
     IMapper mapper,
     IStackStormService stackStormService,
     IOptions <VmTaskProcessingOptions> options,
     IResultService resultService,
     ILogger <TaskService> logger,
     IPlayerService playerService,
     IPlayerVmService playerVmService,
     IHttpClientFactory httpClientFactory,
     ClientOptions clientSettings,
     IHubContext <EngineHub> engineHub,
     ITaskExecutionQueue taskexecutionQueue)
 {
     _context = context;
     _authorizationService = authorizationService;
     _user               = user as ClaimsPrincipal;
     _mapper             = mapper;
     _stackStormService  = stackStormService;
     _options            = options.Value;
     _resultService      = resultService;
     _httpClientFactory  = httpClientFactory;
     _logger             = logger;
     _playerService      = playerService;
     _playerVmService    = playerVmService;
     _isHttps            = clientSettings.urls.playerApi.ToLower().StartsWith("https:");
     _engineHub          = engineHub;
     _taskExecutionQueue = taskexecutionQueue;
 }
コード例 #2
0
 public ScenarioService(SteamfitterContext context,
                        IAuthorizationService authorizationService,
                        IPrincipal user,
                        IMapper mapper,
                        ITaskService taskService,
                        IStackStormService stackstormService)
 {
     _context = context;
     _authorizationService = authorizationService;
     _user              = user as ClaimsPrincipal;
     _mapper            = mapper;
     _taskService       = taskService;
     _stackstormService = stackstormService;
 }
コード例 #3
0
 public BondAgentService(
     IAuthorizationService authorizationService,
     IPrincipal user,
     IMapper mapper,
     IStackStormService stackStormService,
     BondAgentStore bondAgentStore,
     IOptions <VmTaskProcessingOptions> options,
     ILogger <BondAgentService> logger,
     IHttpClientFactory httpClientFactory)
 {
     _authorizationService = authorizationService;
     _user           = user as ClaimsPrincipal;
     _mapper         = mapper;
     _bondAgentStore = bondAgentStore;
     _logger         = logger;
 }
コード例 #4
0
 public TaskExecutionService(
     ILogger <TaskExecutionService> logger,
     IOptionsMonitor <Infrastructure.Options.VmTaskProcessingOptions> vmTaskProcessingOptions,
     IServiceScopeFactory scopeFactory,
     IMapper mapper,
     IHubContext <EngineHub> engineHub,
     IStackStormService stackStormService,
     ITaskExecutionQueue taskExecutionQueue,
     IHttpClientFactory httpClientFactory,
     IOptionsMonitor <Infrastructure.Options.ClientOptions> clientOptions)
 {
     _logger = logger;
     _vmTaskProcessingOptions = vmTaskProcessingOptions;
     _scopeFactory            = scopeFactory;
     _mapper             = mapper;
     _engineHub          = engineHub;
     _stackStormService  = stackStormService;
     _taskExecutionQueue = taskExecutionQueue;
     _httpClientFactory  = httpClientFactory;
     _clientOptions      = clientOptions;
 }
コード例 #5
0
 public DispatchTaskService(
     SteamfitterContext context,
     IAuthorizationService authorizationService,
     IPrincipal user,
     IMapper mapper,
     IStackStormService stackStormService,
     IOptions <VmTaskProcessingOptions> options,
     IDispatchTaskResultService dispatchTaskResultService,
     ILogger <DispatchTaskService> logger,
     IPlayerVmService playerVmService,
     IHttpClientFactory httpClientFactory)
 {
     _context = context;
     _authorizationService = authorizationService;
     _user                      = user as ClaimsPrincipal;
     _mapper                    = mapper;
     _stackStormService         = stackStormService;
     _options                   = options.Value;
     _dispatchTaskResultService = dispatchTaskResultService;
     _httpClientFactory         = httpClientFactory;
     _logger                    = logger;
     _playerVmService           = playerVmService;
 }