1 write to _baseUri
Microsoft.AspNetCore.Components (1)
17 references to _baseUri
Microsoft.AspNetCore.Components (17)
NavigationManager.cs (17)
58return _baseUri!.OriginalString;
86Validate(_baseUri, value);
219return new Uri(_baseUri!, relativeUri);
230if (uri.StartsWith(_baseUri!.OriginalString, StringComparison.Ordinal))
234return uri.Substring(_baseUri.OriginalString.Length);
239if (_baseUri.OriginalString.EndsWith('/') && uriPathOnly.Equals(_baseUri.OriginalString.AsSpan(0, _baseUri.OriginalString.Length - 1), StringComparison.Ordinal))
247return uri.Substring(_baseUri.OriginalString.Length - 1);
250var message = $"The URI '{uri}' is not contained by the base URI '{_baseUri}'.";
256if (MemoryExtensions.StartsWith(uri, _baseUri!.OriginalString.AsSpan(), StringComparison.Ordinal))
260return uri[_baseUri.OriginalString.Length..];
265if (_baseUri.OriginalString.EndsWith('/') && MemoryExtensions.Equals(uriPathOnly, _baseUri.OriginalString.AsSpan(0, _baseUri.OriginalString.Length - 1), StringComparison.Ordinal))
273return uri[(_baseUri.OriginalString.Length - 1)..];
276var message = $"The URI '{uri}' is not contained by the base URI '{_baseUri}'.";