public ChocolateyLibDirHelper(IChocolateyService chocolateyService, IFileStorageService fileStorageService, ISettingsService settingsService)
 {
     _chocolateyService = chocolateyService;
     _fileStorageService = fileStorageService;
     _settingsService = settingsService;
     _chocolateyService.OutputChanged += VersionChangeFinished;
 }
        public DeleteFileHandler(ILoggerFactory logFactory, IFileStorageService storageService)
        {
            log = logFactory?.CreateLogger(GetType().Name);

            StorageService = storageService;
            log?.LogDebug(".ctor");
        }
        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();
        }
Esempio n. 4
0
 public PackageFileService(
     IConfiguration configuration,
     IFileStorageService fileStorageSvc)
 {
     this.configuration = configuration;
     this.fileStorageSvc = fileStorageSvc;
 }
Esempio n. 5
0
 public StatusService(
     IEntitiesContext entities,
     IFileStorageService fileStorageService)
 {
     _entities = entities;
     _fileStorageService = fileStorageService;
 }
 public NuGetExeDownloaderService(
     IPackageService packageSvc,
     IPackageFileService packageFileSvc,
     IFileStorageService fileStorageSvc)
 {
     this.packageSvc = packageSvc;
     this.packageFileSvc = packageFileSvc;
     this.fileStorageSvc = fileStorageSvc;
 }
 public NuGetExeDownloaderService(
     IPackageService packageService,
     IPackageFileService packageFileService,
     IFileStorageService fileStorageService)
 {
     _packageService = packageService;
     _packageFileService = packageFileService;
     _fileStorageService = fileStorageService;
 }
Esempio n. 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());
     }
 }
Esempio n. 9
0
 public StatusService(
     IEntitiesContext entities,
     IFileStorageService fileStorageService,
     IAppConfiguration config)
 {
     _entities = entities;
     _fileStorageService = fileStorageService;
     _config = config;
 }
Esempio n. 10
0
 public ProfileController(IUserService userService,
                          IOnlineUserService onlineUserService,
                          IFileStorageService fileStorageService,
                          IHubContext <IProfileHubClient> hubContext)
 {
     _userService        = userService;
     _onlineUserService  = onlineUserService;
     _fileStorageService = fileStorageService;
     _hubContext         = hubContext;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 16
0
 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;
 }
Esempio n. 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;
 }
 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));
 }
 public SplitFileService(
     IFileStorageService fileStorageService,
     ILogger <ISplitFileService> logger,
     IImportStatusService importStatusService
     )
 {
     _fileStorageService  = fileStorageService;
     _logger              = logger;
     _importStatusService = importStatusService;
 }
Esempio n. 20
0
 public MoviesRepository(ApplicationDbContext context,
                         IAuthenticationStateService authenticationStateService,
                         IFileStorageService fileStorageService,
                         IMapper mapper)
 {
     this.context = context;
     this.authenticationStateService = authenticationStateService;
     this.fileStorageService         = fileStorageService;
     this.mapper = mapper;
 }
Esempio n. 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;
 }
Esempio n. 22
0
 public ServicesManager(IPushNotificationService pushNotification,
     IEmailService emailService, ITicketService ticketService, IPropertyDataImporter propertyDataImporter,
     IFileStorageService fileStorageService)
 {
     _pushNotification = pushNotification;
     _emailService = emailService;
     _ticketService = ticketService;
     _propertyDataImporter = propertyDataImporter;
     _fileStorageService = fileStorageService;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 25
0
 public PeopleService(AppDbContext dbContext,
                      IMapper mapper,
                      IFileStorageService fileStorageService,
                      ILoggerService logger)
     : base(dbContext)
 {
     _dbContext          = dbContext;
     _mapper             = mapper;
     _fileStorageService = fileStorageService;
     _logger             = logger;
 }
 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;
 }
Esempio n. 27
0
 public PersonService(
     AppDBContext context
     , IMapper mapper
     , IFileStorageService fileStorageService
     , IHttpContextAccessor httpContext)
 {
     _context            = context;
     _mapper             = mapper;
     _fileStorageService = fileStorageService;
     _httpContext        = httpContext;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
 public ValidatorService(
     ILogger <IValidatorService> logger,
     IFileStorageService fileStorageService,
     IFileTypeService fileTypeService,
     IImportStatusService importStatusService)
 {
     _logger              = logger;
     _fileStorageService  = fileStorageService;
     _fileTypeService     = fileTypeService;
     _importStatusService = importStatusService;
 }
Esempio n. 31
0
 /// <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;
 }
