public MemoryContext(InterfaceType.Factory iftFactory, Func <IFrozenContext> lazyCtx, MemoryImplementationType.MemoryFactory implTypeFactory) : base(iftFactory) { _lazyCtx = lazyCtx; _implTypeFactoryCache = new FuncCache <Type, MemoryImplementationType>(t => implTypeFactory(t)); _implTypeFactory = t => _implTypeFactoryCache.Invoke(t); }
public FrozenMemoryContext(InterfaceType.Factory iftFactory, Func <IFrozenContext> lazyCtx, MemoryImplementationType.MemoryFactory implTypeFactory) : base(iftFactory, lazyCtx, implTypeFactory) { }