// The required services are injected. Registration is in Program.cs public Toot(ILogger <Toot> logger, IAppConfiguration configuration, IInstanceService instanceService, IConsole console) { this.log = logger; this.cfg = configuration; this.instanceService = instanceService; this.console = console; }
public DeleteOfflineNonFarmInstance(IFarmContext context, IInstanceService instanceService, IFarmBuilder farmBuilder, IStateService stateService) { _context = context; _instanceService = instanceService; _farmBuilder = farmBuilder; _stateService = stateService; }
public InstanceController(IInstanceService instanceService, ITickerRepository tickerRepository, ITimeFrameRepository timeFrameRepository, IStrategyInfoRepository strategyInfoRepository) { this.instanceService = instanceService; this.tickerRepository = tickerRepository; this.timeFrameRepository = timeFrameRepository; this.strategyInfoRepository = strategyInfoRepository; }
public RelaunchOfflineInstance(IFarmContext context, IDateTime dateTime, IFarmBuilder farmBuilder, IInstanceService instanceService) { _context = context; _dateTime = dateTime; _farmBuilder = farmBuilder; _instanceService = instanceService; }
public FeedService(ILogger <FeedService> logger, IAppConfiguration configuration, IInstanceService instanceService, ICacheService cacheService) { this.log = logger; this.cfg = configuration; this.instance = instanceService; this.cache = cacheService; }
public DeleteOfflineInstance(IFarmContext context, IStateService stateService, ILogger <DeleteOfflineInstance> logger, IInstanceService instanceService) { _context = context; _stateService = stateService; _logger = logger; _instanceService = instanceService; }
public TesterController(IInstanceService instanceService) { this.instanceService = instanceService; jsonSerializerSettings = new JsonSerializerSettings(); jsonSerializerSettings.NullValueHandling = NullValueHandling.Ignore; }
public AggregateService(IInstanceService instance, IScopedService scoped, ITransientService transient, ISingletonService singleton) { Instance = instance; Scoped = scoped; Transient = transient; Singleton = singleton; }
public LaunchInstance(IFarmBuilder farmBuilder, IFarmContext context, IInstanceService instanceService, IDateTime dateTime) { _farmBuilder = farmBuilder; _context = context; _instanceService = instanceService; _dateTime = dateTime; }
// The required services are injected. Registration is in Program.cs public RegisterApplication(ILogger <RegisterApplication> logger, IAppConfiguration configuration, IInstanceService instanceService, IConsole console) { this.log = logger; this.cfg = configuration; this.instanceService = instanceService; this.console = console; }
public RequestMulingHandler(IStateService stateService, IFarmContext context, ILogger <RequestMulingHandler> logger, IInstanceService instanceService, IRandom random) { _stateService = stateService; _context = context; _logger = logger; _instanceService = instanceService; _random = random; }
public HomeController(IAggregateService aggregateService, ITransientService transientService, IScopedService scopedService, IInstanceService instanceService, ISingletonService singletonService) { AggregateService = aggregateService; TransientService = transientService; ScopedService = scopedService; SingletonService = singletonService; InstanceService = instanceService; }
public CollectedDataController(ICollectedDataService service, IMapper mapper, IInstanceService instanceService) { _collectedDataService = service; _mapper = mapper; _instanceService = instanceService; }
public Report( IDatabaseService databaseService, IInstanceService instanceService ) { this.databaseService = databaseService; this.instanceService = instanceService; }
public Action( IDatabaseService databaseService, IInstanceService instanceService ) { this.databaseService = databaseService; this.instanceService = instanceService; }
public Report( IDatabaseService databaseService, IReportMetadataService reportMetadataService, IInstanceService instanceService ) : base(reportMetadataService) { this.databaseService = databaseService; this.instanceService = instanceService; }
public ApplicationBootstrapper( IInstanceService instanceService, IStorageService storageService, IMetadataService metadataService) { _instanceService = instanceService; _storageService = storageService; _metadataService = metadataService; }
public MeetingAttendeeController( IMeetingService meetingService, IInstanceService invatationService, IAuthenticationService authenticationService) { _meetingService = meetingService; _invationService = invatationService; _authenticationService = authenticationService; }
public WfRuntimeForward( ITaskService taskService, IInstanceService instanceService, IInstanceTaskService iTaskService) { this.taskService = taskService; this.instanceService = instanceService; this.iTaskService = iTaskService; }
public Report( IDatabaseService databaseService, IInstanceService instanceService, ICmsFileService cmsFileService ) { _databaseService = databaseService; _instanceService = instanceService; _cmsFileService = cmsFileService; }
public EmulController(IInstanceService instanceService, ISettingService settingService, IAliveStrategyRepository aliveStrategyRepository, IOrderRepository orderRepository) { this.instanceService = instanceService; this.settingService = settingService; this.aliveStrategyRepository = aliveStrategyRepository; this.orderRepository = orderRepository; jsonSerializerSettings = new JsonSerializerSettings(); jsonSerializerSettings.NullValueHandling = NullValueHandling.Ignore; }
public Report( IDatabaseService databaseService, IInstanceService instanceService, ICmsFileService cmsFileService, IReportMetadataService reportMetadataService ) : base(reportMetadataService) { _databaseService = databaseService; _instanceService = instanceService; _cmsFileService = cmsFileService; }
private void OnShutdown(IInstanceService instanceService, IJobService jobService) { _logger.Log(LogLevel.Warning, "Application shutdown initiated"); instanceService.MarkInstanceDown(true); //mark currently running jobs from this instance as stopped jobService.MarkStopped(instanceService.GetCurrentInstanceId()); _logger.Log(LogLevel.Warning, "Instance marked as down"); }
public WfRuntimeBackward( ITaskService taskService, IRouteService routeService, IInstanceService instanceService, IInstanceTaskService iTaskService) { this.taskService = taskService; this.routeService = routeService; this.instanceService = instanceService; this.iTaskService = iTaskService; }
public HomeController( ILogger <HomeController> logger, IWebHostEnvironment env, IFileProvider fileProvider, IInstanceService instances) { this.logger = logger; this.env = env; this.fileProvider = fileProvider; this.instances = instances; }
public JobExecuter(IInstanceService instanceService, IPluginRunner pluginRunner, IJobRepository jobRepository, IJobSessionRepository jobSessionRepository, IJobScheduleRepository jobScheduleRepository, ILogger <JobExecuter> logger, IConfiguration configuration, IWorkloadAnalyzer workloadAnalyzer) { _instanceService = instanceService; _pluginRunner = pluginRunner; _jobRepository = jobRepository; _jobSessionRepository = jobSessionRepository; _jobScheduleRepository = jobScheduleRepository; _logger = logger; _configuration = configuration; _workloadAnalyzer = workloadAnalyzer; }
public ModuleService( IReportRepository reportRepository, IActionRepository actionRepository, IInstanceService instanceService, IDatabaseService databaseService, IModuleMetadataService moduleMetadataService ) { this.reportRepository = reportRepository; this.actionRepository = actionRepository; this.instanceService = instanceService; this.databaseService = databaseService; this.moduleMetadataService = moduleMetadataService; }
public InstanceController ( IInstanceRepository instanceRepository, IServiceLogRepository log, IArtifactPermissionsRepository artifactPermissionsRepository, IPrivilegesRepository privilegesRepository, IInstanceService instanceService) : base(log) { _instanceRepository = instanceRepository; _artifactPermissionsRepository = artifactPermissionsRepository; _instanceService = instanceService; _privilegesManager = new PrivilegesManager(privilegesRepository); _privilegesRepository = privilegesRepository; }
public InstanceServiceTest() { _now = DateTime.UtcNow; var dateTime = new Mock <IDateTime>(); dateTime.Setup(d => d.UtcNow).Returns(_now); _instanceService = new FORFarm.Application.Farm.InstanceService( dateTime.Object, new Mock <IClientHandler>().Object, new Mock <IStateService>().Object, Mapper, NewContext); }
public HomeController(ITransientService transientService1, ITransientService transientService2, IScopeService scopeService1, IScopeService scopeService2, IInstanceService instanceService1, IInstanceService instanceService2 ) { _transientService1 = transientService1; _transientService2 = transientService2; _scopeService1 = scopeService1; _scopeService2 = scopeService2; _instanceService1 = instanceService1; _instanceService2 = instanceService2; }
public MeetingController( IMeetingService meetingService, IInstanceService invatationService, ILogService logService, ILoggerFactory logger, IAuthenticationService authenticationService, IMeetingAttachmentService meetingAttachmentService) { _meetingService = meetingService; _invatationService = invatationService; _logService = logService; _authenticationService = authenticationService; _meetingAttachmentService = meetingAttachmentService; _logger = logger.CreateLogger("MeetingController"); }
public Report( IDatabaseService databaseService, IInstanceService instanceService, IReportMetadataService reportMetadataService, HttpClient httpClient = null ) : base(reportMetadataService) { this.databaseService = databaseService; this.instanceService = instanceService; if (httpClient != null) { _httpClient = httpClient; } }
public void Setup() { this.logger = Mock.Of <ILogger <InstanceService> >(); this.instanceRepository = new InstanceRepositoryStub(); this.instanceService = new InstanceService(instanceRepository, logger); this.applicationOneInstance1 = new Instance() { App = "ApplicationTest", HostName = "hostNameTest", IpAddr = "0.0.0.0", Port = 6969, HealthCheckUrl = "", HomePageUrl = "", Status = "", StatusPageUrl = "" }; }
public InstanceController(IInstanceService service, IMapper mapper) { _service = service; _mapper = mapper; }