Esempio n. 1
0
        internal override Action <IServiceCollection> GetBuild()
        {
            return(services =>
            {
                services.AddMemoryCache();
                services.AddSingleton(provider => MemoryCacheHandler.New(provider.GetService <IMemoryCache>(), Options));

                Descriptors.ForEach(services.TryAdd);
            });
        }