20 references to GetLeftPart
Aspire.Dashboard (2)
Model\TargetLocationInterceptor.cs (1)
22var targetBaseUri = new Uri(uri.GetLeftPart(UriPartial.Authority));
src\Shared\LoggingHelpers.cs (1)
23logger.LogInformation(message, $"{firstDashboardUrl.GetLeftPart(UriPartial.Authority)}/login?t={token}");
Aspire.Hosting (1)
src\Shared\LoggingHelpers.cs (1)
23logger.LogInformation(message, $"{firstDashboardUrl.GetLeftPart(UriPartial.Authority)}/login?t={token}");
Microsoft.AspNetCore.Authentication.Test (8)
OpenIdConnect\OpenIdConnectEventTests.cs (1)
970Assert.Equal("http://testhost/end", response.Headers.Location.GetLeftPart(UriPartial.Path));
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (1)
970Assert.Equal("http://testhost/end", response.Headers.Location.GetLeftPart(UriPartial.Path));
WsFederation\WsFederationTest.cs (3)
76Assert.Equal("https://login.windows.net/4afbc689-805b-48cf-a24c-d4aa3248a248/wsfed", response.Headers.Location.GetLeftPart(System.UriPartial.Path)); 92Assert.Equal("https://login.windows.net/4afbc689-805b-48cf-a24c-d4aa3248a248/wsfed", response.Headers.Location.GetLeftPart(System.UriPartial.Path)); 108Assert.Equal("https://login.windows.net/4afbc689-805b-48cf-a24c-d4aa3248a248/wsfed", response.Headers.Location.GetLeftPart(System.UriPartial.Path));
WsFederation\WsFederationTest_Handler.cs (3)
74Assert.Equal("https://login.windows.net/4afbc689-805b-48cf-a24c-d4aa3248a248/wsfed", response.Headers.Location.GetLeftPart(System.UriPartial.Path)); 90Assert.Equal("https://login.windows.net/4afbc689-805b-48cf-a24c-d4aa3248a248/wsfed", response.Headers.Location.GetLeftPart(System.UriPartial.Path)); 106Assert.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)
26pipelineKey = 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;
Microsoft.Extensions.ServiceDiscovery (1)
Http\HttpServiceEndpointResolver.cs (1)
42var key = request.RequestUri.GetLeftPart(UriPartial.Authority);
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
ServiceDiscoveryDestinationResolver.cs (1)
58var serviceName = originalUri.GetLeftPart(UriPartial.Authority);
PresentationCore (3)
MS\Internal\WpfWebRequestHelper.cs (1)
68uri = new Uri(uri.GetLeftPart(UriPartial.Path));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
127docstring = uri.GetLeftPart(UriPartial.Path);
System\Windows\Navigation\BaseUriHelper.cs (1)
453baseUri = new Uri(uri.GetLeftPart(UriPartial.Authority), UriKind.Absolute);
Templates.Blazor.Tests (1)
BlazorTemplateTest.cs (1)
173await page.GotoAsync(new Uri(page.Url).GetLeftPart(UriPartial.Authority));