1 instantiation of RelatedAssemblyAttribute
Microsoft.AspNetCore.Mvc.Core.Test (1)
ApplicationParts\RelatedAssemblyPartTest.cs (1)
95
var attribute = new
RelatedAssemblyAttribute
(AttributeAssembly);
14 references to RelatedAssemblyAttribute
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Infrastructure\ServerFactory.cs (1)
102
var relatedAssemblies =
RelatedAssemblyAttribute
.GetRelatedAssemblies(thisAssembly, throwOnError: true);
Microsoft.AspNetCore.Mvc.Core (7)
ApplicationParts\ApplicationPartManager.cs (1)
96
var relatedAssemblies =
RelatedAssemblyAttribute
.GetRelatedAssemblies(assembly, throwOnError: false)
ApplicationParts\RelatedAssemblyAttribute.cs (6)
18
/// Initializes a new instance of <see cref="
RelatedAssemblyAttribute
"/>.
34
/// Gets <see cref="Assembly"/> instances specified by <see cref="
RelatedAssemblyAttribute
"/>.
36
/// <param name="assembly">The assembly containing <see cref="
RelatedAssemblyAttribute
"/> instances.</param>
62
var attributes = assembly.GetCustomAttributes<
RelatedAssemblyAttribute
>().ToArray();
82
var
attribute = attributes[i];
86
Resources.FormatRelatedAssemblyAttribute_AssemblyCannotReferenceSelf(nameof(
RelatedAssemblyAttribute
), assemblyName));
Microsoft.AspNetCore.Mvc.Core.Test (6)
ApplicationParts\RelatedAssemblyPartTest.cs (6)
22
var result =
RelatedAssemblyAttribute
.GetRelatedAssemblies(assembly, throwOnError: true);
36
var ex = Assert.Throws<InvalidOperationException>(() =>
RelatedAssemblyAttribute
.GetRelatedAssemblies(assembly, throwOnError: true));
51
Assert.Throws<FileNotFoundException>(() =>
RelatedAssemblyAttribute
.GetRelatedAssemblies(assembly, throwOnError: true));
74
var result =
RelatedAssemblyAttribute
.GetRelatedAssemblies(assembly, throwOnError: true, file => false, loadContext);
95
var
attribute = new RelatedAssemblyAttribute(AttributeAssembly);
100
private class TestableAssemblyLoadContextWrapper :
RelatedAssemblyAttribute
.AssemblyLoadContextWrapper