2 instantiations of UrlActionContext
Microsoft.AspNetCore.Mvc.Core (1)
UrlHelperExtensions.cs (1)
193return helper.Action(new UrlActionContext()
Microsoft.AspNetCore.Mvc.Core.Test (1)
Routing\UrlHelperTestBase.cs (1)
694var actionContext = new UrlActionContext()
53 references to UrlActionContext
Microsoft.AspNetCore.Mvc.Abstractions (14)
IUrlHelper.cs (7)
23/// <see cref="UrlActionContext"/>. Generates an absolute URL if <see cref="UrlActionContext.Protocol"/> and 24/// <see cref="UrlActionContext.Host"/> are non-<c>null</c>. See the remarks section for important security information. 30/// The value of <see cref="UrlActionContext.Host" /> should be a trusted value. Relying on the value of the current request 36string? Action(UrlActionContext actionContext); 78/// <see cref="UrlActionContext.Protocol"/> and <see cref="UrlActionContext.Host"/> are non-<c>null</c>.
Routing\UrlActionContext.cs (7)
7/// Context object to be used for the URLs that <see cref="IUrlHelper.Action(UrlActionContext)"/> generates. 12/// The name of the action method that <see cref="IUrlHelper.Action(UrlActionContext)"/> uses to generate URLs. 21/// The name of the controller that <see cref="IUrlHelper.Action(UrlActionContext)"/> uses to generate URLs. 30/// The object that contains the route values that <see cref="IUrlHelper.Action(UrlActionContext)"/> 40/// The protocol for the URLs that <see cref="IUrlHelper.Action(UrlActionContext)"/> generates, 50/// The host name for the URLs that <see cref="IUrlHelper.Action(UrlActionContext)"/> generates. 59/// The fragment for the URLs that <see cref="IUrlHelper.Action(UrlActionContext)"/> generates.
Microsoft.AspNetCore.Mvc.Core (7)
Routing\EndpointRoutingUrlHelper.cs (1)
36public override string? Action(UrlActionContext urlActionContext)
Routing\UrlHelper.cs (1)
51public override string? Action(UrlActionContext actionContext)
Routing\UrlHelperBase.cs (1)
66public abstract string? Action(UrlActionContext actionContext);
UrlHelperExtensions.cs (4)
278/// <see cref="UrlActionContext.Protocol"/> and <see cref="UrlActionContext.Host"/> are non-<c>null</c>. 311/// <see cref="UrlActionContext.Protocol"/> and <see cref="UrlActionContext.Host"/> are non-<c>null</c>.
Microsoft.AspNetCore.Mvc.Core.Test (15)
AcceptedAtActionResultTests.cs (2)
283urlHelper.Setup(o => o.Action(It.IsAny<UrlActionContext>())).Returns(returnValue); 304public string Action(UrlActionContext actionContext) => ActionValue;
CreatedAtActionResultTests.cs (1)
103urlHelper.Setup(o => o.Action(It.IsAny<UrlActionContext>())).Returns(returnValue);
RedirectToActionResultTest.cs (1)
142urlHelper.Setup(o => o.Action(It.IsAny<UrlActionContext>())).Returns(returnValue);
Routing\UrlHelperBaseTest.cs (1)
143public override string Action(UrlActionContext actionContext)
Routing\UrlHelperExtensionsTest.cs (9)
607UrlActionContext actual = null; 619urlHelper.Setup(h => h.Action(It.IsAny<UrlActionContext>())) 620.Callback((UrlActionContext context) => actual = context); 642UrlActionContext actual = null; 654urlHelper.Setup(h => h.Action(It.IsAny<UrlActionContext>())) 655.Callback((UrlActionContext context) => actual = context); 677UrlActionContext actual = null; 689urlHelper.Setup(h => h.Action(It.IsAny<UrlActionContext>())) 690.Callback((UrlActionContext context) => actual = context);
Routing\UrlHelperTestBase.cs (1)
694var actionContext = new UrlActionContext()
Microsoft.AspNetCore.Mvc.TagHelpers.Test (12)
AnchorTagHelperTest.cs (1)
53.Setup(mock => mock.Action(It.IsAny<UrlActionContext>())).Returns("home/index");
FormActionTagHelperTest.cs (6)
45.Setup(mock => mock.Action(It.IsAny<UrlActionContext>())) 46.Returns<UrlActionContext>(c => $"{c.Controller}/{c.Action}/{(c.Values as RouteValueDictionary)["name"]}"); 216.Setup(mock => mock.Action(It.IsAny<UrlActionContext>())) 217.Callback<UrlActionContext>(param => 355.Setup(mock => mock.Action(It.IsAny<UrlActionContext>())) 356.Callback<UrlActionContext>(param => Assert.Equal(expectedRouteValues, param.Values as RouteValueDictionary))
FormTagHelperTest.cs (5)
94.Setup(mock => mock.Action(It.IsAny<UrlActionContext>())).Returns("home/index"); 207.Setup(mock => mock.Action(It.IsAny<UrlActionContext>())).Returns("home/index"); 265.Setup(mock => mock.Action(It.IsAny<UrlActionContext>())).Returns("home/index"); 329.Setup(mock => mock.Action(It.IsAny<UrlActionContext>())).Returns("home/index"); 591.Setup(mock => mock.Action(It.IsAny<UrlActionContext>())).Returns("home/index");
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
PageRemoteAttributeTest.cs (1)
239public string Action(UrlActionContext actionContext)
RemoteAttributeTest.cs (1)
514public string Action(UrlActionContext actionContext)
Rendering\HtmlHelperFormTest.cs (1)
232.Setup(realHelper => realHelper.Action(It.Is<UrlActionContext>((context) =>
Rendering\HtmlHelperLinkGenerationTest.cs (2)
61urlHelper.Setup(h => h.Action(It.IsAny<UrlActionContext>())) 62.Returns<UrlActionContext>((actionContext) =>