コード例 #1
0
 public ChocolateyLibDirHelper(IChocolateyService chocolateyService, IFileStorageService fileStorageService, ISettingsService settingsService)
 {
     _chocolateyService = chocolateyService;
     _fileStorageService = fileStorageService;
     _settingsService = settingsService;
     _chocolateyService.OutputChanged += VersionChangeFinished;
 }
コード例 #2
0
        public DeleteFileHandler(ILoggerFactory logFactory, IFileStorageService storageService)
        {
            log = logFactory?.CreateLogger(GetType().Name);

            StorageService = storageService;
            log?.LogDebug(".ctor");
        }
コード例 #3
0
        public PackageManager(IAvailablePackagesService availablePackagesService, IPackageVersionService packageVersionService, IPackageService packageService, IFileStorageService fileStorageService, ICommandExecuter commandExecuter, ISettingsService settingsService, IInstalledPackagesService installedPackagesService)
        {
            _packageVersionService = packageVersionService;
            _packageService = packageService;
            _availablePackagesService = availablePackagesService;
            _fileStorageService = fileStorageService;
            _commandExecuter = commandExecuter;
            _settingsService = settingsService;
            _installedPackagesService = installedPackagesService;
            _packageVersionService.VersionChanged += VersionChangedHandler;
            _packageVersionService.RunStarted += PackageVersionServiceStarted;
            _availablePackagesService.RunFinshed += PackagesServiceRunFinished;
            _installedPackagesService.RunFinshed += PackagesServiceRunFinished;
            _packageService.RunFinshed += PackageServiceRunFinished;
            _packageService.RunStarted += PackageServiceRunStarted;
            _availablePackagesService.RunFailed += PackagesServiceRunFailed;
            _installedPackagesService.RunFailed += PackagesServiceRunFailed;
            _availablePackagesService.RunStarted += PackagesServiceRunStarted;
            _installedPackagesService.RunStarted += PackagesServiceRunStarted;

            InitializeComponent();

            tabAvailable.ImageIndex = 0;
            tabInstalled.ImageIndex = 1;
            _installedPackagesService.ListOfDistinctHighestInstalledPackages();
        }
コード例 #4
0
 public PackageFileService(
     IConfiguration configuration,
     IFileStorageService fileStorageSvc)
 {
     this.configuration = configuration;
     this.fileStorageSvc = fileStorageSvc;
 }
コード例 #5
0
 public StatusService(
     IEntitiesContext entities,
     IFileStorageService fileStorageService)
 {
     _entities = entities;
     _fileStorageService = fileStorageService;
 }
コード例 #6
0
 public NuGetExeDownloaderService(
     IPackageService packageSvc,
     IPackageFileService packageFileSvc,
     IFileStorageService fileStorageSvc)
 {
     this.packageSvc = packageSvc;
     this.packageFileSvc = packageFileSvc;
     this.fileStorageSvc = fileStorageSvc;
 }
コード例 #7
0
 public NuGetExeDownloaderService(
     IPackageService packageService,
     IPackageFileService packageFileService,
     IFileStorageService fileStorageService)
 {
     _packageService = packageService;
     _packageFileService = packageFileService;
     _fileStorageService = fileStorageService;
 }
コード例 #8
0
 /// <summary>
 /// </summary>
 /// <param name="context"></param>
 /// <param name="fileStorageService"></param>
 public DocumentsApi(ApiContext context, IFileStorageService fileStorageService)
 {
     _context = context;
     _fileStorageService = fileStorageService;
     if (!FilesIntegration.IsRegisteredFileSecurityProvider("crm", "crm_common"))
     {
         FilesIntegration.RegisterFileSecurityProvider("crm", "crm_common", new FileSecurityProvider());
     }
 }
コード例 #9
0
ファイル: StatusService.cs プロジェクト: ashuthinks/webnuget
 public StatusService(
     IEntitiesContext entities,
     IFileStorageService fileStorageService,
     IAppConfiguration config)
 {
     _entities = entities;
     _fileStorageService = fileStorageService;
     _config = config;
 }
