Ejemplo n.º 1
0
    public void Configure(IApplicationBuilder app, IHostingEnvironment env)
    {
        if (env.IsDevelopment())
        {
            app.UseDeveloperExceptionPage();
        }

        // Enabling Simplify.Web JSON requests handling
        HttpModelHandler.RegisterModelBinder <JsonModelBinder>();

        app.UseSimplifyWebWithoutRegistrations();

        Console.WriteLine("Service started.");
    }
Ejemplo n.º 2
0
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            IocRegistrations.Register();

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            HttpModelHandler.RegisterModelBinder <JsonModelBinder>();

            app.UseSimplifyWeb();
            DIContainer.Current.Verify();
        }
Ejemplo n.º 3
0
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            HttpModelHandler.RegisterModelBinder <JsonModelBinder>();

            app.UseSimplifyWebWithoutRegistrations();

            if (env.IsDevelopment())
            {
                DIContainer.Current.GeneratePostmanData();
            }
        }