Example #1
0
        // 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;
 }
Example #4
0
 public UserConnectionRepository(InxDbContext context)
 {
     this.context = context;
 }
Example #5
0
 public MessageRepository(InxDbContext context)
 {
     this.context = context;
 }