34 lines
No EOL
1.2 KiB
C#
34 lines
No EOL
1.2 KiB
C#
// 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<RuntimeAssembly> assemblies,
|
|
IEnumerable<ResourceAssembly> resourceAssemblies,
|
|
IEnumerable<RuntimeTarget> subTargets,
|
|
IEnumerable<Dependency> dependencies,
|
|
bool serviceable)
|
|
: base(type, name, version, hash, dependencies, serviceable)
|
|
{
|
|
Assemblies = assemblies.ToArray();
|
|
ResourceAssemblies = resourceAssemblies.ToArray();
|
|
RuntimeTargets = subTargets.ToArray();
|
|
}
|
|
|
|
public IReadOnlyList<RuntimeAssembly> Assemblies { get; }
|
|
|
|
public IReadOnlyList<ResourceAssembly> ResourceAssemblies { get; }
|
|
|
|
public IReadOnlyList<RuntimeTarget> RuntimeTargets { get; }
|
|
}
|
|
} |