Esempio n. 1
0
        public BaseService(CrudApiContext context, IHttpContextAccessor httpContextAccessor)
            : base(context)
        {
            this.context = context;

            var name = httpContextAccessor.HttpContext.User.Identity.Name;

            userId = name is null ? Guid.Empty : Guid.Parse(name);
        }
Esempio n. 2
0
 public FoodService(
     CrudApiContext context,
     IMapper mapper,
     IHttpContextAccessor httpContextAccessor)
     : base(context, httpContextAccessor)
 {
     this.context = context;
     this.mapper  = mapper;
 }
 public ApplicationUserService(
     CrudApiContext context,
     IMapper mapper,
     IHttpContextAccessor httpContextAccessor,
     IPasswordUtils passwordUtils)
     : base(context, httpContextAccessor)
 {
     this.context       = context;
     this.mapper        = mapper;
     this.passwordUtils = passwordUtils;
 }
 public RegistrationService(
     CrudApiContext context,
     IMapper mapper,
     IApplicationUserService userService,
     IPasswordUtils passwordUtils)
 {
     this.context       = context;
     this.mapper        = mapper;
     this.userService   = userService;
     this.passwordUtils = passwordUtils;
 }
Esempio n. 5
0
 public AuthService(
     CrudApiContext context,
     IMapper mapper,
     IConfiguration configuration,
     IPasswordUtils passwordUtils,
     ITokenService tokenService,
     IHttpContextAccessor httpContextAccessor)
     : base(context, httpContextAccessor)
 {
     this.context       = context;
     this.mapper        = mapper;
     this.configuration = configuration;
     this.passwordUtils = passwordUtils;
     this.tokenService  = tokenService;
 }
Esempio n. 6
0
 public RepositoryBase(CrudApiContext db, IReflectionService reflectionService)
 {
     Db = db;
     _reflectionService = reflectionService;
 }
 public BaseEntityService(CrudApiContext context) => this.context = context;
Esempio n. 8
0
 public PersonRepository(CrudApiContext db, IReflectionService reflectionService) : base(db, reflectionService)
 {
 }