195 references to TryCreate
Aspire.Azure.AI.OpenAI (3)
Aspire.Azure.Data.Tables (1)
Aspire.Azure.Messaging.WebPubSub (1)
Aspire.Azure.Search.Documents (2)
Aspire.Azure.Security.KeyVault (1)
Aspire.Azure.Storage.Blobs (1)
Aspire.Azure.Storage.Queues (1)
Aspire.Dashboard (4)
Aspire.Elastic.Clients.Elasticsearch (2)
Aspire.Hosting (2)
Aspire.Hosting.Azure.CosmosDB (1)
Aspire.Hosting.Azure.Storage (1)
Aspire.Hosting.Qdrant (2)
Aspire.Microsoft.Azure.Cosmos (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
Aspire.Milvus.Client (2)
Aspire.OpenAI (1)
Aspire.Qdrant.Client (2)
BuildActionTelemetryTable (1)
BuildBoss (1)
dotnet-openapi (1)
dotnet-svcutil.xmlserializer (2)
dotnet-svcutil-lib (27)
Metadata\MetadataDocumentLoader.cs (7)
269if (Uri.TryCreate(uri, UriKind.Absolute, out serviceUri) ||
270isUrl && Uri.TryCreate(baseUrl, UriKind.Absolute, out Uri baseUri) && Uri.TryCreate(baseUri, uri, out serviceUri) ||
271!isUrl && Uri.TryCreate(Path.Combine(basePath, uri), UriKind.Absolute, out serviceUri))
480if (Uri.TryCreate(schemaLocation, UriKind.Absolute, out schemaUri))
490if (Uri.TryCreate(Path.Combine(basePath, schemaLocation), UriKind.Absolute, out Uri schemaFile))
498if (schemaUri == null && Uri.TryCreate(baseUrl, UriKind.Absolute, out Uri baseUri))
557Uri.TryCreate(fullFileName, UriKind.Absolute, out schemaFile);
Metadata\MetadataFileNameManager.cs (7)
104if (Uri.TryCreate(ns, UriKind.RelativeOrAbsolute, out Uri nsUri))
200if (Uri.TryCreate(filePath1, UriKind.Absolute, out fileUri) || Uri.TryCreate(filePath1, UriKind.Relative, out fileUri))
211return Uri.TryCreate(filePath1, UriKind.Absolute, out uri1) && Uri.TryCreate(filePath2, UriKind.Absolute, out uri2) && StringComparer.OrdinalIgnoreCase.Compare(uri1.AbsoluteUri, uri2.AbsoluteUri) == 0 ||
212Uri.TryCreate(filePath1, UriKind.Relative, out uri1) && Uri.TryCreate(filePath2, UriKind.Relative, out uri2) && StringComparer.OrdinalIgnoreCase.Compare(uri1.ToString(), uri2.ToString()) == 0;
GenerateRulesMissingDocumentation (1)
Microsoft.AspNetCore.Authentication.WsFederation (1)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
Microsoft.AspNetCore.Components.WebView.Wpf (2)
Microsoft.AspNetCore.Cors (2)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.Http.Extensions (3)
Microsoft.AspNetCore.Http.Extensions.Tests (21)
RequestDelegateFactoryTests.cs (10)
402if (!Uri.TryCreate(value, UriKind.Absolute, out var uri))
420if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
441if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
457if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
480if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
498if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
514if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
533if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
546if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
564if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
RequestDelegateGenerator\SharedTypes.cs (11)
146if (!Uri.TryCreate(value, UriKind.Absolute, out var uri))
226if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
253if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
278if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
305if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
322if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
338if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
359if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
392if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
426if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
450if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
Microsoft.AspNetCore.Http.Microbenchmarks (11)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (11)
146if (!Uri.TryCreate(value, UriKind.Absolute, out var uri))
226if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
253if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
278if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
305if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
322if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
338if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
359if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
392if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
426if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
450if (!Uri.TryCreate(context.Request.Headers.Referer, UriKind.Absolute, out var uri))
Microsoft.AspNetCore.Mvc.Razor (1)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.Authentication.WebAssembly.Msal (2)
Microsoft.Build (3)
Microsoft.Build.Tasks.Core (3)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Git.IssueManager (3)
Microsoft.DotNet.SignCheck (1)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.ServiceDiscovery (4)
Microsoft.Extensions.ServiceDiscovery.Abstractions (2)
Microsoft.Maui (1)
Microsoft.Maui.Controls (3)
Microsoft.Maui.Controls.Build.Tasks (2)
Microsoft.Maui.Controls.Compatibility (1)
Microsoft.Maui.Controls.DesignTools (1)
Microsoft.Maui.Controls.Xaml (1)
Microsoft.ML.Core (1)
Microsoft.ML.Core.Tests (2)
Microsoft.VisualStudio.LanguageServices (3)
Microsoft.VisualStudio.LanguageServices.Xaml (1)
MSBuild (1)
PresentationCore (3)
PresentationFramework (1)
System.ComponentModel.TypeConverter (1)
System.Configuration.ConfigurationManager (1)
System.Diagnostics.Process (1)
System.IO.Packaging (1)
System.Net.Http (4)
System.Net.HttpListener (7)
System.Net.Mail (1)
System.Net.Primitives (2)
System.Net.Requests (2)
System.Net.Security (2)
System.Net.WebClient (1)
System.Private.DataContractSerialization (1)
System.Private.Uri (3)
System.Private.Xml (4)
System.Runtime.Serialization.Schema (1)
System.Security.Cryptography (2)
System.Text.Json (1)
System.Web.HttpUtility (1)
System.Xaml (1)