public static OrchardCoreBuilder AddS2Framework(this OrchardCoreBuilder builder)
        {
            //global services
            {
                var services = builder.ApplicationServices;
                services.AddS2EnvironmentGlobal();

                services.AddS2ServicesGlobal();

                services.AddS2DataAccessGlobal();

                services.AddS2ViewGlobal();

                // Xaml
                services.AddXamlSupportGlobal();
            }

            builder.ConfigureServices(tenantServices => {
                //environment
                tenantServices.AddS2EnvironmentTenant();

                tenantServices.AddS2ModuleTenantServices();

                tenantServices.AddS2DataAccessTenant();

                tenantServices.AddS2Security();

                //model
                tenantServices.AddS2Model();

                //Remoting
                tenantServices.AddRemotingTenants();
                tenantServices.AddInternalRemoteServicesTenant();

                tenantServices.AddS2ViewTenant();
            });
            return(builder);
        }
Example #2
0
 public static OrchardCoreBuilder AddS2fxNHibernate(this OrchardCoreBuilder builder)
 {
     return(builder
            .ConfigureServices(s => s.WithNHibernate()));
 }
 /// <summary>
 /// Adds tenant level MVC services and configuration.
 /// </summary>
 public static OrchardCoreBuilder AddS2fxMvc(this OrchardCoreBuilder builder)
 {
     return(builder.AddMvc().RegisterStartup <Startup>());
 }
 /// <summary>
 /// Adds tenant level Nancy services and configuration.
 /// </summary>
 /// <param name="services"></param>
 public static OrchardCoreBuilder AddNancy(this OrchardCoreBuilder builder)
 {
     return(builder.RegisterStartup <Startup>());
 }
 public static OrchardCoreBuilder AddS2fxNHMSSQLServer(this OrchardCoreBuilder builder, IConfiguration configuration = null)
 {
     builder.ApplicationServices.AddTransient <IDbProvider, MSSQLServerHibernateDbProvider>();
     return(builder);
 }