Exemplo n.º 1
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            ServiceInjector.Add(services, Configuration);
            ValidationService.Add(services);

            services.AddSession();
            services.AddHttpContextAccessor();



            //sayfayi yenileyince yenilikleri algilamasi icin
            services.AddControllersWithViews()
            .AddRazorRuntimeCompilation();

            services.AddControllersWithViews()
            .AddFluentValidation();

            services.AddFormHelper(new FormHelperConfiguration
            {
                CheckTheFormFieldsMessage = "Check the form fields."
                                            //RedirectDelay->Yönlendirme iþlemlerinde beklenecek varsayýlan süre.
                                            //ToastrDefaultPosition->Bildirim / Uyarý mesajlarýnýn ekranda görüneceði pozisyon.
            });
        }