コード例 #10
0
 public ProfileController(IUserService userService,
                          IOnlineUserService onlineUserService,
                          IFileStorageService fileStorageService,
                          IHubContext <IProfileHubClient> hubContext)
 {
     _userService        = userService;
     _onlineUserService  = onlineUserService;
     _fileStorageService = fileStorageService;
     _hubContext         = hubContext;
 }
コード例 #11
0
 public PeopleController(ApplicationDbContext context,
                         ILogger <GenresController> logger,
                         IFileStorageService fileStorageService,
                         IMapper mapper)
 {
     this.context            = context;
     this.logger             = logger;
     this.fileStorageService = fileStorageService;
     this.mapper             = mapper;
 }
コード例 #12
0
 public UpdateDraftApplicationUseCase(IDraftApplicationRepository draftApplicationRepository,
                                      IFileStorageService fileStorageService,
                                      IOutputPort outputPort,
                                      IValidator <UpdateDraftApplicationInput> validator)
 {
     this._draftApplicationRepository = draftApplicationRepository;
     this._outputPort        = outputPort;
     this._updateAttachments = new UpdateAttachments(fileStorageService);
     this._validator         = validator;
 }
コード例 #13
0
 public PeopleController(IRepository repository,
                         ILogger <GenresController> logger,
                         IMapper mapper,
                         IFileStorageService fileStorageService)
 {
     this.repository         = repository;
     this.logger             = logger;
     this.mapper             = mapper;
     this.fileStorageService = fileStorageService;
 }
コード例 #14
0
 public MoviesController(ApplicationDbContext context,
                         IMapper mapper,
                         IFileStorageService fileStorageService,
                         ILogger <MoviesController> logger)
 {
     _context            = context;
     _mapper             = mapper;
     _fileStorageService = fileStorageService;
     _logger             = logger;
 }
 public NotifyChangeFunction(IFileStorageService fileStorageService,
                             IQueueService queueService,
                             IReleasePublishingStatusService releasePublishingStatusService,
                             IValidationService validationService)
 {
     _fileStorageService             = fileStorageService;
     _queueService                   = queueService;
     _releasePublishingStatusService = releasePublishingStatusService;
     _validationService              = validationService;
 }
コード例 #16
0
ファイル: LabController.cs プロジェクト: benningd54/Anlab
 public LabController(ApplicationDbContext dbContext, IOrderService orderService, ILabworksService labworksService, IOrderMessageService orderMessageService, IFileStorageService fileStorageService, ISlothService slothService, IFinancialService financialService)
 {
     _dbContext           = dbContext;
     _orderService        = orderService;
     _labworksService     = labworksService;
     _orderMessageService = orderMessageService;
     _fileStorageService  = fileStorageService;
     _slothService        = slothService;
     _financialService    = financialService;
 }
コード例 #17
0
 public MusicianController(IMusicInstrumentService instrumentService, IOrderService orderService, IMapper mapper, IApplicationUserService applicationUserService, IFileStorageService fileStorageService, IMusicianService musicianService)
 {
     s_logger = LogManager.GetCurrentClassLogger();
     _musicInstrumentService = instrumentService;
     _orderService           = orderService;
     _mapper = mapper;
     _applicationUserService = applicationUserService;
     _fileStorageService     = fileStorageService;
     _musicianService        = musicianService;
 }
コード例 #18
0
 public WorkoutDataFileRepository(
     ApplicationDbContext context,
     IConfiguration configuration,
     IFileStorageService fileStorageService
     )
 {
     _configuration      = configuration ?? throw new ArgumentNullException(nameof(configuration));
     _context            = context ?? throw new ArgumentNullException(nameof(configuration));
     _fileStorageService = fileStorageService ?? throw new ArgumentNullException(nameof(fileStorageService));
 }
コード例 #19
0
 public SplitFileService(
     IFileStorageService fileStorageService,
     ILogger <ISplitFileService> logger,
     IImportStatusService importStatusService
     )
 {
     _fileStorageService  = fileStorageService;
     _logger              = logger;
     _importStatusService = importStatusService;
 }
