public AccountsController(UserManager <AppUser> userManager, IJwtFactory jwtFactory, IChataloRepository chataloRepository, IOptions <JwtIssuerOptions> jwtOptions) { _userManager = userManager; _jwtFactory = jwtFactory; _ChataloRepository = chataloRepository; _jwtOptions = jwtOptions.Value; }
public static async Task <Person> GetPersonForClaimsPrincipalAsync(this IChataloRepository repository, ClaimsPrincipal claimsPrincipal) { var appUserId = claimsPrincipal.Claims.First(cl => cl.Type == Helpers.Constants.Strings.JwtClaimIdentifiers.Id).Value; return(await repository.GetPersonByAppUseridAsync(appUserId)); }
public CategoryController(IChataloRepository repository) { _Repository = repository; }
public MessageController(IChataloRepository repository) { _Repository = repository; }
public DiscussionController(IChataloRepository repository) { _Repository = repository; }
public BoardController(IChataloRepository repository) { _Repository = repository; }
public ChatHub(IChataloRepository chataloRepository) { _ChataloRepository = chataloRepository; }
public PostController(IChataloRepository repository) { _Repository = repository; }
public PersonController(IChataloRepository repository) { _Repository = repository; }