Exemplo n.º 1
0
 public ImagesController(
     IMyCommunityContext dbContext,
     IMapper mapper,
     IAuth0Service auth0Service,
     IAzureBlobStorageService azureBlobStorageService
     ) : base(dbContext, mapper, auth0Service)
 {
     this.azureBlobStorageService = azureBlobStorageService;
 }
Exemplo n.º 2
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));
     });
 }
Exemplo n.º 3
0
 public UsersController(IMyCommunityContext dbContext, IMapper mapper, IAuth0Service auth0Service) : base(dbContext, mapper, auth0Service)
 {
 }
Exemplo n.º 4
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)
 {
 }
 public BaseActionFilterAttribute(IMyCommunityContext dbContext)
 {
     this._dbContext = dbContext;
 }