コード例 #1
0
        public RebuildController(IAdaptationServiceClient <AdaptationOutcomeProcessor> adaptationServiceClient, IStoreConfiguration storeConfiguration,
                                 IProcessingConfiguration processingConfiguration, ILogger <RebuildController> logger, IFileUtility fileUtility, ITracer tracer,
                                 IZipUtility zipUtility) : base(logger)
        {
            _adaptationServiceClient = adaptationServiceClient ?? throw new ArgumentNullException(nameof(adaptationServiceClient));
            _fileUtility             = fileUtility ?? throw new ArgumentNullException(nameof(fileUtility));
            _zipUtility = zipUtility ?? throw new ArgumentNullException(nameof(zipUtility));
            if (storeConfiguration == null)
            {
                throw new ArgumentNullException(nameof(storeConfiguration));
            }

            if (processingConfiguration == null)
            {
                throw new ArgumentNullException(nameof(processingConfiguration));
            }

            _processingTimeoutDuration         = processingConfiguration.ProcessingTimeoutDuration;
            _processingCancellationTokenSource = new CancellationTokenSource(_processingTimeoutDuration);

            _originalStorePath = storeConfiguration.OriginalStorePath;
            _rebuiltStorePath  = storeConfiguration.RebuiltStorePath;

            _tracer = tracer;
        }
コード例 #2
0
 public CloudProxyController(ILogger <TController> logger, IAdaptationServiceClient <AdaptationOutcomeProcessor> adaptationServiceClient, IFileUtility fileUtility,
                             ICloudSdkConfiguration cloudSdkConfiguration, IProcessingConfiguration processingConfiguration, IStoreConfiguration storeConfiguration, IZipUtility zipUtility,
                             IHttpService httpService)
 {
     _logger                  = logger ?? throw new ArgumentNullException(nameof(logger));
     _fileUtility             = fileUtility ?? throw new ArgumentNullException(nameof(fileUtility));
     _cloudSdkConfiguration   = cloudSdkConfiguration ?? throw new ArgumentNullException(nameof(cloudSdkConfiguration));
     _processingConfiguration = processingConfiguration ?? throw new ArgumentNullException(nameof(processingConfiguration));
     _storeConfiguration      = storeConfiguration ?? throw new ArgumentNullException(nameof(storeConfiguration));
     _adaptationServiceClient = adaptationServiceClient ?? throw new ArgumentNullException(nameof(adaptationServiceClient));
     _zipUtility              = zipUtility ?? throw new ArgumentNullException(nameof(zipUtility));
     _httpService             = httpService ?? throw new ArgumentNullException(nameof(httpService));
 }
コード例 #3
0
        public NativeProxyApplication(IAdaptationServiceClient <AdaptationOutcomeProcessor> adaptationServiceClient,
                                      IAppConfiguration appConfiguration, IStoreConfiguration storeConfiguration, IProcessingConfiguration processingConfiguration, ILogger <NativeProxyApplication> logger)
        {
            _adaptationServiceClient = adaptationServiceClient ?? throw new ArgumentNullException(nameof(adaptationServiceClient));
            _appConfiguration        = appConfiguration ?? throw new ArgumentNullException(nameof(appConfiguration));
            if (storeConfiguration == null)
            {
                throw new ArgumentNullException(nameof(storeConfiguration));
            }
            if (processingConfiguration == null)
            {
                throw new ArgumentNullException(nameof(processingConfiguration));
            }
            _logger = logger ?? throw new ArgumentNullException(nameof(logger));
            _processingTimeoutDuration         = processingConfiguration.ProcessingTimeoutDuration;
            _processingCancellationTokenSource = new CancellationTokenSource(_processingTimeoutDuration);

            OriginalStorePath = storeConfiguration.OriginalStorePath;
            RebuiltStorePath  = storeConfiguration.RebuiltStorePath;
        }
コード例 #4
0
 public RebuildController(IAdaptationServiceClient <AdaptationOutcomeProcessor> adaptationServiceClient, IStoreConfiguration storeConfiguration,
                          IProcessingConfiguration processingConfiguration, ILogger <RebuildController> logger, IFileUtility fileUtility,
                          IZipUtility zipUtility, ICloudSdkConfiguration cloudSdkConfiguration, IHttpService httpService) : base(logger, adaptationServiceClient, fileUtility, cloudSdkConfiguration,
                                                                                                                                 processingConfiguration, storeConfiguration, zipUtility, httpService)
 {
 }