public ImagesController( IMyCommunityContext dbContext, IMapper mapper, IAuth0Service auth0Service, IAzureBlobStorageService azureBlobStorageService ) : base(dbContext, mapper, auth0Service) { this.azureBlobStorageService = azureBlobStorageService; }
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 UsersController(IMyCommunityContext dbContext, IMapper mapper, IAuth0Service auth0Service) : base(dbContext, mapper, auth0Service) { }
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; }