internal static void Init() { Cache = new MethodInfoCache(); ContextProvider = new EmptyContextProvider(); CacheStrategyProvider = new DefaultCacheStrategyProvider(); AttributeProvider = new DefaulAttributeProvider(); HashCodeGeneratorProvider = new DefaultHashCodeGeneratorProvider(); CacheKeyProvider = new DefaultCacheKeyProvider(HashCodeGeneratorProvider); CacheStoreProvider = new DefaultCacheStoreProvider(); ServiceActivator = new DefaultServiceActivator(); Logger = new NullLogger(); BackgroundTaskManager = new DefaultBackgroundTaskManager(); var configFolder = AppDomain.CurrentDomain.SetupInformation.ApplicationBase; CacheProfileProvider = new YamlCacheProfileProvider(Path.Combine(configFolder ?? "", "cacheProfile.yaml")); }
internal static void Init() { Cache = new MethodInfoCache(); CacheStrategyProvider = new DefaultCacheStrategyProvider(); AttributeProvider = new DefaulAttributeProvider(); HashCodeGeneratorProvider = new DefaultHashCodeGeneratorProvider(); CacheKeyProvider = new DefaultCacheKeyProvider(HashCodeGeneratorProvider); CacheStoreProvider = new DefaultCacheStoreProvider(); ServiceActivator = new DefaultServiceActivator(); Logger = new NullLogger(); BackgroundTaskManager = new DefaultBackgroundTaskManager(); var configFolder = AppDomain.CurrentDomain.SetupInformation.ApplicationBase; CacheProfileProvider = new YamlCacheProfileProvider(Path.Combine(configFolder ?? "", "cacheProfile.yaml")); }