Esempio n. 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;
 }
 public AdvertisementService(
     ApplicationContext dbContext,
     IFileStorageService fileStorageService,
     IStringLocalizer localizer,
     IOptions<AdvertisementEnvironmentDecisionOptions> options
 )
 {
     _dbContext = dbContext;
     _fileStorageService = fileStorageService;
     _localizer = localizer;
     _advertisementEnvironmentDecisionOptions = options.Value;
 }
Esempio n. 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;
 }
 public ProductController(IProductRepository repository,
                          ICategoryRepository categoryRepository,
                          IFileStorageService azureStorage,
                          IMapper mapper,
                          BlazorShopContext context)
 {
     _context            = context;
     _azureStorage       = azureStorage;
     _mapper             = mapper;
     _repository         = repository;
     _categoryRepository = categoryRepository;
 }
Esempio n. 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;
 }
Esempio n. 37
0
 public ImportCommission(
     ICommissionImportService commissionImportService,
     ICommissionStatementService commissionStatementService,
     ICommissionStatementTemplateService commissionStatementTemplateService,
     IFileStorageService fileStorageService,
     IDirectoryLookupService directoryLookupService)
 {
     CommissionImportService            = commissionImportService;
     CommissionStatementService         = commissionStatementService;
     CommissionStatementTemplateService = commissionStatementTemplateService;
     FileStorageService     = fileStorageService;
     DirectoryLookupService = directoryLookupService;
 }
Esempio n. 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);
        }
 public AdventuresController
 (
     ApplicationDBContext context,
     IFileStorageService fileStorageService,
     IMapper mapper,
     IAuthorizationService authorizationService
 )
 {
     this.context               = context;
     this.fileStorageService    = fileStorageService;
     this.mapper                = mapper;
     this._authorizationService = authorizationService;
 }
Esempio n. 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;
 }
		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);
		}
Esempio n. 43
0
        /// <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());

        }
Esempio n. 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");
        }
        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();
        }
Esempio n. 46
0
 public WorldRepository(IFileStorageService storageService, ITimeOfDayStateRepository timeOfDayRepository)
 {
     this.storageService = storageService;
     this.timeOfDayStateRepository = timeOfDayRepository;
 }
 public UploadFileService(IFileStorageService fileStorageService)
 {
     _fileStorageService = fileStorageService;
 }
 public PackageFileService(
     IFileStorageService fileStorageSvc)
 {
     this.fileStorageSvc = fileStorageSvc;
 }
Esempio n. 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>());
 }
 public ResourcesController(IFileStorageService fileStorageService)
 {
     this.fileStorageService = fileStorageService;
 }
 public ImageDetailsController(IFileStorageService fileStorageService)
 {
     FileStorageService = fileStorageService;
 }
 public PackageFileService(IFileStorageService fileStorageService)
 {
     _fileStorageService = fileStorageService;
 }
 public ImageUploaderService(IFileStorageService fileStorageService, IImageRepository imageRepository)
 {
     this.fileStorageService = fileStorageService;
     this.imageRepository = imageRepository;
 }
 /// <summary>
 ///     ctor
 /// </summary>
 public SettingsService()
 {
     _fileStorageService = new FileStorageService<Settings>();
 }
 public SourceService(IFileStorageService fileStorageService)
 {
     _fileStorageService = fileStorageService;
     Initialize();
 }
Esempio n. 56
0
		public VisioClient(IFileStorageService fileStorage)
		{
			client = new HttpClient();
			this.fileStorage = fileStorage;
		}
 public SecurityRoleRepository(IFileStorageService storageService)
 {
     this.fileService = storageService;
 }
 public TimeOfDayStateRepository(IFileStorageService fileStorageService)
 {
     this.storageService = fileStorageService;
 }
 public NuGetExeDownloaderService(
     IFileStorageService fileStorageService)
 {
     _fileStorageService = fileStorageService;
 }
 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);
 }