//private readonly ISession session; public AccountController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, ModularityProContext db, IMemoryCache memoryCache) { _userManager = userManager; _signInManager = signInManager; _db = db; _cache = memoryCache; }
public void Configure(IApplicationBuilder app, ModularityProContext context) { app.UseStaticFiles(); app.UseDeveloperExceptionPage(); app.UseAuthentication(); app.UseSession(); //context.Database.Migrate(); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); }); app.UseSignalR(routes => { routes.MapHub <ChatHub>("/chatHub"); }); }
public FriendsController(ModularityProContext db) { _db = db; }
public HomeController(ModularityProContext db, UserManager <ApplicationUser> userManager) { // UserStateViewModel = new UserStateViewModel(); _db = db; _userManager = userManager; }
public PostsController(ModularityProContext db) { _db = db; }
public ChatHub(ModularityProContext db) { _db = db; UserConnections = new Dictionary <string, string>(); }
public ProfileController(ModularityProContext db, UserManager <ApplicationUser> userManager) { _db = db; _userManager = userManager; }