public ICacheService Create(CacheLayerDefinition definition) { var cacheService = _innerFactory.Create(definition); return(Attribute.GetCustomAttribute(cacheService.GetType(), typeof(DisableLoggingAttribute)) != null ? cacheService : new CacheServiceDecorator(cacheService, _logger)); }
public PostLoggingCacheModule(CacheLayerDefinition layerDefinition) { LayerDefinition = layerDefinition; }
public MemoryCacheModule(CacheLayerDefinition layerDefinition) { LayerDefinition = layerDefinition; }
public ICacheService Create(CacheLayerDefinition definition) { return((ICacheService)_serviceProvider.GetRequiredService(definition.CacheServiceType.ImplType)); }