private Context(ILogger logger, MemoryCache memoryCache, DiskCache diskCache, NativeCache nativeCache, Dictionary <Type, Type> awaiters, Dictionary <Type, Type> mappers) { Logger = logger; MemoryCache = memoryCache; DiskCache = diskCache; NativeCache = nativeCache; awaiterTypes = awaiters; mapperTypes = mappers; }
public Builder(Context context) { logger = context.Logger; memoryCache = context.MemoryCache; diskCache = context.DiskCache; nativeCache = context.NativeCache; foreach (var p in context.awaiterTypes) { awaiterTypes[p.Key] = p.Value; } foreach (var p in context.mapperTypes) { mapperTypes[p.Key] = p.Value; } }
public Builder WithLogger(ILogger loggerArg) { logger = loggerArg; return(this); }