// This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            JwtConfigure.Configure(services);

            services.AddMvc();

            ContainerBuilder.ConfigureContainer(services);
        }
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            JwtConfigure.Configure(services);

            services.AddEntityFrameworkNpgsql()
            .AddDbContext <FrameWork.Repository.FrameWorkContext>(
                options => options.UseNpgsql(
                    Configuration.GetConnectionString("framework")));


            services.AddMvc();

            ContainerBuilder.ConfigureContainer(services);
        }
Exemple #3
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            JwtConfigure.Configure(services);

            services.AddMvc();
        }