1 instantiation of RelatedAssemblyAttribute
Microsoft.AspNetCore.Mvc.Core.Test (1)
ApplicationParts\RelatedAssemblyPartTest.cs (1)
95var attribute = new RelatedAssemblyAttribute(AttributeAssembly);
14 references to RelatedAssemblyAttribute
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Infrastructure\ServerFactory.cs (1)
102var relatedAssemblies = RelatedAssemblyAttribute.GetRelatedAssemblies(thisAssembly, throwOnError: true);
Microsoft.AspNetCore.Mvc.Core (7)
ApplicationParts\ApplicationPartManager.cs (1)
96var 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> 62var attributes = assembly.GetCustomAttributes<RelatedAssemblyAttribute>().ToArray(); 82var attribute = attributes[i]; 86Resources.FormatRelatedAssemblyAttribute_AssemblyCannotReferenceSelf(nameof(RelatedAssemblyAttribute), assemblyName));
Microsoft.AspNetCore.Mvc.Core.Test (6)
ApplicationParts\RelatedAssemblyPartTest.cs (6)
22var result = RelatedAssemblyAttribute.GetRelatedAssemblies(assembly, throwOnError: true); 36var ex = Assert.Throws<InvalidOperationException>(() => RelatedAssemblyAttribute.GetRelatedAssemblies(assembly, throwOnError: true)); 51Assert.Throws<FileNotFoundException>(() => RelatedAssemblyAttribute.GetRelatedAssemblies(assembly, throwOnError: true)); 74var result = RelatedAssemblyAttribute.GetRelatedAssemblies(assembly, throwOnError: true, file => false, loadContext); 95var attribute = new RelatedAssemblyAttribute(AttributeAssembly); 100private class TestableAssemblyLoadContextWrapper : RelatedAssemblyAttribute.AssemblyLoadContextWrapper