12 overrides of GetArgument
Microsoft.AspNetCore.Http.Abstractions (11)
DefaultEndpointFilterInvocationContext.cs (1)
30public override T GetArgument<T>(int index)
EndpointFilterInvocationContextOfT.Generated.cs (10)
91public override T GetArgument<T>(int index) 219public override T GetArgument<T>(int index) 354public override T GetArgument<T>(int index) 496public override T GetArgument<T>(int index) 645public override T GetArgument<T>(int index) 801public override T GetArgument<T>(int index) 964public override T GetArgument<T>(int index) 1134public override T GetArgument<T>(int index) 1311public override T GetArgument<T>(int index) 1495public override T GetArgument<T>(int index)
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ControllerEndpointFilterInvocationContext.cs (1)
44public override T GetArgument<T>(int index)
11 references to GetArgument
Microsoft.AspNetCore.Http.Abstractions.Tests (9)
EndpointFilterInvocationContextOfTTests.cs (9)
24Assert.Throws<InvalidCastException>(() => context.GetArgument<string>(1)); 25Assert.Throws<InvalidCastException>(() => context.GetArgument<int>(0)); 26Assert.Throws<InvalidCastException>(() => context.GetArgument<string>(3)); 27var todo = context.GetArgument<ITodo>(3); 36Assert.Equal("Foo", context.GetArgument<string>(0)); 77Assert.Null(context.GetArgument<string>(0)); 78Assert.Null(context.GetArgument<Todo>(3)); 80Assert.Throws<NullReferenceException>(() => context.GetArgument<int>(1)); 81Assert.Throws<NullReferenceException>(() => context.GetArgument<bool>(2));
Microsoft.AspNetCore.Routing.Tests (1)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
879context.Arguments[0] = context.GetArgument<int>(0) + 1;
Mvc.RoutingWebSite (1)
StartupForEndpointFilters.cs (1)
47var firstArg = ic.GetArgument<string>(0);