Exemplo n.º 1
0
        /// <summary>
        /// Adds services at the host level to load site settings from the file system
        /// and tenant level services to store states and descriptors in the database.
        /// </summary>
        public static OrchardCoreBuilder AddDataStorage(this OrchardCoreBuilder builder)
        {
            builder.AddSitesFolder()
            .ConfigureServices(services =>
            {
                services.AddScoped <IShellDescriptorManager, ShellDescriptorManager>();
            });

            return(builder);
        }