예제 #1
0
 public ShareController(IFsoService fsoService, IUserService userService, IShareService shareService, IMailService mailService)
 {
     _fsoService   = fsoService ?? throw new ArgumentNullException(nameof(fsoService));
     _userService  = userService ?? throw new ArgumentNullException(nameof(userService));
     _shareService = shareService ?? throw new ArgumentNullException(nameof(shareService));
     _mailService  = mailService ?? throw new ArgumentNullException(nameof(mailService));
 }
예제 #2
0
 public FsoController(IConfiguration configuration, IFsoService fsoService, IUserService userService, IShareService shareService)
 {
     this._storageSize = configuration.GetValue <string>("Storage:size");
     _fsoService       = fsoService ?? throw new ArgumentNullException(nameof(fsoService));
     _userService      = userService ?? throw new ArgumentNullException(nameof(userService));
     _shareService     = shareService ?? throw new ArgumentNullException(nameof(shareService));
 }
예제 #3
0
 public AuthController(ITokenService tokenService, IUserService userService, IFsoService fsoService)
 {
     _tokenService = tokenService ?? throw new ArgumentNullException(nameof(tokenService));
     _userService  = userService ?? throw new ArgumentNullException(nameof(userService));
     _fsoService   = fsoService ?? throw new ArgumentNullException(nameof(fsoService));
 }