Ejemplo n.º 1
0
        public Startup(IConfiguration configuration, IWebHostEnvironment env)
        {
            configuration.CheckArgumentIsNull();
            env.CheckArgumentIsNull();

            Configuration = configuration;
            Env           = env;
        }
Ejemplo n.º 2
0
        public FileUploadHelper(
            IWebHostEnvironment webHost,
            IOptionsSnapshot <BehlogSetting> setting
            )
        {
            webHost.CheckArgumentIsNull();
            _webHost = webHost;

            setting.CheckArgumentIsNull();
            _setting = setting;
        }
Ejemplo n.º 3
0
        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));
        }