// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Collections.Generic; using System.Linq; namespace Microsoft.Extensions.DependencyModel { public class RuntimeLibrary : Library { public RuntimeLibrary( string type, string name, string version, string hash, IEnumerable assemblies, IEnumerable resourceAssemblies, IEnumerable subTargets, IEnumerable dependencies, bool serviceable) : base(type, name, version, hash, dependencies, serviceable) { Assemblies = assemblies.ToArray(); ResourceAssemblies = resourceAssemblies.ToArray(); RuntimeTargets = subTargets.ToArray(); } public IReadOnlyList Assemblies { get; } public IReadOnlyList ResourceAssemblies { get; } public IReadOnlyList RuntimeTargets { get; } } }