public static OrchardCoreBuilder AddSetupFeatures(this OrchardCoreBuilder builder, params string[] featureIds) { V_0 = featureIds; V_1 = 0; while (V_1 < (int)V_0.Length) { V_2 = new OrchardCoreBuilderExtensions.u003cu003ec__DisplayClass2_0(); V_2.featureId = V_0[V_1]; dummyVar0 = ServiceCollectionServiceExtensions.AddTransient <ShellFeature>(builder.get_ApplicationServices(), new Func <IServiceProvider, ShellFeature>(V_2.u003cAddSetupFeaturesu003eb__0)); V_1 = V_1 + 1; } return(builder); }
public static OrchardCoreBuilder WithTenants(this OrchardCoreBuilder builder) { stackVariable1 = builder.get_ApplicationServices(); dummyVar0 = ServiceCollectionServiceExtensions.AddSingleton <IShellsSettingsSources, ShellsSettingsSources>(stackVariable1); dummyVar1 = ServiceCollectionServiceExtensions.AddSingleton <IShellsConfigurationSources, ShellsConfigurationSources>(stackVariable1); dummyVar2 = ServiceCollectionServiceExtensions.AddSingleton <IShellConfigurationSources, ShellConfigurationSources>(stackVariable1); dummyVar3 = ServiceCollectionServiceExtensions.AddTransient <IConfigureOptions <ShellOptions>, ShellOptionsSetup>(stackVariable1); dummyVar4 = ServiceCollectionServiceExtensions.AddSingleton <IShellSettingsManager, ShellSettingsManager>(stackVariable1); stackVariable7 = builder; stackVariable8 = OrchardCoreBuilderExtensions.u003cu003ec.u003cu003e9__3_0; if (stackVariable8 == null) { dummyVar5 = stackVariable8; stackVariable8 = new Action <IServiceCollection>(OrchardCoreBuilderExtensions.u003cu003ec.u003cu003e9.u003cWithTenantsu003eb__3_0); OrchardCoreBuilderExtensions.u003cu003ec.u003cu003e9__3_0 = stackVariable8; } return(stackVariable7.ConfigureServices(stackVariable8, 0)); }
private static void AddShellServices(IServiceCollection services) { dummyVar0 = services.AddHostingShellServices(); dummyVar1 = services.AddAllFeaturesDescriptor(); stackVariable4 = services; stackVariable5 = Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.u003cu003ec.u003cu003e9__3_0; if (stackVariable5 == null) { dummyVar2 = stackVariable5; stackVariable5 = new Func <IServiceProvider, ShellFeature>(Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.u003cu003ec.u003cu003e9.u003cAddShellServicesu003eb__3_0); Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.u003cu003ec.u003cu003e9__3_0 = stackVariable5; } dummyVar3 = ServiceCollectionServiceExtensions.AddTransient <ShellFeature>(stackVariable4, stackVariable5); stackVariable7 = services; stackVariable8 = Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.u003cu003ec.u003cu003e9__3_1; if (stackVariable8 == null) { dummyVar4 = stackVariable8; stackVariable8 = new Func <IServiceProvider, ShellFeature>(Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.u003cu003ec.u003cu003e9.u003cAddShellServicesu003eb__3_1); Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.u003cu003ec.u003cu003e9__3_1 = stackVariable8; } dummyVar5 = ServiceCollectionServiceExtensions.AddTransient <ShellFeature>(stackVariable7, stackVariable8); return; }