public PersistentUserDataManager(ITraceSourceFactory traceSourceFactory, Implementation.IStorageManagerImplementation impl, IShutdown shutdown) { this.trace = traceSourceFactory.CreateTraceSource("Storage", "storage"); this.impl = impl; this.impl.SetTrace(trace); this.globalSettingsEntry = new Lazy <IStorageEntry>(() => impl.GetEntry("global", 0)); shutdown.Cleanup += (sender, e) => impl.Dispose(); }
public ContentCacheManager(Implementation.IStorageManagerImplementation impl) { this.trace = new LJTraceSource("ContentCache", "cache"); this.impl = impl; this.impl.SetTrace(trace); }
public ContentCacheManager(ITraceSourceFactory traceSourceFactory, Implementation.IStorageManagerImplementation impl) { this.trace = traceSourceFactory.CreateTraceSource("ContentCache", "cache"); this.impl = impl; this.impl.SetTrace(trace); }