예제 #1
0
 public StackStormService(
     IOptions <VmTaskProcessingOptions> options,
     ILogger <StackStormService> logger)
 {
     _options = options.Value;
     _logger  = logger;
 }
 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;
 }
예제 #3
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;
 }