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