public Startup(IConfiguration configuration, IWebHostEnvironment env) { configuration.CheckArgumentIsNull(); env.CheckArgumentIsNull(); Configuration = configuration; Env = env; }
public FileUploadHelper( IWebHostEnvironment webHost, IOptionsSnapshot <BehlogSetting> setting ) { webHost.CheckArgumentIsNull(); _webHost = webHost; setting.CheckArgumentIsNull(); _setting = setting; }
public NewsController(IUnitOfWork uw, IMapper mapper, IWebHostEnvironment env) { _uw = uw; _uw.CheckArgumentIsNull(nameof(_uw)); _env = env; _env.CheckArgumentIsNull(nameof(_env)); _mapper = mapper; _mapper.CheckArgumentIsNull(nameof(_mapper)); }
public UserManagerController(IApplicationUserManager userManager, IMapper mapper, IApplicationRoleManager roleManager, IWebHostEnvironment env) { _userManager = userManager; _userManager.CheckArgumentIsNull(nameof(_userManager)); _mapper = mapper; _mapper.CheckArgumentIsNull(nameof(_mapper)); _roleManager = roleManager; _roleManager.CheckArgumentIsNull(nameof(_roleManager)); _env = env; _env.CheckArgumentIsNull(nameof(_env)); }