Exemplo n.º 1
0
            public WwtCacheBuilder CacheType <T>(Action <CacheTypeBuilder <T> > config)
                where T : class
            {
                if (_builder is null)
                {
                    return(this);
                }

                _builder.CacheType <T>(config);
                _builder.Services.Decorate <T>((other, ctx) => ctx.GetRequiredService <ICachingManager>().CreateCachedProxy(other));

                return(this);
            }