コード例 #20
0
 public MoviesRepository(ApplicationDbContext context,
                         IAuthenticationStateService authenticationStateService,
                         IFileStorageService fileStorageService,
                         IMapper mapper)
 {
     this.context = context;
     this.authenticationStateService = authenticationStateService;
     this.fileStorageService         = fileStorageService;
     this.mapper = mapper;
 }
コード例 #21
0
 public MoviesController(ApplicationDbContext context,
                         IMapper mapper,
                         IFileStorageService fileStorageService,
                         ILogger <MoviesController> logger) : base(context, mapper)
 {
     this.context            = context;
     this.mapper             = mapper;
     this.fileStorageService = fileStorageService;
     this.logger             = logger;
 }
コード例 #22
0
 public ServicesManager(IPushNotificationService pushNotification,
     IEmailService emailService, ITicketService ticketService, IPropertyDataImporter propertyDataImporter,
     IFileStorageService fileStorageService)
 {
     _pushNotification = pushNotification;
     _emailService = emailService;
     _ticketService = ticketService;
     _propertyDataImporter = propertyDataImporter;
     _fileStorageService = fileStorageService;
 }
コード例 #23
0
 public MoviesController(ApplicationDbContext context,
                         IMoviesRepository moviesRepository,
                         IFileStorageService fileStorageService, IMapper mapper, UserManager <IdentityUser> userManager)
 {
     _context            = context;
     _moviesRepository   = moviesRepository;
     _fileStorageService = fileStorageService;
     _mapper             = mapper;
     _userManager        = userManager;
 }
コード例 #24
0
 public MoviesController(ApplicationDbContext context,
                         IFileStorageService fileStorageService,
                         IMapper mapper,
                         UserManager <IdentityUser> userManager)
 {
     this.context            = context;
     this.fileStorageService = fileStorageService;
     this.mapper             = mapper;
     this.userManager        = userManager;
 }
コード例 #25
0
ファイル: PeopleService.cs プロジェクト: DeV1n-s/dadachMovie
 public PeopleService(AppDbContext dbContext,
                      IMapper mapper,
                      IFileStorageService fileStorageService,
                      ILoggerService logger)
     : base(dbContext)
 {
     _dbContext          = dbContext;
     _mapper             = mapper;
     _fileStorageService = fileStorageService;
     _logger             = logger;
 }
コード例 #26
0
 public ImageStorageService(IFileStorageService storageService, Instructions defaultInstructions, Instructions mandatoryInstructions, Instructions defaultThumbnailInstructions,
     Instructions mandatoryThumbnailInstructions,
     string paramsPrefix = "thmb-")
 {
     this.storageService = storageService;
     this.defaultInstructions = defaultInstructions;
     this.mandatoryInstructions = mandatoryInstructions;
     this.defaultThumbnailInstructions = defaultThumbnailInstructions;
     this.mandatoryThumbnailInstructions = mandatoryThumbnailInstructions;
     this.paramsPrefix = paramsPrefix;
 }
コード例 #27
0
 public PersonService(
     AppDBContext context
     , IMapper mapper
     , IFileStorageService fileStorageService
     , IHttpContextAccessor httpContext)
 {
     _context            = context;
     _mapper             = mapper;
     _fileStorageService = fileStorageService;
     _httpContext        = httpContext;
 }
コード例 #28
0
 public PicturesController(IRepository <Category> categoryRepository, IWebHostEnvironment env, IHttpContextAccessor httpContextAccessor, IRepository <Product> productRepository, IRepository <Picture> pictureRepository, IFileStorageService fileService, IRepository <Country> countryRepository, IRepository <Store> storeRepository)
 {
     _categoryRepository      = categoryRepository;
     this.env                 = env;
     this.httpContextAccessor = httpContextAccessor;
     _productRepository       = productRepository;
     _pictureRepository       = pictureRepository;
     _fileService             = fileService;
     _countryRepository       = countryRepository;
     _storeRepository         = storeRepository;
 }
