private static void AddExtensionServices(OrchardCoreBuilder builder)
 {
     dummyVar0       = ServiceCollectionServiceExtensions.AddSingleton <IModuleNamesProvider, AssemblyAttributeModuleNamesProvider>(builder.get_ApplicationServices());
     dummyVar1       = ServiceCollectionServiceExtensions.AddSingleton <IApplicationContext, ModularApplicationContext>(builder.get_ApplicationServices());
     dummyVar2       = builder.get_ApplicationServices().AddExtensionManagerHost();
     stackVariable9  = builder;
     stackVariable10 = Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.u003cu003ec.u003cu003e9__4_0;
     if (stackVariable10 == null)
     {
         dummyVar3       = stackVariable10;
         stackVariable10 = new Action <IServiceCollection>(Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.u003cu003ec.u003cu003e9.u003cAddExtensionServicesu003eb__4_0);
         Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.u003cu003ec.u003cu003e9__4_0 = stackVariable10;
     }
     dummyVar4 = stackVariable9.ConfigureServices(stackVariable10, 0);
     return;
 }
 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 AddDefaultServices(IServiceCollection services)
 {
     dummyVar0  = LoggingServiceCollectionExtensions.AddLogging(services);
     dummyVar1  = OptionsServiceCollectionExtensions.AddOptions(services);
     dummyVar2  = LocalizationServiceCollectionExtensions.AddLocalization(services);
     dummyVar3  = ServiceCollectionServiceExtensions.AddSingleton <IStringLocalizerFactory, NullStringLocalizerFactory>(services);
     dummyVar4  = ServiceCollectionServiceExtensions.AddSingleton <IHtmlLocalizerFactory, NullHtmlLocalizerFactory>(services);
     dummyVar5  = EncoderServiceCollectionExtensions.AddWebEncoders(services);
     dummyVar6  = HttpServiceCollectionExtensions.AddHttpContextAccessor(services);
     dummyVar7  = ServiceCollectionServiceExtensions.AddSingleton <IClock, Clock>(services);
     dummyVar8  = ServiceCollectionServiceExtensions.AddScoped <ILocalClock, LocalClock>(services);
     dummyVar9  = ServiceCollectionServiceExtensions.AddScoped <ILocalizationService, DefaultLocalizationService>(services);
     dummyVar10 = ServiceCollectionServiceExtensions.AddScoped <ICalendarManager, DefaultCalendarManager>(services);
     dummyVar11 = ServiceCollectionServiceExtensions.AddScoped <ICalendarSelector, DefaultCalendarSelector>(services);
     dummyVar12 = ServiceCollectionServiceExtensions.AddSingleton <IPoweredByMiddlewareOptions, PoweredByMiddlewareOptions>(services);
     dummyVar13 = ServiceCollectionServiceExtensions.AddScoped <IOrchardHelper, DefaultOrchardHelper>(services);
     return;
 }
 public static OrchardCoreBuilder AddOrchardCore(this IServiceCollection services)
 {
     if (services == null)
     {
         throw new ArgumentNullException("services");
     }
     stackVariable1 = services;
     stackVariable2 = Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.u003cu003ec.u003cu003e9__0_0;
     if (stackVariable2 == null)
     {
         dummyVar0      = stackVariable2;
         stackVariable2 = new Func <ServiceDescriptor, bool>(Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.u003cu003ec.u003cu003e9.u003cAddOrchardCoreu003eb__0_0);
         Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.u003cu003ec.u003cu003e9__0_0 = stackVariable2;
     }
     stackVariable3 = stackVariable1.LastOrDefault <ServiceDescriptor>(stackVariable2);
     if (stackVariable3 != null)
     {
         stackVariable4 = stackVariable3.get_ImplementationInstance();
     }
     else
     {
         dummyVar1      = stackVariable3;
         stackVariable4 = null;
     }
     V_0 = stackVariable4 as OrchardCoreBuilder;
     if (V_0 == null)
     {
         V_0       = new OrchardCoreBuilder(services);
         dummyVar2 = ServiceCollectionServiceExtensions.AddSingleton <OrchardCoreBuilder>(services, V_0);
         Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.AddDefaultServices(services);
         Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.AddShellServices(services);
         Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.AddExtensionServices(V_0);
         Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.AddStaticFiles(V_0);
         Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.AddRouting(V_0);
         Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.AddAntiForgery(V_0);
         Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.AddSameSiteCookieBackwardsCompatibility(V_0);
         Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.AddAuthentication(V_0);
         Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.AddDataProtection(V_0);
         dummyVar3 = ServiceCollectionServiceExtensions.AddSingleton <IServiceCollection>(services, services);
     }
     return(V_0);
 }
 public static OrchardCoreBuilder AddBackgroundService(this OrchardCoreBuilder builder)
 {
     dummyVar0 = ServiceCollectionServiceExtensions.AddSingleton <IHostedService, ModularBackgroundService>(builder.get_ApplicationServices());
     return(builder);
 }