18 references to GetLeftPart
Aspire.Dashboard (2)
Model\TargetLocationInterceptor.cs (1)
22
var targetBaseUri = new Uri(uri.
GetLeftPart
(UriPartial.Authority));
src\Shared\LoggingHelpers.cs (1)
24
var dashboardUrl = $"{firstDashboardUrl.
GetLeftPart
(UriPartial.Authority)}/login?t={token}";
Aspire.Hosting (2)
Backchannel\AppHostRpcTarget.cs (1)
159
var baseUrlWithLoginToken = $"{dashboardUri.
GetLeftPart
(UriPartial.Authority)}/login?t={dashboardOptions.Value.DashboardToken}";
src\Shared\LoggingHelpers.cs (1)
24
var dashboardUrl = $"{firstDashboardUrl.
GetLeftPart
(UriPartial.Authority)}/login?t={token}";
Microsoft.AspNetCore.Authentication.Test (8)
OpenIdConnect\OpenIdConnectEventTests.cs (1)
970
Assert.Equal("http://testhost/end", response.Headers.Location.
GetLeftPart
(UriPartial.Path));
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (1)
970
Assert.Equal("http://testhost/end", response.Headers.Location.
GetLeftPart
(UriPartial.Path));
WsFederation\WsFederationTest.cs (3)
83
Assert.Equal("https://login.windows.net/4afbc689-805b-48cf-a24c-d4aa3248a248/wsfed", response.Headers.Location.
GetLeftPart
(System.UriPartial.Path));
99
Assert.Equal("https://login.windows.net/4afbc689-805b-48cf-a24c-d4aa3248a248/wsfed", response.Headers.Location.
GetLeftPart
(System.UriPartial.Path));
115
Assert.Equal("https://login.windows.net/4afbc689-805b-48cf-a24c-d4aa3248a248/wsfed", response.Headers.Location.
GetLeftPart
(System.UriPartial.Path));
WsFederation\WsFederationTest_Handler.cs (3)
74
Assert.Equal("https://login.windows.net/4afbc689-805b-48cf-a24c-d4aa3248a248/wsfed", response.Headers.Location.
GetLeftPart
(System.UriPartial.Path));
90
Assert.Equal("https://login.windows.net/4afbc689-805b-48cf-a24c-d4aa3248a248/wsfed", response.Headers.Location.
GetLeftPart
(System.UriPartial.Path));
106
Assert.Equal("https://login.windows.net/4afbc689-805b-48cf-a24c-d4aa3248a248/wsfed", response.Headers.Location.
GetLeftPart
(System.UriPartial.Path));
Microsoft.Extensions.Http.Resilience (1)
Resilience\Internal\ByAuthorityPipelineKeyProvider.cs (1)
26
pipelineKey = url.
GetLeftPart
(UriPartial.Authority);
Microsoft.Extensions.Http.Resilience.Tests (2)
Resilience\HttpClientBuilderExtensionsTests.BySelector.cs (2)
73
.SelectPipelineBy(_ => r => r.RequestUri!.
GetLeftPart
(UriPartial.Scheme)).PipelineName;
79
.SelectPipelineBy(_ => r => r.RequestUri!.
GetLeftPart
(UriPartial.Scheme)).PipelineName;
PresentationCore (3)
MS\Internal\WpfWebRequestHelper.cs (1)
61
uri = new Uri(uri.
GetLeftPart
(UriPartial.Path));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
126
docstring = uri.
GetLeftPart
(UriPartial.Path);
System\Windows\Navigation\BaseUriHelper.cs (1)
445
baseUri = new Uri(uri.
GetLeftPart
(UriPartial.Authority), UriKind.Absolute);