Beispiel #1
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            //services.AddDependencyInjectionHelper();
            services.AddSessionAQS();

            ApiUrlHelper.Init(Configuration);
            services.Configure <RouteOptions>(options =>
            {
                options.ConstraintMap.Add("lang", typeof(LanguageRouteConstraint));
            });
            services.AddControllersWithViews();
            services.AddRazorPages();
            services.AddHttpContextAccessor();
            services.AddSingleton <IActionContextAccessor, ActionContextAccessor>();
            services.AddAppSettings(Configuration);
            services.AddScoped <LanguguageParamsFilter>();
            services.AddAQSAuthentication();
            ConfigureExternalServices(services);
            ConfigureAQSServices(services);
        }