Example #1
0
        public ReservationService(IMapper mapper, DataContext context, IMailService mailService, IFileService fileService, IAuth0Service auth0Service)
        {
            if (mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            if (mailService == null)
            {
                throw new ArgumentNullException(nameof(mailService));
            }
            if (fileService == null)
            {
                throw new ArgumentNullException(nameof(fileService));
            }
            if (auth0Service == null)
            {
                throw new ArgumentNullException(nameof(auth0Service));
            }

            _mapper       = mapper;
            _context      = context;
            _mailService  = mailService;
            _fileService  = fileService;
            _auth0Service = auth0Service;
        }
Example #2
0
 public Handler(IEmailService emailService, IbdSymptomTrackerContext context, IUserService userService, IAuth0Service authService)
 {
     _emailService = emailService;
     _context      = context;
     _userService  = userService;
     _authService  = authService;
 }
 public ImagesController(
     IMyCommunityContext dbContext,
     IMapper mapper,
     IAuth0Service auth0Service,
     IAzureBlobStorageService azureBlobStorageService
     ) : base(dbContext, mapper, auth0Service)
 {
     this.azureBlobStorageService = azureBlobStorageService;
 }
 public MedicinesController(
     IMedicineService medicineService,
     IAuth0Service auth0Service,
     IUploadService uploadService
     )
 {
     this.medicineService = medicineService;
     this.auth0Service    = auth0Service;
     this.uploadService   = uploadService;
 }
Example #5
0
 public BaseController(IMyCommunityContext dbContext, IMapper mapper, IAuth0Service auth0Service)
 {
     this._dbContext        = dbContext;
     this._mapper           = mapper;
     this._auth0Service     = auth0Service;
     this.UserProfile       = new Lazy <Task <IAuth0UserProfile> >(async() => await _auth0Service.GetTokenInfo(this));
     this.AuthenticatedUser = new Lazy <Task <User> >(async() =>
     {
         var email = (await this.UserProfile.Value).Email;
         return(await _dbContext.Users.SingleOrDefaultAsync(user => user.Email == email));
     });
 }
 public TenantService(
     IAuth0Service auth0Service,
     IEthereumService ethereumService,
     IDrugTransactionService drugTransactionService,
     ITenantRepository tenantRepository,
     IOptions <EthereumSettings> options)
 {
     this.auth0Service           = auth0Service;
     this.ethereumService        = ethereumService;
     this.drugTransactionService = drugTransactionService;
     this.tenantRepository       = tenantRepository;
     TenantAbi = options.Value.TenantAbi;
 }
Example #7
0
        public UserService(IMapper mapper, DataContext context, IAuth0Service auth0Service)
        {
            if (mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            if (auth0Service == null)
            {
                throw new ArgumentNullException(nameof(auth0Service));
            }

            _mapper       = mapper;
            _context      = context;
            _auth0Service = auth0Service;
        }
Example #8
0
 public UsersController(IMyCommunityContext dbContext, IMapper mapper, IAuth0Service auth0Service) : base(dbContext, mapper, auth0Service)
 {
 }
Example #9
0
 public Handler(IbdSymptomTrackerContext context, IUserService userService, IAuth0Service auth0)
 {
     _context     = context;
     _userService = userService;
     _auth0       = auth0;
 }
Example #10
0
 public ValidateAuth0UserFilterAttribute(IMyCommunityContext dbContext, IAuth0Service auth0Service) : base(dbContext)
 {
     this._auth0Service = auth0Service;
 }
 public ValidateUserIsPostAuthorFilterAttribute(IMyCommunityContext dbContext, IAuth0Service auth0Service) : base(dbContext, auth0Service)
 {
 }
 public FeedbackMessagesController(IMyCommunityContext dbContext, IMapper mapper, IAuth0Service auth0Service) : base(dbContext, mapper, auth0Service)
 {
 }