public ScheduleService(OnlineSalesContext context, IHttpContextAccessor httpContext, IOptions <ShiftScheduleOptions> options, ILogger <ScheduleService> logger) : base(httpContext, context) { _logger = logger; _options = options.Value; }
public AuthService(OnlineSalesContext context, IHttpContextAccessor httpContext, ILogger <AuthService> logger, ILdapAuth ldapAuth, IOptions <WindowsAuthOptions> option) : base(httpContext, context) { _ldapAuth = ldapAuth; _logger = logger; _authOption = option.Value; }
public PosService(OnlineSalesContext context, IHttpContextAccessor httpContext, IRoleCache roleCache, ILogger <PosService> logger, ListQuery <Pos, PosDTO> q) : base(httpContext, context) { _logger = logger; _query = q; _roleCache = roleCache; }
// private readonly IMailListCache _mailList; public DMCLService(OnlineSalesContext context, IHttpContextAccessor httpContext, IScheduleMatcher matcher, IAPIAuth apiAuth, IMailerService mail, ILogger <DMCLService> logger) : base(httpContext, context) { _matcher = matcher; _apiAuth = apiAuth; _logger = logger; _mail = mail; }
public RoleCache(OnlineSalesContext context) { if (context == null) { throw new ArgumentNullException(); } if (_roleDict != null) { return; } _roleDict = context.UserRole.Select(u => new { u.RoleId, u.Name }). ToDictionary(key => key.Name, id => id.RoleId); }
public UserService(OnlineSalesContext context, IHttpContextAccessor httpContext, IOptions <MailerOptions> options, IRoleCache roleCache, ListQuery <AppUser, AppUserDTO> q, ILogger <UserService> logger) : base(httpContext, context) { _query = q; _options = options.Value; _roleCache = roleCache; _logger = logger; }
public CaseService(OnlineSalesContext context, IHttpContextAccessor httpContext, IRoleCache roleCache, ILogger <CaseService> logger, ListQuery <OnlineOrder, CaseDTO> q, IIndusService indus, IOptions <CaseOptions> options, IMailerService mail) : base(httpContext, context) { _logger = logger; _query = q; _roleCache = roleCache; _indus = indus; _mail = mail; _options = options.Value; }
public SimpleScheduleMatcher(OnlineSalesContext context, ILogger <SimpleScheduleMatcher> logger) { _context = context; _logger = logger; }
static void Main(string[] args) { var onlineSalesContext = new OnlineSalesContext(); var productList = onlineSalesContext.Product.ToList(); }
protected ContextAwareService(ClaimsPrincipal principal, OnlineSalesContext context) { UserPrincipal = principal ?? throw new ArgumentNullException(); DbContext = context ?? throw new ArgumentNullException(); }
public ContextAwareService(IHttpContextAccessor httpContext, OnlineSalesContext context) : this(httpContext.HttpContext.User, context) { }