/* * To make full use of FactoryFactory's additional functionality * provided through the Registry class, just change the line * public void ConfigureServices(IServiceCollection services) * to * public void ConfigureContainer(Registry services) * and you're done. Registry implements IServiceCollection anyways * so you can use the existing extension methods as well as the new * ones that FactoryFactory has to offer. */ public void ConfigureContainer(Registry services) { services.Configure <CookiePolicyOptions>(options => { // This lambda determines whether user consent for non-essential cookies is needed for a given request. options.CheckConsentNeeded = context => true; options.MinimumSameSitePolicy = SameSiteMode.None; }); services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2); }