// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure( IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, InxDbContext dbContext ) { loggerFactory.AddConsole(Configuration.GetSection("Logging")); loggerFactory.AddDebug(); app.UseAuthentication(); app.UseMvc(); app.UseSwagger(); app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1"); }); app.UseSignalR(config => { config.MapHub <ConversationHub>("chat"); }); dbContext.Database.EnsureCreated(); app.Run(async(context) => context.Response.Redirect("/swagger")); }
public ConversationRepository(InxDbContext context) { this.context = context; }
public UserController(InxDbContext context, UserManager <UserEntity> userManager) : base(userManager) { this.context = context; }
public UserConnectionRepository(InxDbContext context) { this.context = context; }
public MessageRepository(InxDbContext context) { this.context = context; }