Generate runtime graph when building runtime
This commit is contained in:
parent
1c9803d980
commit
77e511c4d4
6 changed files with 253 additions and 12 deletions
|
@ -1,19 +1,29 @@
|
|||
// 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;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Microsoft.Extensions.DependencyModel
|
||||
{
|
||||
public class RuntimeFallbacks
|
||||
{
|
||||
public string Runtime { get; set; }
|
||||
public IEnumerable<string> Fallbacks { get; set; }
|
||||
public IReadOnlyList<string> Fallbacks { get; set; }
|
||||
|
||||
public RuntimeFallbacks(string runtime, IEnumerable<string> fallbacks)
|
||||
{
|
||||
if (runtime == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(runtime));
|
||||
}
|
||||
if (fallbacks == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(fallbacks));
|
||||
}
|
||||
Runtime = runtime;
|
||||
Fallbacks = fallbacks;
|
||||
Fallbacks = fallbacks.ToArray();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue