public static IServiceCollection AddDistributedCosmosDbCache(this IServiceCollection services, Action <CosmosDbCacheOptions> options)
        {
            OptionsServiceCollectionExtensions.AddOptions(services);
            OptionsServiceCollectionExtensions.Configure <CosmosDbCacheOptions>(services, options);

            services.AddSingleton <IDistributedCache, CosmosDbCache>();

            return(services);
        }
 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;
 }