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); }
public static OrchardCoreBuilder AddS2fxNHibernate(this OrchardCoreBuilder builder) { return(builder .ConfigureServices(s => s.WithNHibernate())); }