3 writes to Host
Microsoft.AspNetCore.Mvc.Core (2)
Routing\UrlHelperBase.cs (1)
61Host = ActionContext.HttpContext.Request.Host.ToUriComponent()
UrlHelperExtensions.cs (1)
344Host = host,
Microsoft.AspNetCore.Mvc.Core.Test (1)
Routing\UrlHelperTestBase.cs (1)
581Host = "remotetown",
15 references to Host
Microsoft.AspNetCore.Mvc.Abstractions (1)
IUrlHelper.cs (1)
85/// The value of <see cref="UrlRouteContext.Host" /> should be a trusted value. Relying on the value of the current request
Microsoft.AspNetCore.Mvc.Core (2)
Routing\EndpointRoutingUrlHelper.cs (1)
86return GenerateUrl(routeContext.Protocol, routeContext.Host, path);
Routing\UrlHelper.cs (1)
70return GenerateUrl(routeContext.Protocol, routeContext.Host, virtualPathData, routeContext.Fragment);
Microsoft.AspNetCore.Mvc.Core.Test (8)
Routing\UrlHelperExtensionsTest.cs (8)
47Assert.Null(actual.Host); 100Assert.Null(actual.Host); 133Assert.Null(actual.Host); 165Assert.Equal("mytesthost", actual.Host); 202Assert.Equal("mytesthost", actual.Host); 752Assert.Equal(expectedHost, actual.Host); 800Assert.Equal(expectedHost, actual.Host); 848Assert.Equal(expectedHost, actual.Host);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
FormActionTagHelperTest.cs (1)
279Assert.Null(param.Host);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
RemoteAttributeTest.cs (1)
538Assert.Null(routeContext.Host);
Rendering\HtmlHelperFormTest.cs (1)
285context.Host == null &&
Rendering\HtmlHelperLinkGenerationTest.cs (1)
137context.Host,