/// <summary>
 /// Initializes a new instance of the <see cref="FileServiceProvider"/> class.
 /// </summary>
 /// <param name="fileDataRepository">IFileRepository instance</param>
 /// <param name="blobDataRepository">IBlobDataRepository instance</param>
 /// <param name="unitOfWork">IUnitOfWork instance</param>
 /// <param name="repositoryDetails">IRepositoryDetails instance</param>
 /// <param name="repositoryService">IRepositoryService instance</param>
 /// <param name="repositoryAdapterFactory">IRepositoryAdapterFactory instance</param>
 public FileServiceProvider(IFileRepository fileDataRepository, IBlobDataRepository blobDataRepository, IUnitOfWork unitOfWork, IRepositoryDetails repositoryDetails, IRepositoryService repositoryService, IRepositoryAdapterFactory repositoryAdapterFactory)
 {
     this.UnitOfWork = unitOfWork;
     this.FileDataRepository = fileDataRepository;
     this.BlobDataRepository = blobDataRepository;
     this.RepositoryDetails = repositoryDetails;
     this.RepositoryService = repositoryService;
     this.RepositoryAdapterFactory = repositoryAdapterFactory;
 }
Beispiel #2
0
 /// <summary>
 /// creates the instance of FileServiceFactory
 /// </summary>
 /// <param name="fileDataRepository">fileDataRepository</param>
 /// <param name="blobDataRepository">IBlobDataRepository</param>
 /// <param name="unitOfWork">IUnitOfWork</param>
 /// <param name="repositoryDetails">IRepositoryDetails</param>
 /// <param name="repositoryService">IRepositoryService</param>
 /// <param name="userService">IUserService</param>
 /// <param name="repositoryAdapterFactory">IRepositoryAdapterFactory</param>
 public FileServiceFactory(IFileRepository fileDataRepository, IBlobDataRepository blobDataRepository, IUnitOfWork unitOfWork, IRepositoryDetails repositoryDetails, IRepositoryService repositoryService, IUserService userService, IRepositoryAdapterFactory repositoryAdapterFactory)
 {
     this.fileDataRepository = fileDataRepository;
     this.blobDataRepository = blobDataRepository;
     this.unitOfWork = unitOfWork;
     this.repositoryDetails = repositoryDetails;
     this.repositoryService = repositoryService;
     this.userService = userService;
     this.repositoryAdapterFactory = repositoryAdapterFactory;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FilesController" /> class.
 /// </summary>
 /// <param name="fileServiceFactory">IFileServiceFactory</param>
 /// <param name="repositoryService">IRepositoryService</param>
 /// <param name="qcService">IQCService</param>
 /// <param name="userService">IUserService</param>
 /// <param name="repositoryAdapterFactory">IRepositoryAdapterFactory</param>
 public FilesController(IFileServiceFactory fileServiceFactory, IRepositoryService repositoryService, IQCService qcService, IUserService userService, IRepositoryAdapterFactory repositoryAdapterFactory)
 {
     this.repositoryService        = repositoryService;
     this.qcService                = qcService;
     this.fileServiceFactory       = fileServiceFactory;
     this.userService              = userService;
     this.fileService              = fileServiceFactory.GetFileService(BaseRepositoryEnum.Default.ToString());
     this.diagnostics              = new DiagnosticsProvider(this.GetType());
     this.repositoryAdapterFactory = repositoryAdapterFactory;
     this.user = IdentityHelper.GetCurrentUser(this.userService, this.User as ClaimsPrincipal);
 }
 public DataVerseFileService(IFileRepository fileDataRepository, IBlobDataRepository blobDataRepository, IUnitOfWork unitOfWork, IRepositoryDetails repositoryDetails, IRepositoryService repositoryService, IRepositoryAdapterFactory repositoryAdapterFactory, IUserService userService)
     : base(fileDataRepository, blobDataRepository, unitOfWork, repositoryDetails, repositoryService, repositoryAdapterFactory)
 {
     this.userService = userService;
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SkyDriveFileService"/> class.
 /// </summary>
 /// <param name="fileDataRepository">IFileRepository instance.</param>
 /// <param name="blobDataRepository">IBlobDataRepository instance.</param>
 /// <param name="unitOfWork">IUnitOfWork instance.</param>
 /// <param name="repositoryDetails">IRepositoryDetails instance.</param>
 /// <param name="repositoryService">IRepositoryService instance.</param>
 /// <param name="userService">IUserService instance</param>
 /// <param name="repositoryAdapterFactory">IRepositoryAdapterFactory instance.</param>
 public SkyDriveFileService(IFileRepository fileDataRepository, IBlobDataRepository blobDataRepository, IUnitOfWork unitOfWork, IRepositoryDetails repositoryDetails,IRepositoryService repositoryService, IUserService userService, IRepositoryAdapterFactory repositoryAdapterFactory)
     : base(fileDataRepository, blobDataRepository, unitOfWork, repositoryDetails, repositoryService, repositoryAdapterFactory)
 {
     this.userService = userService;
     diagnostics = new DiagnosticsProvider(this.GetType());
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FilesController" /> class.
 /// </summary>
 /// <param name="fileServiceFactory">IFileServiceFactory</param>
 /// <param name="repositoryService">IRepositoryService</param>
 /// <param name="qcService">IQCService</param>
 /// <param name="userService">IUserService</param>
 /// <param name="repositoryAdapterFactory">IRepositoryAdapterFactory</param>
 public FilesController(IFileServiceFactory fileServiceFactory, IRepositoryService repositoryService, IQCService qcService, IUserService userService, IRepositoryAdapterFactory repositoryAdapterFactory)
 {
     this.repositoryService = repositoryService;
     this.qcService = qcService;
     this.fileServiceFactory = fileServiceFactory;
     this.userService = userService;
     this.fileService = fileServiceFactory.GetFileService(BaseRepositoryEnum.Default.ToString());
     this.diagnostics = new DiagnosticsProvider(this.GetType());
     this.repositoryAdapterFactory = repositoryAdapterFactory;
     this.user = IdentityHelper.GetCurrentUser(this.userService, this.User as ClaimsPrincipal);
 }