/// <summary> /// Initializes a new instance of the <see cref="MultiplexedReadOnlyContentSession"/> class. /// </summary> public MultiplexedReadOnlyContentSession( ContentSessionTracer tracer, Dictionary <string, IReadOnlyContentSession> sessionsByCacheRoot, string name, string preferredCacheDrive) { Contract.Requires(name != null); Contract.Requires(preferredCacheDrive != null); Contract.Requires(sessionsByCacheRoot != null); Contract.Requires(sessionsByCacheRoot.Count > 0); Name = name; Tracer = tracer; SessionsByCacheRoot = sessionsByCacheRoot; if (!SessionsByCacheRoot.TryGetValue(preferredCacheDrive, out PreferredContentSession)) { throw new ArgumentException(nameof(preferredCacheDrive)); } }
/// <summary> /// Initializes a new instance of the <see cref="MultiplexedContentSession"/> class. /// </summary> public MultiplexedContentSession(ContentSessionTracer tracer, Dictionary <string, IReadOnlyContentSession> cacheSessionsByRoot, string name, string preferredCacheDrive) : base(tracer, cacheSessionsByRoot, name, preferredCacheDrive) { }