/// <summary>
 /// コンストラクタで各 DI オブジェクトを引数で受け取ります。
 /// </summary>
 public SyncClusterFromDBTimer(
     ITenantRepository tenantRepository,
     IRegistryRepository registryRepository,
     INodeRepository nodeRepository,
     IUnitOfWork unitOfWork,
     IClusterManagementService clusterManagementService,
     GitLabRegistryService gitLabRegistryService,
     DockerHubRegistryService dockerHubRegistryService,
     PrivateDockerRegistryService privateDockerRegistryService,
     NvidiaGPUCloudRegistryService nvidiaGPUCloudRegistryService,
     IClusterManagementLogic clusterManagementLogic,
     IStorageLogic storageLogic,
     IOptions <ContainerManageOptions> containerManageOptions,
     IOptions <SyncClusterFromDBOptions> SyncClusterFromDBOptions,
     ILogger <SyncClusterFromDBTimer> logger
     ) : base(logger, SyncClusterFromDBOptions.Value)
 {
     // 各 DI オブジェクトの設定
     this.tenantRepository              = tenantRepository;
     this.registryRepository            = registryRepository;
     this.nodeRepository                = nodeRepository;
     this.unitOfWork                    = unitOfWork;
     this.clusterManagementService      = clusterManagementService;
     this.gitLabRegistryService         = gitLabRegistryService;
     this.dockerHubRegistryService      = dockerHubRegistryService;
     this.privateDockerRegistryService  = privateDockerRegistryService;
     this.nvidiaGPUCloudRegistryService = nvidiaGPUCloudRegistryService;
     this.clusterManagementLogic        = clusterManagementLogic;
     this.storageLogic                  = storageLogic;
     this.containerManageOptions        = containerManageOptions.Value;
 }
 /// <summary>
 /// Calendar management logic.
 /// </summary>
 /// <param name="downloadLogic">Download logic.</param>
 /// <param name="storageLogic">Storage logic.</param>
 public CalendarLogic(
     IDownloadLogic downloadLogic,
     IStorageLogic storageLogic)
 {
     _downloadLogic = downloadLogic;
     _storageLogic  = storageLogic;
 }
 public StorageController(IStorageLogic storageLogic,
                          IManagedTracer tracer, ILogger <StorageController> logger)
 {
     _storageLogic = storageLogic ?? throw new ArgumentNullException(nameof(storageLogic));
     _tracer       = tracer ?? throw new ArgumentNullException(nameof(tracer));
     _logger       = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Beispiel #4
0
        public MainWindow(
            FlightInfoViewModel viewModel,
            SignalRLogic signalR,
            FlightLogic flightLogic,
            TestLogic testLogic,
            IFlightSimInterface flightSimInterface,
            FileWatcherLogic watcher,
            IStorageLogic storageLogic,
            ILogger <MainWindow> logger)
        {
            InitializeComponent();

            this.viewModel          = viewModel;
            this.signalR            = signalR;
            this.flightLogic        = flightLogic;
            this.testLogic          = testLogic;
            this.flightSimInterface = flightSimInterface ?? throw new ArgumentNullException(nameof(flightSimInterface));
            this.watcher            = watcher ?? throw new ArgumentNullException(nameof(watcher));
            this.storageLogic       = storageLogic ?? throw new ArgumentNullException(nameof(storageLogic));
            this.logger             = logger;
            DataContext             = viewModel;

            flightSimInterface.AircraftDataUpdated += FlightSimInterface_AircraftDataUpdated;
            flightSimInterface.FlightPlanUpdated   += FlightSimInterface_FlightPlanUpdated;
            flightSimInterface.FlightStatusUpdated += FlightStatusUpdater_FlightStatusUpdated;

            watcher.FileCreated += Watcher_FileCreated;

            TextArchiveFolder.Text = storageLogic.ArchiveFolder;
        }
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public InferenceController(
     ITrainingHistoryRepository trainingHistoryRepository,
     IInferenceHistoryRepository inferenceHistoryRepository,
     IDataSetRepository dataSetRepository,
     ITenantRepository tenantRepository,
     INodeRepository nodeRepository,
     IDataSetLogic dataSetLogic,
     IInferenceLogic inferenceLogic,
     IStorageLogic storageLogic,
     IGitLogic gitLogic,
     IClusterManagementLogic clusterManagementLogic,
     IUnitOfWork unitOfWork,
     IHttpContextAccessor accessor) : base(accessor)
 {
     this.trainingHistoryRepository  = trainingHistoryRepository;
     this.inferenceHistoryRepository = inferenceHistoryRepository;
     this.dataSetRepository          = dataSetRepository;
     this.tenantRepository           = tenantRepository;
     this.nodeRepository             = nodeRepository;
     this.dataSetLogic           = dataSetLogic;
     this.inferenceLogic         = inferenceLogic;
     this.storageLogic           = storageLogic;
     this.gitLogic               = gitLogic;
     this.clusterManagementLogic = clusterManagementLogic;
     this.unitOfWork             = unitOfWork;
 }
Beispiel #6
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public TrainingController(
     ITrainingHistoryRepository trainingHistoryRepository,
     IInferenceHistoryRepository inferenceHistoryRepository,
     ITensorBoardContainerRepository tensorBoardContainerRepository,
     IDataSetRepository dataSetRepository,
     ITagRepository tagRepository,
     ITenantRepository tenantRepository,
     INodeRepository nodeRepository,
     ITagLogic tagLogic,
     ITrainingLogic trainingLogic,
     IStorageLogic storageLogic,
     IGitLogic gitLogic,
     IClusterManagementLogic clusterManagementLogic,
     IOptions <ContainerManageOptions> containerOptions,
     IUnitOfWork unitOfWork,
     IHttpContextAccessor accessor) : base(accessor)
 {
     this.trainingHistoryRepository      = trainingHistoryRepository;
     this.inferenceHistoryRepository     = inferenceHistoryRepository;
     this.tensorBoardContainerRepository = tensorBoardContainerRepository;
     this.dataSetRepository      = dataSetRepository;
     this.tagRepository          = tagRepository;
     this.tenantRepository       = tenantRepository;
     this.nodeRepository         = nodeRepository;
     this.tagLogic               = tagLogic;
     this.trainingLogic          = trainingLogic;
     this.storageLogic           = storageLogic;
     this.gitLogic               = gitLogic;
     this.clusterManagementLogic = clusterManagementLogic;
     this.containerOptions       = containerOptions.Value;
     this.unitOfWork             = unitOfWork;
 }
 public StorageController(
     IStorageLogic storageLogic,
     ITenantRepository tenantRepository,
     IUnitOfWork unitOfWork,
     IHttpContextAccessor accessor) : base(accessor)
 {
     this.storageLogic     = storageLogic;
     this.tenantRepository = tenantRepository;
     this.unitOfWork       = unitOfWork;
 }
Beispiel #8
0
        public FileWatcherLogic(ILogger <FileWatcherLogic> logger, IStorageLogic storageLogic, string screenshotFolderPath)
        {
            this.logger          = logger;
            this.storageLogic    = storageLogic;
            ScreenshotFolderPath = screenshotFolderPath;

            watcher                     = new FileSystemWatcher(screenshotFolderPath);
            watcher.Created            += Watcher_Created;
            watcher.EnableRaisingEvents = true;
        }
Beispiel #9
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public DataLogic(
     IDataRepository dataRepository,
     ITagLogic tagLogic,
     IStorageLogic storageLogic,
     ICommonDiLogic commonDiLogic) : base(commonDiLogic)
 {
     this.dataRepository = dataRepository;
     this.tagLogic       = tagLogic;
     this.storageLogic   = storageLogic;
 }
 public PreprocessingController(
     IPreprocessRepository preprocessRepository,
     IPreprocessHistoryRepository preprocessHistoryRepository,
     IGitLogic gitLogic,
     IStorageLogic storageLogic,
     IUnitOfWork unitOfWork,
     IHttpContextAccessor accessor) : base(accessor)
 {
     this.preprocessRepository        = preprocessRepository;
     this.preprocessHistoryRepository = preprocessHistoryRepository;
     this.gitLogic     = gitLogic;
     this.storageLogic = storageLogic;
     this.unitOfWork   = unitOfWork;
 }
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public PreprocessLogic(
     IPreprocessHistoryRepository preprocessHistoryRepository,
     IDataLogic dataLogic,
     IStorageLogic storageLogic,
     IClusterManagementLogic clusterManagementLogic,
     IUnitOfWork unitOfWork,
     ICommonDiLogic commonDiLogic) : base(commonDiLogic)
 {
     this.preprocessHistoryRepository = preprocessHistoryRepository;
     this.dataLogic              = dataLogic;
     this.storageLogic           = storageLogic;
     this.clusterManagementLogic = clusterManagementLogic;
     this.unitOfWork             = unitOfWork;
 }
 public ExperimentController(
     IExperimentRepository experimentRepository,
     IExperimentPreprocessRepository experimentPreprocessRepository,
     IAquariumDataSetRepository aquariumDataSetRepository,
     IDataSetRepository dataSetRepository,
     IGitRepository gitRepository,
     IRegistryRepository registryRepository,
     ITrainingHistoryRepository trainingHistoryRepository,
     ITemplateRepository templateRepository,
     ITemplateVersionRepository templateVersionRepository,
     ITenantRepository tenantRepository,
     INodeRepository nodeRepository,
     ITemplateLogic templateLogic,
     ITagLogic tagLogic,
     IGitLogic gitLogic,
     IClusterManagementLogic clusterManagementLogic,
     IDataSetLogic dataSetLogic,
     IRegistryLogic registryLogic,
     IUnitOfWork unitOfWork,
     IInferenceHistoryRepository inferenceHistoryRepository,
     ITensorBoardContainerRepository tensorBoardContainerRepository,
     ITagRepository tagRepository,
     IStorageLogic storageLogic,
     IHttpContextAccessor accessor) : base(accessor)
 {
     this.trainingHistoryRepository      = trainingHistoryRepository;
     this.experimentRepository           = experimentRepository;
     this.experimentPreprocessRepository = experimentPreprocessRepository;
     this.aquariumDataSetRepository      = aquariumDataSetRepository;
     this.dataSetRepository         = dataSetRepository;
     this.gitRepository             = gitRepository;
     this.registryRepository        = registryRepository;
     this.templateRepository        = templateRepository;
     this.templateVersionRepository = templateVersionRepository;
     this.tenantRepository          = tenantRepository;
     this.nodeRepository            = nodeRepository;
     this.templateLogic             = templateLogic;
     this.tagLogic = tagLogic;
     this.gitLogic = gitLogic;
     this.clusterManagementLogic         = clusterManagementLogic;
     this.dataSetLogic                   = dataSetLogic;
     this.registryLogic                  = registryLogic;
     this.inferenceHistoryRepository     = inferenceHistoryRepository;
     this.tensorBoardContainerRepository = tensorBoardContainerRepository;
     this.tagRepository                  = tagRepository;
     this.storageLogic                   = storageLogic;
     this.unitOfWork = unitOfWork;
 }
Beispiel #13
0
 public DataController(
     IDataRepository dataRepository,
     IPreprocessHistoryRepository preprocessHistoryRepository,
     IDataLogic dataLogic,
     ITagLogic tagLogic,
     IStorageLogic storageLogic,
     IUnitOfWork unitOfWork,
     IHttpContextAccessor accessor) : base(accessor)
 {
     this.dataRepository = dataRepository;
     this.preprocessHistoryRepository = preprocessHistoryRepository;
     this.dataLogic    = dataLogic;
     this.tagLogic     = tagLogic;
     this.storageLogic = storageLogic;
     this.unitOfWork   = unitOfWork;
 }
 public NotebookController(
     INotebookHistoryRepository notebookHistoryRepository,
     IDataSetRepository dataSetRepository,
     INotebookLogic notebookLogic,
     IStorageLogic storageLogic,
     IGitLogic gitLogic,
     IClusterManagementLogic clusterManagementLogic,
     IUnitOfWork unitOfWork,
     IHttpContextAccessor accessor) : base(accessor)
 {
     this.notebookHistoryRepository = notebookHistoryRepository;
     this.dataSetRepository         = dataSetRepository;
     this.notebookLogic             = notebookLogic;
     this.storageLogic           = storageLogic;
     this.gitLogic               = gitLogic;
     this.clusterManagementLogic = clusterManagementLogic;
     this.unitOfWork             = unitOfWork;
 }
 public TrainingController(
     ITrainingHistoryRepository trainingHistoryRepository,
     IInferenceHistoryRepository inferenceHistoryRepository,
     ITensorBoardContainerRepository tensorBoardContainerRepository,
     IDataSetRepository dataSetRepository,
     ITrainingLogic trainingLogic,
     IStorageLogic storageLogic,
     IGitLogic gitLogic,
     IClusterManagementLogic clusterManagementLogic,
     IUnitOfWork unitOfWork,
     IHttpContextAccessor accessor) : base(accessor)
 {
     this.clusterManagementLogic         = clusterManagementLogic;
     this.trainingHistoryRepository      = trainingHistoryRepository;
     this.inferenceHistoryRepository     = inferenceHistoryRepository;
     this.tensorBoardContainerRepository = tensorBoardContainerRepository;
     this.dataSetRepository = dataSetRepository;
     this.trainingLogic     = trainingLogic;
     this.storageLogic      = storageLogic;
     this.gitLogic          = gitLogic;
     this.unitOfWork        = unitOfWork;
 }
 public TenantController(
     ITenantRepository tenantRepository,
     IUserRepository userRepository,
     IRoleRepository roleRepository,
     IRegistryRepository registryRepository,
     IGitRepository gitRepository,
     ICommonDiLogic commonDiLogic,
     IStorageLogic storageLogic,
     IClusterManagementLogic clusterManagementLogic,
     IUnitOfWork unitOfWork,
     IHttpContextAccessor accessor) : base(accessor)
 {
     this.tenantRepository       = tenantRepository;
     this.userRepository         = userRepository;
     this.roleRepository         = roleRepository;
     this.registryRepository     = registryRepository;
     this.gitRepository          = gitRepository;
     this.commonDiLogic          = commonDiLogic;
     this.storageLogic           = storageLogic;
     this.clusterManagementLogic = clusterManagementLogic;
     this.unitOfWork             = unitOfWork;
 }
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public PreprocessingController(
     IPreprocessRepository preprocessRepository,
     IPreprocessHistoryRepository preprocessHistoryRepository,
     ITenantRepository tenantRepository,
     IDataRepository dataRepository,
     IPreprocessLogic preprocessLogic,
     ITagLogic tagLogic,
     IGitLogic gitLogic,
     IStorageLogic storageLogic,
     IClusterManagementLogic clusterManagementLogic,
     IUnitOfWork unitOfWork,
     IHttpContextAccessor accessor) : base(accessor)
 {
     this.preprocessRepository        = preprocessRepository;
     this.preprocessHistoryRepository = preprocessHistoryRepository;
     this.tenantRepository            = tenantRepository;
     this.dataRepository         = dataRepository;
     this.preprocessLogic        = preprocessLogic;
     this.tagLogic               = tagLogic;
     this.gitLogic               = gitLogic;
     this.storageLogic           = storageLogic;
     this.clusterManagementLogic = clusterManagementLogic;
     this.unitOfWork             = unitOfWork;
 }