22 instantiations of RouteKey
Microsoft.AspNetCore.Components (1)
Routing\Router.cs (1)
198var routeKey = new RouteKey(AppAssembly, AdditionalAssemblies);
Microsoft.AspNetCore.Components.Tests (21)
Routing\RouteKeyTest.cs (13)
24var key1 = new RouteKey(typeof(string).Assembly, null); 25var key2 = new RouteKey(typeof(string).Assembly, null); 36var key1 = new RouteKey(typeof(string).Assembly, null); 37var key2 = new RouteKey(typeof(ComponentBase).Assembly, null); 49var key2 = new RouteKey(typeof(string).Assembly, null); 60var key1 = new RouteKey(typeof(string).Assembly, new[] { typeof(ComponentBase).Assembly, GetType().Assembly }); 61var key2 = new RouteKey(typeof(string).Assembly, new[] { typeof(ComponentBase).Assembly, GetType().Assembly }); 72var key1 = new RouteKey(typeof(string).Assembly, new[] { typeof(ComponentBase).Assembly, GetType().Assembly }); 73var key2 = new RouteKey(typeof(string).Assembly, new[] { GetType().Assembly, typeof(ComponentBase).Assembly }); 84var key1 = new RouteKey(typeof(string).Assembly, new[] { GetType().Assembly }); 85var key2 = new RouteKey(typeof(ComponentBase).Assembly, new[] { GetType().Assembly, }); 96var key1 = new RouteKey(typeof(ComponentBase).Assembly, new[] { typeof(object).Assembly }); 97var key2 = new RouteKey(typeof(ComponentBase).Assembly, new[] { GetType().Assembly, });
Routing\RouteTableFactoryTests.cs (8)
28var routes1 = routeTableFactory.Create(new RouteKey(GetType().Assembly, null), _serviceProvider); 31var routes2 = routeTableFactory.Create(new RouteKey(GetType().Assembly, null), _serviceProvider); 42var routes1 = routeTableFactory.Create(new RouteKey(typeof(object).Assembly, new[] { typeof(ComponentBase).Assembly, GetType().Assembly, }), _serviceProvider); 45var routes2 = routeTableFactory.Create(new RouteKey(typeof(object).Assembly, new[] { GetType().Assembly, typeof(ComponentBase).Assembly, }), _serviceProvider); 56var routes1 = routeTableFactory.Create(new RouteKey(GetType().Assembly, null), _serviceProvider); 59var routes2 = routeTableFactory.Create(new RouteKey(GetType().Assembly, new[] { typeof(object).Assembly }), _serviceProvider); 70var routeTable = routeTableFactory.Create(new RouteKey(GetType().Assembly, new[] { GetType().Assembly }), _serviceProvider); 83var routeTable = routeTableFactory.Create(new RouteKey(GetType().Assembly, Array.Empty<Assembly>()), _serviceProvider);
27 references to RouteKey
Microsoft.AspNetCore.Components (8)
Routing\RouteKey.cs (3)
8internal readonly struct RouteKey : IEquatable<RouteKey> 21return obj is RouteKey other && Equals(other); 24public bool Equals(RouteKey other)
Routing\Router.cs (2)
40private RouteKey _routeTableLastBuiltForRouteKey; 198var routeKey = new RouteKey(AppAssembly, AdditionalAssemblies);
Routing\RouteTableFactory.cs (3)
32private readonly ConcurrentDictionary<RouteKey, RouteTable> _cache = new(); 34public RouteTable Create(RouteKey routeKey, IServiceProvider serviceProvider) 50private static List<Type> GetRouteableComponents(RouteKey routeKey)
Microsoft.AspNetCore.Components.Tests (19)
Routing\RouteKeyTest.cs (19)
12var key1 = default(RouteKey); 13var key2 = default(RouteKey); 24var key1 = new RouteKey(typeof(string).Assembly, null); 25var key2 = new RouteKey(typeof(string).Assembly, null); 36var key1 = new RouteKey(typeof(string).Assembly, null); 37var key2 = new RouteKey(typeof(ComponentBase).Assembly, null); 48var key1 = default(RouteKey); 49var key2 = new RouteKey(typeof(string).Assembly, null); 60var key1 = new RouteKey(typeof(string).Assembly, new[] { typeof(ComponentBase).Assembly, GetType().Assembly }); 61var key2 = new RouteKey(typeof(string).Assembly, new[] { typeof(ComponentBase).Assembly, GetType().Assembly }); 72var key1 = new RouteKey(typeof(string).Assembly, new[] { typeof(ComponentBase).Assembly, GetType().Assembly }); 73var key2 = new RouteKey(typeof(string).Assembly, new[] { GetType().Assembly, typeof(ComponentBase).Assembly }); 84var key1 = new RouteKey(typeof(string).Assembly, new[] { GetType().Assembly }); 85var key2 = new RouteKey(typeof(ComponentBase).Assembly, new[] { GetType().Assembly, }); 96var key1 = new RouteKey(typeof(ComponentBase).Assembly, new[] { typeof(object).Assembly }); 97var key2 = new RouteKey(typeof(ComponentBase).Assembly, new[] { GetType().Assembly, });