コード例 #29
0
 public ImageStorageService(IFileStorageService storageService, Instructions defaultInstructions, Instructions mandatoryInstructions, Instructions defaultThumbnailInstructions,
                            Instructions mandatoryThumbnailInstructions,
                            string paramsPrefix = "thmb-")
 {
     this.storageService                 = storageService;
     this.defaultInstructions            = defaultInstructions;
     this.mandatoryInstructions          = mandatoryInstructions;
     this.defaultThumbnailInstructions   = defaultThumbnailInstructions;
     this.mandatoryThumbnailInstructions = mandatoryThumbnailInstructions;
     this.paramsPrefix = paramsPrefix;
 }
コード例 #30
0
 public ValidatorService(
     ILogger <IValidatorService> logger,
     IFileStorageService fileStorageService,
     IFileTypeService fileTypeService,
     IImportStatusService importStatusService)
 {
     _logger              = logger;
     _fileStorageService  = fileStorageService;
     _fileTypeService     = fileTypeService;
     _importStatusService = importStatusService;
 }
コード例 #31
0
ファイル: EditExpense.cs プロジェクト: runceel/BlueMonkey
 /// <summary>
 /// Initialize Instance.
 /// </summary>
 /// <param name="expenseService"></param>
 /// <param name="fileStorageService"></param>
 /// <param name="dateTimeService"></param>
 /// <param name="mediaService"></param>
 public EditExpense(
     IExpenseService expenseService,
     IFileStorageService fileStorageService,
     IDateTimeService dateTimeService,
     IMediaService mediaService)
 {
     _expenseService     = expenseService;
     _fileStorageService = fileStorageService;
     _dateTimeService    = dateTimeService;
     _mediaService       = mediaService;
 }
コード例 #32
0
 public TodoItemsController(UserManager <ApplicationUser> userManager,
                            ITodoItemService todoService,
                            IFileStorageService fileStorageService,
                            IMapper mapper,
                            ILogger <TodoItemsController> logger)
 {
     _userManager        = userManager;
     _todoService        = todoService;
     _fileStorageService = fileStorageService;
     _mapper             = mapper;
     _logger             = logger;
 }
コード例 #33
0
 public AdvertisementService(
     ApplicationContext dbContext,
     IFileStorageService fileStorageService,
     IStringLocalizer localizer,
     IOptions<AdvertisementEnvironmentDecisionOptions> options
 )
 {
     _dbContext = dbContext;
     _fileStorageService = fileStorageService;
     _localizer = localizer;
     _advertisementEnvironmentDecisionOptions = options.Value;
 }
コード例 #34
0
 public TestimonialController(ApplicationContext context,
                              ILogger <TestimonialController> logger,
                              IFileStorageService fileStorageService,
                              IConfiguration configuration,
                              IWebHostEnvironment env)
 {
     _fileStorageService = fileStorageService;
     _env           = env;
     _logger        = logger;
     _configuration = configuration;
     _context       = context;
 }
コード例 #35
0
 public ProductController(IProductRepository repository,
                          ICategoryRepository categoryRepository,
                          IFileStorageService azureStorage,
                          IMapper mapper,
                          BlazorShopContext context)
 {
     _context            = context;
     _azureStorage       = azureStorage;
     _mapper             = mapper;
     _repository         = repository;
     _categoryRepository = categoryRepository;
 }
コード例 #36
0
 public CreateDraftApplicationUseCase(ICurrentUserContext userContext,
                                      IFileStorageService fileStorageService,
                                      IDraftApplicationRepository draftApplicationRepository,
                                      IOutputPort outputPort,
                                      IValidator <CreateDraftApplicationInput> validator)
 {
     this._draftApplicationRepository = draftApplicationRepository;
     this._fileStorageService         = fileStorageService;
     this._outputPort              = outputPort;
     this._attachmentsFactory      = new AttachmentsFactory();
     this._draftApplicationFactory = new DraftApplicationFactory(userContext);
     this._validator = validator;
 }
