Esempio n. 1
0
        public WordPressUserSecurity(IHttpContextAccessor httpContextAccessor,
                                     WordPressContext wordPressContext,
                                     IOptions <WordPressUserSecurityOptions> options,
                                     Serilog.ILogger logger)
        {
            _options = options?.Value ?? throw new ArgumentNullException("options");
            _logger  = logger ?? throw new ArgumentNullException("logger");

            _httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException("httpContextAccessor");
            _wordPressContext    = wordPressContext ?? throw new ArgumentNullException("wordPressContext");
        }
Esempio n. 2
0
 public WordPressRepository(WordPressContext context)
 {
     EnsureArg.IsNotNull(context);
     _context = context;
 }