예제 #1
0
 public EmailManager(
     IPersonRepository personRepo,
     IPersonEmailRepository personEmailRepository,
     IEmailAccountRepository emailAccountRepository,
     IEmailRepository emailRepository,
     IEmailSettingsRepository emailSettingsRepository,
     IOrganizationManager organizationManager,
     IHttpContextAccessor httpContextAccessor,
     IEmailAttachmentRepository emailAttachmentRepository,
     IFileManager fileManager,
     IStorageDriveRepository storageDriveRepository,
     IStorageFileRepository storageFileRepository)
 {
     _personRepo                = personRepo;
     _personEmailRepository     = personEmailRepository;
     _emailAccountRepository    = emailAccountRepository;
     _emailRepository           = emailRepository;
     _emailSettingsRepository   = emailSettingsRepository;
     _organizationManager       = organizationManager;
     _httpContextAccessor       = httpContextAccessor;
     _emailAttachmentRepository = emailAttachmentRepository;
     _fileManager               = fileManager;
     _storageDriveRepository    = storageDriveRepository;
     _storageFileRepository     = storageFileRepository;
 }
예제 #2
0
 /// <summary>
 /// FilesController constructor
 /// </summary>
 /// <param name="manager"></param>
 /// <param name="configuration"></param>
 /// <param name="httpContextAccessor"></param>
 /// <param name="membershipManager"></param>
 /// <param name="userManager"></param>
 /// <param name="storageFileRepository"></param>
 public FilesController(
     IFileManager manager,
     IStorageFileRepository storageFileRepository,
     ApplicationIdentityUserManager userManager,
     IHttpContextAccessor httpContextAccessor,
     IMembershipManager membershipManager,
     IConfiguration configuration) : base(storageFileRepository, userManager, httpContextAccessor, membershipManager, configuration)
 {
     _manager = manager;
 }
예제 #3
0
 public AssetManager(IAssetRepository assetRepository,
                     IFileManager fileManager,
                     IPersonRepository personRepository,
                     IAgentRepository agentRepository,
                     IStorageFileRepository storageFileRepository,
                     IStorageDriveRepository storageDriveRepository)
 {
     _repo                   = assetRepository;
     _fileManager            = fileManager;
     _personRepository       = personRepository;
     _agentRepository        = agentRepository;
     _storageFileRepository  = storageFileRepository;
     _storageDriveRepository = storageDriveRepository;
 }
 public AutomationManager(
     IAutomationRepository repo,
     IFileManager fileManager,
     IAutomationVersionRepository automationVersionRepository,
     IAutomationParameterRepository automationParameterRepository,
     IHttpContextAccessor httpContextAccessor,
     IStorageDriveRepository storageDriveRepository,
     IStorageFileRepository storageFileRepository
     )
 {
     _repo        = repo;
     _fileManager = fileManager;
     _automationVersionRepository   = automationVersionRepository;
     _automationParameterRepository = automationParameterRepository;
     _httpContextAccessor           = httpContextAccessor;
     _caller = (httpContextAccessor.HttpContext != null) ? httpContextAccessor.HttpContext.User : new ClaimsPrincipal();
     _storageDriveRepository = storageDriveRepository;
     _storageFileRepository  = storageFileRepository;
 }
예제 #5
0
 public FileManager(
     ILocalFileStorageAdapter localFileStorageAdapter,
     IStorageDriveRepository storageDriveRepository,
     IOrganizationManager organizationManager,
     IHttpContextAccessor httpContextAccessor,
     IWebhookPublisher webhookPublisher,
     IDirectoryManager directoryManager,
     IStorageFileRepository storageFileRepository,
     IStorageFolderRepository storageFolderRepository
     )
 {
     _localFileStorageAdapter = localFileStorageAdapter;
     _storageDriveRepository  = storageDriveRepository;
     _organizationManager     = organizationManager;
     _httpContextAccessor     = httpContextAccessor;
     _webhookPublisher        = webhookPublisher;
     _directoryManager        = directoryManager;
     _storageFileRepository   = storageFileRepository;
     _storageFolderRepository = storageFolderRepository;
 }
 public QueueItemManager(
     IQueueItemRepository repo,
     IQueueRepository queueRepository,
     IQueueItemAttachmentRepository queueItemAttachmentRepository,
     IHttpContextAccessor httpContextAccessor,
     IFileManager fileManager,
     IScheduleRepository schedulerepository,
     IHubManager hubManager,
     IConfiguration configuration,
     IStorageDriveRepository storageDriveRepository,
     IStorageFileRepository storageFileRepository)
 {
     _repo            = repo;
     _queueRepository = queueRepository;
     _queueItemAttachmentRepository = queueItemAttachmentRepository;
     _httpContextAccessor           = httpContextAccessor;
     _fileManager            = fileManager;
     _scheduleRepo           = schedulerepository;
     _hubManager             = hubManager;
     Configuration           = configuration;
     _storageDriveRepository = storageDriveRepository;
     _storageFileRepository  = storageFileRepository;
 }
 public StorageFolderRepository(StorageContext context, ILogger <StorageFolder> logger, IHttpContextAccessor httpContextAccessor, IStorageFileRepository storageFileRepository) : base(context, logger, httpContextAccessor)
 {
     this._storageFileRepository = storageFileRepository;
 }