コード例 #37
0
 public ImportCommission(
     ICommissionImportService commissionImportService,
     ICommissionStatementService commissionStatementService,
     ICommissionStatementTemplateService commissionStatementTemplateService,
     IFileStorageService fileStorageService,
     IDirectoryLookupService directoryLookupService)
 {
     CommissionImportService            = commissionImportService;
     CommissionStatementService         = commissionStatementService;
     CommissionStatementTemplateService = commissionStatementTemplateService;
     FileStorageService     = fileStorageService;
     DirectoryLookupService = directoryLookupService;
 }
コード例 #38
0
        public AccountancyExportDataProvider(CrmContext context, IMapper mapper,
                                             IOptions <AccountancyConfiguration> accountancyConfiguration,
                                             IFileStorageService fileStorageService,
                                             ILogger <AccountancyExportDataProvider> logger)
        {
            _context            = context;
            _mapper             = mapper;
            _accountancyConfig  = accountancyConfiguration.Value;
            _fileStorageService = fileStorageService;
            _logger             = logger;

            _accountancyConfig.WinbooksExportLocation = _fileStorageService.EnsureDirectory(_accountancyConfig.WinbooksExportLocation);
        }
コード例 #39
0
 public AdventuresController
 (
     ApplicationDBContext context,
     IFileStorageService fileStorageService,
     IMapper mapper,
     IAuthorizationService authorizationService
 )
 {
     this.context               = context;
     this.fileStorageService    = fileStorageService;
     this.mapper                = mapper;
     this._authorizationService = authorizationService;
 }
コード例 #40
0
 public NuspecStore(
     IFileStorageService fileStorageService,
     ServiceIndexCache serviceIndexCache,
     FlatContainerClient flatContainerClient,
     HttpSource httpSource,
     ILogger <NuspecStore> logger)
 {
     _fileStorageService  = fileStorageService;
     _serviceIndexCache   = serviceIndexCache;
     _flatContainerClient = flatContainerClient;
     _httpSource          = httpSource;
     _logger = logger;
 }
 public RoatpClarificationController(ILogger <RoatpClarificationController> logger, IMediator mediator,
                                     IAssessorSequenceService assessorSequenceService, IAssessorPageService assessorPageService,
                                     IAssessorSectorService assessorSectorService, IAssessorSectorDetailsService assessorSectorDetailsService,
                                     IFileStorageService fileStorageService)
 {
     _logger               = logger;
     _mediator             = mediator;
     _sequenceService      = assessorSequenceService;
     _pageService          = assessorPageService;
     _sectorService        = assessorSectorService;
     _sectorDetailsService = assessorSectorDetailsService;
     _fileStorageService   = fileStorageService;
 }
コード例 #42
0
		public MainPageViewModel(IFileStorageService fileStorageService, IGoogleAnalytics analytics)
		{
			this.fileStorageService = fileStorageService;
			this.analytics = analytics;

			Items = new ObservableCollection<ItemViewModel>();

			if (!IsDataLoaded)
			{
				LoadData();
				IsDataLoaded = true;
			}
			visioClient = new VisioClient(this.fileStorageService);
		}
コード例 #43
0
ファイル: DocumentsApi.cs プロジェクト: ridhouan/teamlab.v6.5
        /// <summary>
        /// </summary>
        /// <param name="context"></param>
        /// <param name="fileStorageService"></param>
        public DocumentsApi(ApiContext context, IFileStorageService fileStorageService)
        {
            _context = context;
            _fileStorageService = fileStorageService;
            //TODO: Why not to move this code to DAO???
            if (!DbRegistry.IsDatabaseRegistered(FileConstant.DatabaseId))
            {
                DbRegistry.RegisterDatabase(FileConstant.DatabaseId,
                                            WebConfigurationManager.ConnectionStrings[FileConstant.DatabaseId]);
            }

            if (!FilesIntegration.IsRegisteredFileSecurityProvider("crm", "crm_common"))
                FilesIntegration.RegisterFileSecurityProvider("crm", "crm_common", new FileSecurityProvider());

        }
コード例 #44
0
        public ContentService(IFileStorageService fileStorage, IDiagnosticsService diagnosticsService)
        {
            if (fileStorage == null)
            {
                throw new ArgumentNullException("fileStorage");
            }

            if (diagnosticsService == null)
            {
                throw new ArgumentNullException("diagnosticsService");
            }

            FileStorage = fileStorage;
            Trace = diagnosticsService.GetSource("ContentService");
        }
