public DocumentsController( IMediator mediator, ITempContentStorage tempContentStorage, IUserService userService, IDocumentStorage documentStorage, IContentTypeProvider contentTypeProvider, IFoldersStorage foldersStorage, IDataProtectionProvider dataProtectionProvider) { if (dataProtectionProvider == null) { throw new ArgumentNullException(nameof(dataProtectionProvider)); } this.mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); this.tempContentStorage = tempContentStorage ?? throw new ArgumentNullException(nameof(tempContentStorage)); this.userService = userService ?? throw new ArgumentNullException(nameof(userService)); this.documentStorage = documentStorage ?? throw new ArgumentNullException(nameof(documentStorage)); this.contentTypeProvider = contentTypeProvider ?? throw new ArgumentNullException(nameof(contentTypeProvider)); this.foldersStorage = foldersStorage ?? throw new ArgumentNullException(nameof(foldersStorage)); dataProtector = dataProtectionProvider .CreateProtector(nameof(DocumentsController)) .ToTimeLimitedDataProtector(); }
public FoldersController(IFoldersStorage foldersStorage, IUserService userService, IDocumentStorage documentStorage) { this.foldersStorage = foldersStorage ?? throw new ArgumentNullException(nameof(foldersStorage)); this.userService = userService ?? throw new ArgumentNullException(nameof(userService)); this.documentStorage = documentStorage ?? throw new ArgumentNullException(nameof(documentStorage)); }
public RootFolderForNewUserCreator(IFoldersStorage foldersStorage) { this.foldersStorage = foldersStorage ?? throw new ArgumentNullException(nameof(foldersStorage)); }