1 type derived from AssemblyPart
Microsoft.AspNetCore.Mvc (1)
MvcServiceCollectionExtensions.cs (1)
339private sealed class FrameworkAssemblyPart : AssemblyPart, ICompilationReferencesProvider
11 instantiations of AssemblyPart
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationParts\DefaultApplicationPartFactory.cs (1)
30yield return new AssemblyPart(assembly);
Microsoft.AspNetCore.Mvc.Core.Test (3)
ApplicationParts\AssemblyPartTest.cs (3)
12var part = new AssemblyPart(typeof(AssemblyPartTest).Assembly); 26var part = new AssemblyPart(assembly); 41var part = new AssemblyPart(assembly);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (4)
AssemblyPartExtensionTest.cs (3)
16var part = new AssemblyPart(assembly); 34var part = new AssemblyPart(assembly); 52var part = new AssemblyPart(assembly);
RuntimeViewCompilerTest.cs (1)
856applicationPartManager.ApplicationParts.Add(new AssemblyPart(assembly));
Microsoft.AspNetCore.Mvc.Razor.Test (3)
ApplicationParts\RazorCompiledItemFeatureProviderTest.cs (3)
19var part1 = new AssemblyPart(typeof(RazorCompiledItemFeatureProviderTest).Assembly); 47var part1 = new AssemblyPart(assembly); 98var part1 = new AssemblyPart(typeof(RazorCompiledItemFeatureProviderTest).Assembly);
27 references to AssemblyPart
BasicWebSite (1)
Controllers\HomeController.cs (1)
133.OfType<AssemblyPart>()
Microsoft.AspNetCore.Mvc (2)
MvcServiceCollectionExtensions.cs (2)
326if (!partManager.ApplicationParts.OfType<AssemblyPart>().Any(p => p.Assembly == mvcTagHelpersAssembly)) 332if (!partManager.ApplicationParts.OfType<AssemblyPart>().Any(p => p.Assembly == mvcRazorAssembly))
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationParts\ApplicationPartFactory.cs (1)
13/// By default, Mvc registers each application assembly that it discovers as an <see cref="AssemblyPart"/>.
ApplicationParts\AssemblyPart.cs (1)
14/// Initializes a new <see cref="AssemblyPart"/> instance.
Microsoft.AspNetCore.Mvc.Core.Test (7)
ApplicationParts\AssemblyPartTest.cs (3)
12var part = new AssemblyPart(typeof(AssemblyPartTest).Assembly); 26var part = new AssemblyPart(assembly); 41var part = new AssemblyPart(assembly);
DependencyInjection\MvcBuilderExtensionsTest.cs (2)
32var assemblyPart = Assert.IsType<AssemblyPart>(part);
DependencyInjection\MvcCoreBuilderExtensionsTest.cs (2)
29var assemblyPart = Assert.IsType<AssemblyPart>(part);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
AssemblyPartExtensions.cs (2)
10/// Static class that adds methods to <see cref="AssemblyPart"/>. 15public static IEnumerable<string> GetReferencePaths(this AssemblyPart assemblyPart)
RazorReferenceManager.cs (1)
62else if (part is AssemblyPart assemblyPart)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (5)
AssemblyPartExtensionTest.cs (5)
16var part = new AssemblyPart(assembly); 24typeof(AssemblyPart).Assembly.GetName().Name, 33var assembly = typeof(AssemblyPart).Assembly; 34var part = new AssemblyPart(assembly); 52var part = new AssemblyPart(assembly);
Microsoft.AspNetCore.Mvc.Razor.Test (3)
ApplicationParts\RazorCompiledItemFeatureProviderTest.cs (3)
19var part1 = new AssemblyPart(typeof(RazorCompiledItemFeatureProviderTest).Assembly); 47var part1 = new AssemblyPart(assembly); 98var part1 = new AssemblyPart(typeof(RazorCompiledItemFeatureProviderTest).Assembly);
Microsoft.AspNetCore.Mvc.Test (4)
MvcServiceCollectionExtensionsTest.cs (4)
316Assert.Single(manager.ApplicationParts.OfType<AssemblyPart>(), p => p.Assembly == mvcRazorAssembly); 317Assert.Single(manager.ApplicationParts.OfType<AssemblyPart>(), p => p.Assembly == mvcTagHelpersAssembly); 344Assert.Single(manager.ApplicationParts.OfType<AssemblyPart>(), p => p.Assembly == mvcRazorAssembly); 345Assert.Single(manager.ApplicationParts.OfType<AssemblyPart>(), p => p.Assembly == mvcTagHelpersAssembly);