コード例 #45
0
        public PackageManager(IPackagesService packagesService, IPackageVersionService packageVersionService, IPackageService packageService, IFileStorageService fileStorageService)
        {
            InitializeComponent();

            _packageService = packageService;
            _packagesService = packagesService;
            _packageVersionService = packageVersionService;
            _fileStorageService = fileStorageService;
            _packageVersionService.VersionChanged += VersionChangedHandler;
            _packagesService.RunFinshed += PackagesServiceRunFinished;
            _packageService.LineChanged += PackageServiceLineChanged;
            _packageService.RunFinshed += PackageServiceRunFinished;
            ClearStatus();
            PackageGrid.Focus();
            UpdateInstallUninstallButtonLabel();
            QueryInstalledPackages();
        }
コード例 #46
0
 public WorldRepository(IFileStorageService storageService, ITimeOfDayStateRepository timeOfDayRepository)
 {
     this.storageService = storageService;
     this.timeOfDayStateRepository = timeOfDayRepository;
 }
コード例 #47
0
 public UploadFileService(IFileStorageService fileStorageService)
 {
     _fileStorageService = fileStorageService;
 }
コード例 #48
0
 public PackageFileService(
     IFileStorageService fileStorageSvc)
 {
     this.fileStorageSvc = fileStorageSvc;
 }
コード例 #49
0
 private void InjectSetupForPackageManager(IFileStorageService fileStorageService)
 {
     ObjectFactory.Inject<IFileStorageService>(fileStorageService);
     ObjectFactory.Inject<IPackagesService>(MockRepository.GenerateMock<IPackagesService>());
     ObjectFactory.Inject<IPackageVersionService>(MockRepository.GenerateMock<IPackageVersionService>());
     ObjectFactory.Inject<IPackageService>(MockRepository.GenerateMock<IPackageService>());
 }
コード例 #50
0
 public ResourcesController(IFileStorageService fileStorageService)
 {
     this.fileStorageService = fileStorageService;
 }
コード例 #51
0
 public ImageDetailsController(IFileStorageService fileStorageService)
 {
     FileStorageService = fileStorageService;
 }
コード例 #52
0
 public PackageFileService(IFileStorageService fileStorageService)
 {
     _fileStorageService = fileStorageService;
 }
コード例 #53
0
 public ImageUploaderService(IFileStorageService fileStorageService, IImageRepository imageRepository)
 {
     this.fileStorageService = fileStorageService;
     this.imageRepository = imageRepository;
 }
コード例 #54
0
 /// <summary>
 ///     ctor
 /// </summary>
 public SettingsService()
 {
     _fileStorageService = new FileStorageService<Settings>();
 }
コード例 #55
0
 public SourceService(IFileStorageService fileStorageService)
 {
     _fileStorageService = fileStorageService;
     Initialize();
 }
コード例 #56
0
		public VisioClient(IFileStorageService fileStorage)
		{
			client = new HttpClient();
			this.fileStorage = fileStorage;
		}
コード例 #57
0
 public SecurityRoleRepository(IFileStorageService storageService)
 {
     this.fileService = storageService;
 }
コード例 #58
0
 public TimeOfDayStateRepository(IFileStorageService fileStorageService)
 {
     this.storageService = fileStorageService;
 }
コード例 #59
0
 public NuGetExeDownloaderService(
     IFileStorageService fileStorageService)
 {
     _fileStorageService = fileStorageService;
 }
コード例 #60
0
 public void Setup()
 {
     _chocolateyService = MockRepository.GenerateMock<IChocolateyService>();
     _fileStorageService = MockRepository.GenerateMock<IFileStorageService>();
     _settingsService = MockRepository.GenerateMock<ISettingsService>();
     _settingsService.Stub(ssS => ssS.ChocolateyLibDirectory).Return("");
     _helper = new ChocolateyLibDirHelper(_chocolateyService, _fileStorageService, _settingsService);
 }