Base:
method
ToString
System.ValueType.ToString()
422 references to ToString
aspire (2)
Projects\DotNetBasedAppHostServerProject.cs (1)
94_userSecretsId = new Guid(pathHash[..16]).ToString();
src\Shared\UserSecrets\IsolatedUserSecretsHelper.cs (1)
32var isolatedUserSecretsId = Guid.NewGuid().ToString();
Aspire.Azure.Messaging.EventHubs (1)
EventHubsComponent.cs (1)
79var slug = Guid.NewGuid().ToString().Substring(24);
Aspire.Azure.Messaging.EventHubs.Tests (2)
AspireEventHubsExtensionsTests.cs (1)
627ClientRequestId = Guid.NewGuid().ToString(),
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (1)
75ClientRequestId = Guid.NewGuid().ToString();
Aspire.Azure.Security.KeyVault.Tests (2)
AspireKeyVaultExtensionsTests.cs (1)
153ClientRequestId = Guid.NewGuid().ToString(),
MockTransport.cs (1)
75ClientRequestId = Guid.NewGuid().ToString();
Aspire.Azure.Storage.Blobs.Tests (1)
ConformanceTests.cs (1)
115string containerName = Guid.NewGuid().ToString();
Aspire.Azure.Storage.Files.DataLake.Tests (1)
ConformanceTests.cs (1)
106var fileSystemsName = Guid.NewGuid().ToString();
Aspire.Azure.Storage.Queues.Tests (1)
ConformanceTests.cs (1)
116string queueName = Guid.NewGuid().ToString();
Aspire.Cli.EndToEnd.Tests (1)
tests\Shared\TemporaryRepo.cs (1)
61var path = Path.Combine(tempPath, "Aspire.Cli.Tests", "TemporaryWorkspaces", Guid.NewGuid().ToString());
Aspire.Cli.Tests (22)
Agents\VsCodeAgentEnvironmentScannerTests.cs (1)
395homeDirectory ??= new DirectoryInfo(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()));
Commands\RunCommandTests.cs (1)
1345var originalUserSecretsId = Guid.NewGuid().ToString();
Commands\TelemetryCommandTests.cs (2)
185var guidStr = guid.ToString(); 198yield return [MakeResource("worker", guidStr), new IOtlpResource[] { new SimpleOtlpResource("worker", guidStr), new SimpleOtlpResource("worker", Guid.NewGuid().ToString()) }, $"worker-{guid:N}"[..15]];
Commands\TelemetryLogsCommandTests.cs (4)
93new ResourceInfoJson { Name = "apiservice", InstanceId = guid1.ToString() }, 94new ResourceInfoJson { Name = "apiservice", InstanceId = guid2.ToString() }, 99("apiservice", guid1.ToString(), 9, "Information", "Hello from replica 1", s_testTime), 100("apiservice", guid2.ToString(), 13, "Warning", "Slow response from replica 2", s_testTime.AddSeconds(1)))
Commands\TelemetrySpansCommandTests.cs (4)
93new ResourceInfoJson { Name = "apiservice", InstanceId = guid1.ToString() }, 94new ResourceInfoJson { Name = "apiservice", InstanceId = guid2.ToString() }, 99("apiservice", guid1.ToString(), "span001", "GET /api/products", s_testTime, s_testTime.AddMilliseconds(75), false), 100("apiservice", guid2.ToString(), "span002", "POST /api/orders", s_testTime.AddMilliseconds(10), s_testTime.AddMilliseconds(60), true))
Commands\TelemetryTracesCommandTests.cs (4)
109new ResourceInfoJson { Name = "apiservice", InstanceId = guid1.ToString() }, 110new ResourceInfoJson { Name = "apiservice", InstanceId = guid2.ToString() }, 115("abc1234567890def", "apiservice", guid1.ToString(), "span001", s_testTime, s_testTime.AddMilliseconds(75), false), 116("def9876543210abc", "apiservice", guid2.ToString(), "span002", s_testTime.AddMilliseconds(10), s_testTime.AddMilliseconds(60), true))
tests\Shared\TemporaryRepo.cs (1)
61var path = Path.Combine(tempPath, "Aspire.Cli.Tests", "TemporaryWorkspaces", Guid.NewGuid().ToString());
TestServices\TestProjectLocator.cs (1)
30var fakeProjectFilePath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString(), "AppHost.csproj");
Utils\IsolatedUserSecretsHelperTests.cs (4)
48var nonExistentId = Guid.NewGuid().ToString(); 59var sourceId = Guid.NewGuid().ToString(); 101var nonExistentId = Guid.NewGuid().ToString(); 112var secretId = Guid.NewGuid().ToString();
Aspire.Dashboard (1)
Model\DashboardCommandExecutor.cs (1)
106Id = Guid.NewGuid().ToString(),
Aspire.Dashboard.Components.Tests (1)
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
37Uid = Guid.NewGuid().ToString(),
Aspire.Dashboard.Tests (2)
Model\SpanWaterfallViewModelTests.cs (1)
186var attributes = presentAttributeNames.Select(n => new KeyValuePair<string, string>(n, Guid.NewGuid().ToString())).ToArray();
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
37Uid = Guid.NewGuid().ToString(),
Aspire.Deployment.EndToEnd.Tests (1)
tests\Shared\TemporaryRepo.cs (1)
61var path = Path.Combine(tempPath, "Aspire.Cli.Tests", "TemporaryWorkspaces", Guid.NewGuid().ToString());
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (1)
10private static readonly string s_tmpDirSuffix = Guid.NewGuid().ToString()[..8];
Aspire.Hosting (3)
Pipelines\PipelineActivityReporter.cs (3)
43var step = new ReportingStep(this, Guid.NewGuid().ToString(), title); 77var task = new ReportingTask(Guid.NewGuid().ToString(), step.Id, statusText, parentStep); 182Id = Guid.NewGuid().ToString(),
Aspire.Hosting.Azure (3)
Provisioning\BicepUtilities.cs (1)
53Guid g => g.ToString(),
Provisioning\Internal\BaseProvisioningContextProvider.cs (1)
218var tenantId = t.TenantId?.ToString() ?? "";
Provisioning\Internal\DefaultArmClientProvider.cs (1)
89if (subscription.Data.TenantId?.ToString().Equals(tenantId, StringComparison.OrdinalIgnoreCase) == true)
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryHelpers.cs (1)
44var tenantId = provisioningContext.Tenant.TenantId?.ToString()
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
278ClientRequestId = Guid.NewGuid().ToString(),
Aspire.Hosting.Azure.Tests (8)
AzureDeployerTests.cs (1)
1566var appHostSha = Guid.NewGuid().ToString();
AzureStorageEmulatorFunctionalTests.cs (2)
239var blobNameAndContent = Guid.NewGuid().ToString(); 279var blobNameAndContent = Guid.NewGuid().ToString();
DefaultUserPrincipalProviderTests.cs (3)
102oid = oid.ToString(), 125oid = oid.ToString(), 195oid = oid.ToString(),
ProvisioningTestHelpers.cs (2)
459public override string Id { get; } = Guid.NewGuid().ToString(); 524public override string ClientRequestId { get; set; } = Guid.NewGuid().ToString();
Aspire.Hosting.Maui (1)
MauiPlatformHelper.cs (1)
137var instanceId = Guid.NewGuid().ToString(); // Generate unique instance ID
Aspire.Hosting.PostgreSQL.Tests (1)
PostgresFunctionalTests.cs (1)
174client.DefaultRequestHeaders.Add("x-session-id", Guid.NewGuid().ToString());
Aspire.Hosting.Tests (3)
ManifestGenerationTests.cs (2)
703var manifestPath = Path.Combine(Path.GetTempPath(), "tempmanifests", Guid.NewGuid().ToString(), "manifest.json"); 709var manifestPath = Path.Combine(Path.GetTempPath(), "tempmanifests", Guid.NewGuid().ToString(), "manifest.json");
Utils\DockerfileUtils.cs (1)
51var dockerfileContent = dockerfileTemplate.Replace("!!!CACHEBUSTER!!!", cacheBuster.ToString());
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (2)
AspireAppConfigurationExtensionsTest.cs (1)
121ClientRequestId = Guid.NewGuid().ToString(),
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (1)
75ClientRequestId = Guid.NewGuid().ToString();
Aspire.StackExchange.Redis.Tests (1)
ConformanceTests.cs (1)
102string id = Guid.NewGuid().ToString();
Aspire.Templates.Tests (2)
TemplateTestsBase.cs (1)
166string screenshotPath = Path.Combine(logPath, $"dashboard-fail-{Guid.NewGuid().ToString()[..8]}.png");
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (1)
10private static readonly string s_tmpDirSuffix = Guid.NewGuid().ToString()[..8];
AzureAppService.ApiService (1)
Program.cs (1)
39var blobNameAndContent = Guid.NewGuid().ToString();
AzureContainerApps.ApiService (1)
Program.cs (1)
44var blobNameAndContent = Guid.NewGuid().ToString();
AzureFunctionsEndToEnd.ApiService (1)
Program.cs (1)
48var blob = container.GetBlobClient(entry.Id.ToString());
AzureStorageEndToEnd.ApiService (1)
Program.cs (1)
24var blobNameAndContent = Guid.NewGuid().ToString();
AzureVirtualNetworkEndToEnd.ApiService (1)
Program.cs (1)
25var blobNameAndContent = Guid.NewGuid().ToString();
BasketService (2)
BasketService.cs (2)
56Id = Guid.NewGuid().ToString(), 115Id = item.Id ?? Guid.NewGuid().ToString(),
BicepSample.ApiService (3)
Program.cs (3)
125var blob = container.GetBlobClient(entry.Id.ToString()); 149var tableEntry = new TableEntity(entry.Id.ToString(), entry.Id.ToString())
CdkSample.ApiService (1)
Program.cs (1)
92var blobNameAndContent = Guid.NewGuid().ToString();
Contract.Data.IntegrationTests (2)
DataContractTests.4.1.0.cs (2)
80Assert.True((guid.ToString() == returnedType.StringValue), String.Format("The Guid to string value sent was not the same as what was returned.\nSent: {0}\nReturned: {1}", guid.ToString(), returnedType.StringValue));
CosmosEndToEnd.ApiService (2)
Program.cs (2)
52var newEntry = new Entry() { Id = Guid.NewGuid().ToString() }; 67UserId = Guid.NewGuid().ToString(),
csc (1)
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
219var requestId = Guid.NewGuid().ToString();
dotnet (7)
Commands\Solution\Add\SolutionAddCommand.cs (1)
186string projectTypeGuid = solution.ProjectTypes.FirstOrDefault(t => t.Extension == Path.GetExtension(fullProjectPath))?.ProjectTypeId.ToString()
ReleasePropertyProjectLocator.cs (2)
240return project.TypeId.ToString() == SolutionFolderGuid || project.TypeId.ToString() == SharedProjectGuid || !IsValidProjectFilePath(projectFullPath);
Telemetry\TelemetryClient.cs (2)
206CurrentSessionId ??= !string.IsNullOrEmpty(initialSessionId) ? initialSessionId : Guid.NewGuid().ToString(); 358properties.Add("event id", Guid.NewGuid().ToString());
Telemetry\TelemetryCommonProperties.cs (2)
87return _getMACAddress() is { } macAddress ? _hasher(macAddress) : Guid.NewGuid().ToString(); 91return Guid.NewGuid().ToString();
dotnet-aot (4)
src\sdk\src\Cli\dotnet\Telemetry\TelemetryClient.cs (2)
206CurrentSessionId ??= !string.IsNullOrEmpty(initialSessionId) ? initialSessionId : Guid.NewGuid().ToString(); 358properties.Add("event id", Guid.NewGuid().ToString());
src\sdk\src\Cli\dotnet\Telemetry\TelemetryCommonProperties.cs (2)
87return _getMACAddress() is { } macAddress ? _hasher(macAddress) : Guid.NewGuid().ToString(); 91return Guid.NewGuid().ToString();
dotnet-sourcelink (2)
dotnet-svcutil-lib (14)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (2)
3987return v.ToString(); 4124return v.ToString();
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (1)
890return value.ToString();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlWriterDelegator.cs (1)
618writer.WriteRaw(value.ToString());
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (1)
426static public string ToString(Guid value) { return value.ToString(); }
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryWriter.cs (1)
181WriteString(value.ToString());
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextWriter.cs (1)
732WriteText(value.ToString());
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUniqueId.cs (1)
13private static string s_commonPrefix = "uuid-" + Guid.NewGuid().ToString() + "-";
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SamlAssertion.cs (1)
23private string _assertionId = /*TODO: SamlConstants.AssertionIdPrefix*/ "SamlSecurityToken-" + Guid.NewGuid().ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UriGenerator.cs (1)
33_prefix = string.Concat(scheme, ":", Guid.NewGuid().ToString(), delimiter, "id=");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceEndpoint.cs (1)
166_id = Guid.NewGuid().ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\ActivityIdHeader.cs (1)
125writer.WriteAttributeString("CorrelationId", _headerId.ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\ServiceModelActivity.cs (1)
369return this.Id.ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (1)
1016private static string s_commonPrefix = "uuid-" + Guid.NewGuid().ToString() + "-";
dotnet-user-jwts (2)
Helpers\JwtIssuer.cs (1)
31var id = Guid.NewGuid().ToString().GetHashCode().ToString("x", CultureInfo.InvariantCulture);
src\aspnetcore\src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
22? Guid.NewGuid().ToString()
dotnet-user-secrets (1)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
22? Guid.NewGuid().ToString()
DotnetTool.AppHost (1)
AppHost.cs (1)
55var fakeSourcesPath = Path.Combine(Path.GetTempPath(), "does-not-exist", Guid.NewGuid().ToString());
ILCompiler.ReadyToRun (1)
ObjectWriter\SymbolFileBuilder.cs (1)
45mvidComponent = inputAssembly.Mvid.ToString();
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
35var id = Guid.NewGuid().ToString();
Microsoft.AspNetCore.Connections.Abstractions (1)
DefaultConnectionContext.cs (1)
34this(Guid.NewGuid().ToString())
Microsoft.AspNetCore.DataProtection (3)
Repositories\FileSystemXmlRepository.cs (2)
124var newFriendlyName = Guid.NewGuid().ToString(); 140var tempFilename = Path.Combine(Directory.FullName, Guid.NewGuid().ToString() + ".tmp");
Repositories\RegistryXmlRepository.cs (1)
142var newFriendlyName = Guid.NewGuid().ToString();
Microsoft.AspNetCore.Identity.EntityFrameworkCore (3)
RoleStore.cs (1)
152role.ConcurrencyStamp = Guid.NewGuid().ToString();
UserOnlyStore.cs (1)
215user.ConcurrencyStamp = Guid.NewGuid().ToString();
UserStore.cs (1)
219user.ConcurrencyStamp = Guid.NewGuid().ToString();
Microsoft.AspNetCore.Mvc.Abstractions (1)
Abstractions\ActionDescriptor.cs (1)
20Id = Guid.NewGuid().ToString();
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponents\ViewComponentDescriptor.cs (1)
22Id = Guid.NewGuid().ToString();
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
604_traceIdentitfier = TraceIdentifier.ToString();
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.IHttpRequestIdentifierFeature.cs (1)
36TraceIdentifier = guid.ToString();
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
90var folderId = Guid.NewGuid().ToString();
Microsoft.AspNetCore.Session (3)
DistributedSession.cs (2)
101_sessionId = new Guid(IdBytes).ToString(); 355_sessionId = new Guid(_sessionIdBytes).ToString();
SessionMiddleware.cs (1)
75return new Guid(guidBytes).ToString();
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\aspnetcore\src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
46Connection = new DefaultConnectionContext(Guid.NewGuid().ToString(), pair.Transport, pair.Application);
Microsoft.AspNetCore.Testing (1)
FakeSslCertificateFactory.cs (1)
52new CspParameters(24, "Microsoft Enhanced RSA and AES Cryptographic Provider", Guid.NewGuid().ToString()))
Microsoft.AspNetCore.WebUtilities (1)
FileBufferingReadStream.cs (1)
243_tempFileName = Path.Combine(_tempFileDirectory, "ASPNETCORE_" + Guid.NewGuid().ToString() + ".tmp");
Microsoft.Build (1)
BackEnd\BuildManager\BuildManager.cs (1)
691_coordinatorClient.GrantId.ToString());
Microsoft.Build.Framework (4)
AssemblyLoadBuildEventArgs.cs (1)
85RawMessage = FormatResourceStringIgnoreCodeAndKeyword(resourceName, LoadingContext.ToString(), loadingInitiator, AssemblyName, AssemblyPath, MVID.ToString(), AppDomainDescriptor ?? DefaultAppDomainDescriptor);
Telemetry\BuildCheckTelemetry.cs (3)
26properties["SubmissionId"] = _submissionId.ToString(); 56properties["SubmissionId"] = _submissionId.ToString(); 67properties["SubmissionId"] = _submissionId.ToString();
Microsoft.CodeAnalysis (7)
CommandLine\CommonCompiler.CompilerEmitStreamProvider.cs (1)
81var newFilePath = Path.Combine(Path.GetDirectoryName(_filePath)!, Guid.NewGuid().ToString() + "_" + Path.GetFileName(_filePath));
CommandLine\CommonCompiler.cs (1)
868sb.Builder.Append(type.Assembly.ManifestModule.ModuleVersionId.ToString());
DiagnosticAnalyzer\AnalyzerImageReference.cs (1)
34_id = Guid.NewGuid().ToString();
PEWriter\MetadataWriter.cs (1)
3371Debug.Assert(guidStringLength == default(Guid).ToString().Length);
PEWriter\PeWriter.cs (1)
359writer.WriteUserString(mvid.ToString());
SourceGeneration\GeneratorTimerExtensions.cs (2)
20var id = Guid.NewGuid().ToString(); 34var id = Guid.NewGuid().ToString();
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
1603: new MissingNamespaceSymbol(new MissingModuleSymbol(new MissingAssemblySymbol(new AssemblyIdentity(System.Guid.NewGuid().ToString())), ordinal: -1));
Microsoft.CodeAnalysis.Features (3)
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
154var projectGuid = project.Id.Id.ToString();
FindUsages\DefinitionItemFactory.cs (1)
155.Add(DefinitionItem.MetadataSymbolOriginatingProjectIdGuid, originatingProjectId.Id.ToString())
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
230var tempFilePath = Path.Combine(tempPath, projectId.Id.ToString());
Microsoft.CodeAnalysis.Scripting (3)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (2)
87_baseDirectory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 512string dir = Path.Combine(basePath, Guid.NewGuid().ToString());
ScriptBuilder.cs (1)
57s_globalAssemblyNamePrefix = "\u211B*" + Guid.NewGuid().ToString();
Microsoft.CodeAnalysis.Workspaces (4)
CodeActions\CodeAction.cs (1)
42internal static readonly string CanBeHighPriorityTag = Guid.NewGuid().ToString();
Serialization\SerializedPortableExecutableReference.cs (1)
66Guids={modules.Select(m => GetMetadataGuid(m).ToString()).Join(",")}
TemporaryStorage\TrivialTemporaryStorageService.cs (2)
49Identifier = new TemporaryStorageIdentifier(Guid.NewGuid().ToString(), 0, _stream.Length); 69Identifier = new TemporaryStorageIdentifier(Guid.NewGuid().ToString(), 0, _sourceText.Length);
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\BuildHostProcessManager.cs (1)
118var pipeName = Guid.NewGuid().ToString();
MSBuild\SolutionFileReader.cs (1)
73builder.Add((absoluteProjectPath, projectModel.Id.ToString()));
Microsoft.DotNet.Arcade.Sdk (1)
src\ExtractNgenMethodList.cs (1)
80? GetAssemblyMvid().ToString()
Microsoft.DotNet.Build.Tasks.Installers (2)
src\CreateWixBuildWixpack.cs (1)
98WixpackWorkingDir = Path.Combine(Path.GetTempPath(), "WixpackTemp", Guid.NewGuid().ToString().Split('-')[0]);
src\GenerateGuidFromName.cs (1)
47GeneratedGuid = (new Guid(res)).ToString();
Microsoft.DotNet.NuGetRepack.Tasks (3)
src\NuGetVersionUpdater.cs (2)
66tempDirectoryOpt = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 116tempPathOpt = Path.Combine(tempDirectoryOpt, Guid.NewGuid().ToString());
src\ReplacePackageParts.cs (1)
110string tempPackagePath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Microsoft.Extensions.AI (1)
ChatCompletion\ImageGeneratingChatClient.cs (1)
501imageId = imageContent.Name ?? Guid.NewGuid().ToString();
Microsoft.Extensions.AI.Evaluation.Console (1)
Telemetry\TelemetryHelper.cs (1)
59_telemetryClient.Context.Session.Id = Guid.NewGuid().ToString();
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (4)
ScenarioRunResultTests.cs (4)
70cacheKey: Guid.NewGuid().ToString(), 78cacheKey: Guid.NewGuid().ToString(), 162cacheKey: Guid.NewGuid().ToString(), 170cacheKey: Guid.NewGuid().ToString(),
Microsoft.Extensions.AI.Integration.Tests (8)
ChatClientIntegrationTests.cs (6)
217var sourceName = Guid.NewGuid().ToString(); 284var sourceName = Guid.NewGuid().ToString(); 316var sourceName = Guid.NewGuid().ToString(); 348var sourceName = Guid.NewGuid().ToString(); 405var sourceName = Guid.NewGuid().ToString(); 930var sourceName = Guid.NewGuid().ToString();
EmbeddingGeneratorIntegrationTests.cs (1)
109string sourceName = Guid.NewGuid().ToString();
PromptBasedFunctionCallingChatClient.cs (1)
117var id = Guid.NewGuid().ToString().Substring(0, 6);
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (1)
2014var sourceName = Guid.NewGuid().ToString();
OpenAIResponseClientTests.cs (1)
6756var sourceName = Guid.NewGuid().ToString();
Microsoft.Extensions.AI.Tests (62)
ChatCompletion\FunctionInvokingChatClientTests.cs (12)
1095string sourceName = Guid.NewGuid().ToString(); 1676string agentSourceName = Guid.NewGuid().ToString(); 1677string clientSourceName = Guid.NewGuid().ToString(); 1724string agentSourceName = Guid.NewGuid().ToString(); 1725string clientSourceName = Guid.NewGuid().ToString(); 1787string agentSourceName = Guid.NewGuid().ToString(); 1788string clientSourceName = Guid.NewGuid().ToString(); 1829string agentSourceName = Guid.NewGuid().ToString(); 1830string clientSourceName = Guid.NewGuid().ToString(); 1879string agentSourceName = Guid.NewGuid().ToString(); 1880string clientSourceName = Guid.NewGuid().ToString(); 1952string clientSourceName = Guid.NewGuid().ToString();
ChatCompletion\OpenTelemetryChatClientTests.cs (9)
29var sourceName = Guid.NewGuid().ToString(); 392var sourceName = Guid.NewGuid().ToString(); 576var sourceName = Guid.NewGuid().ToString(); 646var sourceName = Guid.NewGuid().ToString(); 811var sourceName = Guid.NewGuid().ToString(); 898var sourceName = Guid.NewGuid().ToString(); 968var sourceName = Guid.NewGuid().ToString(); 1007var sourceName = Guid.NewGuid().ToString(); 1079using var parentSource = new ActivitySource(Guid.NewGuid().ToString());
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (2)
23var sourceName = Guid.NewGuid().ToString(); 101var sourceName = Guid.NewGuid().ToString();
Files\OpenTelemetryHostedFileClientTests.cs (15)
31var sourceName = Guid.NewGuid().ToString(); 84var sourceName = Guid.NewGuid().ToString(); 124var sourceName = Guid.NewGuid().ToString(); 172var sourceName = Guid.NewGuid().ToString(); 221var sourceName = Guid.NewGuid().ToString(); 258var sourceName = Guid.NewGuid().ToString(); 293var sourceName = Guid.NewGuid().ToString(); 339var sourceName = Guid.NewGuid().ToString(); 355var sourceName = Guid.NewGuid().ToString(); 384var sourceName = Guid.NewGuid().ToString(); 419var sourceName = Guid.NewGuid().ToString(); 454var sourceName = Guid.NewGuid().ToString(); 489var sourceName = Guid.NewGuid().ToString(); 527var sourceName = Guid.NewGuid().ToString(); 564var sourceName = Guid.NewGuid().ToString();
Functions\AIFunctionFactoryTest.cs (1)
1219AIFunction f = AIFunctionFactory.Create((Guid g = default, StructWithDefaultCtor s = default) => g.ToString() + "," + s.Value.ToString(), serializerOptions: JsonContext.Default.Options);
Image\OpenTelemetryImageGeneratorTests.cs (2)
30var sourceName = Guid.NewGuid().ToString(); 174var sourceName = Guid.NewGuid().ToString();
Realtime\OpenTelemetryRealtimeClientTests.cs (17)
26var sourceName = Guid.NewGuid().ToString(); 198var sourceName = Guid.NewGuid().ToString(); 253var sourceName = Guid.NewGuid().ToString(); 326var sourceName = Guid.NewGuid().ToString(); 391var sourceName = Guid.NewGuid().ToString(); 444var sourceName = Guid.NewGuid().ToString(); 487var sourceName = Guid.NewGuid().ToString(); 530var sourceName = Guid.NewGuid().ToString(); 615var sourceName = Guid.NewGuid().ToString(); 658var sourceName = Guid.NewGuid().ToString(); 701var sourceName = Guid.NewGuid().ToString(); 743var sourceName = Guid.NewGuid().ToString(); 785var sourceName = Guid.NewGuid().ToString(); 826var sourceName = Guid.NewGuid().ToString(); 867var sourceName = Guid.NewGuid().ToString(); 908var sourceName = Guid.NewGuid().ToString(); 949var sourceName = Guid.NewGuid().ToString();
SpeechToText\OpenTelemetrySpeechToTextClientTests.cs (2)
35var sourceName = Guid.NewGuid().ToString(); 158var sourceName = Guid.NewGuid().ToString();
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (2)
32var sourceName = Guid.NewGuid().ToString(); 138var sourceName = Guid.NewGuid().ToString();
Microsoft.Extensions.AmbientMetadata.Build.Tests (3)
BuildMetadataServiceCollectionExtensionsTests.cs (2)
41BuildId = Guid.NewGuid().ToString(), 77BuildId = Guid.NewGuid().ToString(),
BuildMetadataTests.cs (1)
35var id = Guid.NewGuid().ToString();
Microsoft.Extensions.Caching.Hybrid.Tests (6)
L2Tests.cs (1)
20return Guid.NewGuid().ToString();
ServiceConstructionTests.cs (2)
433var expected = Guid.NewGuid().ToString(); 446var expected = Guid.NewGuid().ToString();
SizeTests.cs (2)
67actual = await cache.GetOrCreateAsync<string>(key!, ct => new(Guid.NewGuid().ToString())); 130actual = await cache.GetOrCreateAsync<MutablePoco>(key!, ct => new(new MutablePoco { Value = Guid.NewGuid().ToString() }));
StampedeTests.cs (1)
462var key = new DefaultHybridCache.StampedeKey(Guid.NewGuid().ToString(), default);
Microsoft.Extensions.Compliance.Abstractions.Tests (5)
Redaction\RedactorTest.cs (5)
116string data = Guid.NewGuid().ToString(); 131var data = Guid.NewGuid().ToString(); 152var data = Guid.NewGuid().ToString(); 170var data = Guid.NewGuid().ToString(); 252Assert.Equal(data.ToString(), new string(buffer, 0, charsWritten));
Microsoft.Extensions.Compliance.Redaction.Tests (1)
HmacRedactorTest.cs (1)
69var toRedact = Guid.NewGuid().ToString();
Microsoft.Extensions.DataIngestion.Tests (3)
Writers\VectorStoreWriterTests.cs (3)
18string documentId = Guid.NewGuid().ToString(); 63string documentId = Guid.NewGuid().ToString(); 123string documentId = Guid.NewGuid().ToString();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (7)
Linux\LinuxUtilizationProviderTests.cs (6)
33var meterName = Guid.NewGuid().ToString(); 117var meterName = Guid.NewGuid().ToString(); 190var meterName = Guid.NewGuid().ToString(); 237var meterName = Guid.NewGuid().ToString(); 310var meterName = Guid.NewGuid().ToString(); 377var meterName = Guid.NewGuid().ToString();
Providers\ConditionallyFaultProvider.cs (1)
31throw new InvalidOperationException(_errorGuid.ToString());
Microsoft.Extensions.Diagnostics.Testing.Tests (24)
Metrics\MeasurementExtensionsTests.cs (11)
17using var meter = new Meter(Guid.NewGuid().ToString()); 42using var meter = new Meter(Guid.NewGuid().ToString()); 67using var meter = new Meter(Guid.NewGuid().ToString()); 95using var meter = new Meter(Guid.NewGuid().ToString()); 126using var meter = new Meter(Guid.NewGuid().ToString()); 143using var meter = new Meter(Guid.NewGuid().ToString()); 160using var meter = new Meter(Guid.NewGuid().ToString()); 177using var meter = new Meter(Guid.NewGuid().ToString()); 194using var meter = new Meter(Guid.NewGuid().ToString()); 211using var meter = new Meter(Guid.NewGuid().ToString()); 228using var meter = new Meter(Guid.NewGuid().ToString());
Metrics\MetricCollectorTests.cs (13)
21Assert.Throws<ArgumentNullException>(() => new MetricCollector<long>(new Meter(Guid.NewGuid().ToString()), null!)); 25Assert.Throws<ArgumentException>(() => new MetricCollector<long>(new Meter(Guid.NewGuid().ToString()), string.Empty)); 33using var meter = new Meter(Guid.NewGuid().ToString()); 48using var meter = new Meter(Guid.NewGuid().ToString()); 94using var meter = new Meter(Guid.NewGuid().ToString()); 140using var meter = new Meter(Guid.NewGuid().ToString(), null, null, scope); 188using var meter = new Meter(Guid.NewGuid().ToString()); 241using var meter = new Meter(Guid.NewGuid().ToString()); 279using var meter = new Meter(Guid.NewGuid().ToString()); 305using var meter = new Meter(Guid.NewGuid().ToString()); 337using var meter = new Meter(Guid.NewGuid().ToString()); 352using var meter = new Meter(Guid.NewGuid().ToString()); 390using var meter = new Meter(Guid.NewGuid().ToString());
Microsoft.Extensions.Hosting.Testing.Tests (1)
HostingFakesExtensionsTests.cs (1)
313var message = Guid.NewGuid().ToString();
Microsoft.Extensions.Identity.Core (1)
UserManager.cs (1)
473return Task.FromResult(Guid.NewGuid().ToString());
Microsoft.Extensions.Identity.Stores (5)
IdentityRole.cs (2)
21Id = Guid.NewGuid().ToString(); 75public virtual string? ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString();
IdentityUser.cs (3)
21Id = Guid.NewGuid().ToString(); 22SecurityStamp = Guid.NewGuid().ToString(); 106public virtual string? ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString();
Microsoft.Extensions.Telemetry.PerformanceTests (1)
ModernCodeGen.cs (1)
57state.TagArray[1] = new("guid", guid.ToString());
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
GeneratorTests.cs (1)
140var outputPath = Guid.NewGuid().ToString();
Microsoft.Gen.Logging.Generated.Tests (2)
LogPropertiesTests.cs (2)
128Assert.Equal(props.P3.ToString(), state!.GetValue("p.P3")); 568var recordToLog = new MyReadonlyRecordStruct(int.MaxValue, Guid.NewGuid().ToString());
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
GeneratorTests.cs (1)
168var outputPath = Guid.NewGuid().ToString();
Microsoft.Gen.MetricsReports.Unit.Tests (1)
GeneratorTests.cs (1)
121var outputPath = Guid.NewGuid().ToString();
Microsoft.ML.Core (2)
ComponentModel\AssemblyLoadingUtils.cs (1)
113return Path.GetFullPath(Path.Combine(Path.GetTempPath(), "MLNET_" + guid.ToString()));
Utilities\ResourceManagerUtils.cs (1)
263string tempPath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(path), "temp-resource-" + guid.ToString()));
Microsoft.ML.Tests (4)
ImagesTests.cs (1)
1282string imageTempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString() + extension);
OnnxConversionTest.cs (3)
647string modelPath = Path.GetTempPath() + Guid.NewGuid().ToString() + ".model.bin"; 648string onnxPath = Path.GetTempPath() + Guid.NewGuid().ToString() + ".model.onnx"; 649string onnxJsonPath = Path.GetTempPath() + Guid.NewGuid().ToString() + ".model.onnx.json";
Microsoft.ML.Tokenizers.Data.Tests (1)
test\Microsoft.ML.Tokenizers.Tests\Utils.cs (1)
53Path.Combine(Path.GetTempPath(), Path.ChangeExtension(Guid.NewGuid().ToString(), extension));
Microsoft.ML.Tokenizers.Tests (1)
Utils.cs (1)
53Path.Combine(Path.GetTempPath(), Path.ChangeExtension(Guid.NewGuid().ToString(), extension));
Microsoft.ML.Vision (1)
DnnRetrainTransform.cs (1)
417var archivePath = Path.Combine(variablesPath + "-" + Guid.NewGuid().ToString());
Microsoft.NET.Build.Tasks (1)
GenerateClsidMap.cs (1)
53Log.LogError(Strings.ClsidMapConflictingGuids, conflictingGuid.TypeName1, conflictingGuid.TypeName2, conflictingGuid.Guid.ToString());
Microsoft.NET.Sdk.Publish.Tasks (2)
MsDeploy\VsMSDeployObject.cs (1)
89if (string.Equals(Guid.Empty.ToString(), vSMSDeployObject.UserName, StringComparison.OrdinalIgnoreCase))
Tasks\Http\HttpClientExtensions.cs (1)
16private static readonly string s_azureADUserName = Guid.Empty.ToString();
Microsoft.TemplateEngine.Cli (2)
Commands\BaseCommand.cs (2)
215.DefineColumn(mp => mp.Id.ToString(), LocalizableStrings.MountPointFactories, showAlways: true) 226.DefineColumn(g => g.Id.ToString(), LocalizableStrings.Generators, showAlways: true)
Microsoft.TemplateEngine.Edge (1)
Settings\ComponentManager.cs (1)
218_settings.ComponentGuidToAssemblyQualifiedName[instance.Id.ToString()] = type.AssemblyQualifiedName;
Microsoft.TemplateSearch.Common (1)
TemplateSearchCache\TemplateSearchData.Json.cs (1)
189writer.WriteStringValue(guid.ToString());
Microsoft.TestPlatform.CommunicationUtilities (1)
Serialization\TestCaseConverter.cs (1)
145writer.WriteStringValue(value.Id.ToString());
Microsoft.TestPlatform.CrossPlatEngine (1)
DataCollection\InProcDataCollectionSink.cs (1)
29ValidateArg.NotNullOrEmpty(dataCollectionContext?.TestCase?.Id.ToString(), "dataCollectionContext.TestCase.Id");
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameCollector.cs (1)
714_tempDirectory = Path.Combine(temp, Guid.NewGuid().ToString());
Microsoft.TestPlatform.PlatformAbstractions (1)
common\Tracing\RollingFileTraceListener.cs (1)
302archiveFileName += Guid.NewGuid().ToString();
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
1041Return entry.ManifestModule.ModuleVersionId.ToString()
Microsoft.VisualStudio.TestPlatform.Common (6)
DataCollection\DataCollectionAttachmentManager.cs (3)
108SessionOutputDirectory = Path.Combine(Path.GetTempPath(), DefaultOutputDirectoryName, id.Id.ToString()); 115SessionOutputDirectory = Path.Combine(absolutePath, id.Id.ToString()); 245? fileTransferInfo.Context.TestExecId.Id.ToString()
DataCollection\DataCollectionTelemetryManager.cs (2)
54_requestData.MetricsCollection.Add(GetTelemetryKey(telemetryPrefix, dataCollectorInformation), GetProfilerGuid(value).ToString()); 79_requestData.MetricsCollection.Add(GetTelemetryKey(telemetryPrefix, dataCollectorInformation), ClrIeProfilerGuid.ToString());
Utilities\SimpleJSON.cs (1)
901_dict.Add(Guid.NewGuid().ToString(), aItem);
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (5)
Utility\Converter.cs (2)
446targetDirectory = Path.Combine(inDirectory, testResultExecutionId.ToString()); 502testResultDirectory = Path.Combine(testResultDirectory, testResultExecutionId.ToString());
Utility\TestRunDirectories.cs (1)
22return testExecutionId.ToString();
XML\XmlPersistence.cs (2)
79private static readonly string EmptyGuidString = Guid.Empty.ToString(); 344SaveSimpleField(xml, location, guid.ToString(), EmptyGuidString);
Mono.Cecil (1)
Mono.Cecil\AssemblyWriter.cs (1)
3305 WriteUTF8String (marshaler.guid != Guid.Empty ? marshaler.guid.ToString () : string.Empty);
NuGet.Build.Tasks (10)
GetCentralPackageVersionsTask.cs (1)
66entries.Add(new TaskItem(Guid.NewGuid().ToString(), properties));
GetRestoreDotnetCliToolsTask.cs (3)
91entries.Add(new TaskItem(Guid.NewGuid().ToString(), properties)); 101entries.Add(new TaskItem(Guid.NewGuid().ToString(), packageProperties)); 108entries.Add(new TaskItem(Guid.NewGuid().ToString(), restoreProperties));
GetRestoreFrameworkReferencesTask.cs (1)
63entries.Add(new TaskItem(Guid.NewGuid().ToString(), properties));
GetRestoreNuGetAuditSuppressionsTask.cs (1)
64entries.Add(new TaskItem(Guid.NewGuid().ToString(), properties));
GetRestorePackageDownloadsTask.cs (1)
63entries.Add(new TaskItem(Guid.NewGuid().ToString(), properties));
GetRestorePackageReferencesTask.cs (1)
72entries.Add(new TaskItem(Guid.NewGuid().ToString(), properties));
GetRestoreProjectReferencesTask.cs (1)
102entries.Add(new TaskItem(Guid.NewGuid().ToString(), properties));
GetRestorePrunedPackageReferencesTask.cs (1)
66entries.Add(new TaskItem(Guid.NewGuid().ToString(), properties));
NuGet.Common (4)
ActivityCorrelationId.cs (2)
27private static readonly string DefaultCorrelationId = Guid.Empty.ToString(); 51var correlationId = Guid.NewGuid().ToString();
Telemetry\TelemetryActivity.cs (2)
127TelemetryEvent[nameof(ParentId)] = ParentId.ToString(); 132TelemetryEvent[nameof(OperationId)] = OperationId.ToString();
NuGet.PackageManagement (10)
NuGetPackageManager.cs (9)
1170nuGetProjectContext.OperationId.ToString(), 1262nuGetProjectContext.OperationId.ToString(), 1301nuGetProjectContext.OperationId.ToString(), 1868nuGetProjectContext.OperationId.ToString(), 1937nuGetProjectContext.OperationId.ToString(), 2031nuGetProjectContext.OperationId.ToString(), 2589var batchId = Guid.NewGuid().ToString(); 2812nuGetProjectContext.OperationId.ToString(), 3176nuGetProjectContext.OperationId.ToString(),
PackagePreFetcherResult.cs (1)
195telemetryEvent["ParentId"] = parentId.ToString();
NuGet.ProjectModel (1)
DependencyGraphSpec.cs (1)
230?? Guid.NewGuid().ToString();
NuGet.Protocol (3)
HttpSource\HttpSource.cs (1)
349request.AddHeaders.Add(new KeyValuePair<string, IEnumerable<string>>(ProtocolConstants.SessionId, new[] { sessionId.ToString() }));
Plugins\RequestIdGenerator.cs (1)
19return Guid.NewGuid().ToString();
SourceCacheContext.cs (1)
104Guid.NewGuid().ToString());
PresentationBuildTasks (1)
Microsoft\Build\Tasks\Windows\UidManager.cs (1)
908return Guid.NewGuid().ToString();
PresentationCore (2)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
733ISFDebugTrace(" CUSTOM_GUID=" + guidList.FindGuid(isfTag).ToString());
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Ink\KnownIds.cs (1)
319return id.ToString();
PresentationFramework (2)
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (1)
214TextBoxBaseIdentifier = _instanceInfo.Id.ToString(),
System\Windows\Interop\ActiveXHost.cs (1)
85throw new ThreadStateException(SR.Format(SR.AxRequiresApartmentThread, clsid.ToString()));
ReachFramework (4)
Packaging\XpsDocument.cs (2)
408XmlConvert.EncodeName(id.ToString()), 450XmlConvert.EncodeName(id.ToString()),
Packaging\XpsManager.cs (1)
397String uniqueUri = "/Resources/" + Guid.NewGuid().ToString() + XpsS0Markup.ObfuscatedFontExt;
Serialization\Manager\XpsOMPackagingPolicy.cs (1)
797String uniqueUri = "/Resources/" + Guid.NewGuid().ToString() + XpsS0Markup.ObfuscatedFontExt;
RepoTasks (1)
GenerateGuid.cs (1)
28Guid = Uuid.Create(new Guid(NamespaceGuid), value).ToString();
sdk-tasks (1)
CalculateTemplateVersions.cs (1)
73var installerUpgradeCode = GenerateGuidFromName.GenerateGuid(string.Join("-", templateBaseFilename, FullNugetVersion, ProductMonikerRid) + InstallerExtension).ToString().ToUpper();
Stress.ApiService (3)
TestMetrics.cs (3)
21new KeyValuePair<string, object?>("meter-tag", Guid.NewGuid().ToString()) 26new KeyValuePair<string, object?>("instrument-tag", Guid.NewGuid().ToString()) 31new KeyValuePair<string, object?>("instrument-tag", Guid.NewGuid().ToString())
System.Data.Common (1)
System\Data\SQLTypes\SQLGuid.cs (1)
101return _value.GetValueOrDefault().ToString();
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\MetricsEventSource.cs (1)
688sessionId = Guid.NewGuid().ToString();
System.Net.Http (1)
System\Net\Http\MultipartContent.cs (1)
95return Guid.NewGuid().ToString();
System.Net.Mail (1)
System\Net\Mail\Attachment.cs (1)
203cid = Guid.NewGuid().ToString();
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ActivityTracker.cs (3)
118log.DebugFacilityMessage1("OnStartRet", activityId.ToString(), relatedActivityId.ToString()); 199log.DebugFacilityMessage("OnStopRet", activityId.ToString());
System.Private.DataContractSerialization (5)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
722_value = guid.ToString();
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
664writer.WriteRaw(value.ToString());
System\Xml\XmlConverter.cs (1)
392public static string ToString(Guid value) { return value.ToString(); }
System\Xml\XmlDictionaryWriter.cs (1)
183WriteString(value.ToString());
System\Xml\XmlUTF8TextWriter.cs (1)
627WriteText(value.ToString());
System.Private.Xml (4)
System\Xml\BinaryXml\XmlBinaryReader.cs (2)
3953return v.ToString(); 4090return v.ToString();
System\Xml\Serialization\Compilation.cs (1)
286list.Add(modules[i].ModuleVersionId.ToString());
System\Xml\XmlConvert.cs (1)
742return value.ToString();
System.ServiceModel.Federation (1)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
461RequestContext = string.IsNullOrEmpty(WSTrustTokenParameters.RequestContext) ? Guid.NewGuid().ToString() : WSTrustTokenParameters.RequestContext;
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
311_pipeName = contents.pipeGuid.ToString();
System.ServiceModel.Primitives (7)
Internals\System\Xml\XmlMtomWriter.cs (1)
1050prefix = string.Concat(Guid.NewGuid().ToString(), "+id=");
System\IdentityModel\SecurityUniqueId.cs (1)
13private static string s_commonPrefix = "uuid-" + Guid.NewGuid().ToString() + "-";
System\ServiceModel\Channels\UriGenerator.cs (1)
38_prefix = string.Concat(scheme, ":", Guid.NewGuid().ToString(), delimiter, "id=");
System\ServiceModel\Description\ServiceEndpoint.cs (1)
148_id = Guid.NewGuid().ToString();
System\ServiceModel\Diagnostics\ActivityIdHeader.cs (1)
123writer.WriteAttributeString("CorrelationId", _headerId.ToString());
System\ServiceModel\Diagnostics\ServiceModelActivity.cs (1)
333return Id.ToString();
System\ServiceModel\Security\SecurityUtils.cs (1)
1049private static string s_commonPrefix = "uuid-" + Guid.NewGuid().ToString() + "-";
System.ServiceModel.Syndication (1)
System\ServiceModel\Channels\UriGenerator.cs (1)
16_prefix = string.Concat("uuid:", Guid.NewGuid().ToString(), ";id=");
System.Transactions.Local (11)
System\Transactions\InternalTransaction.cs (1)
227throw new TransactionPromotionException(SR.Format(SR.PromoterTypeUnrecognized, _promoterType.ToString()), _innerException);
System\Transactions\Oletx\OletxEnlistment.cs (1)
107TransactionGuidString = _transactionGuid.ToString();
System\Transactions\Oletx\OletxResourceManager.cs (2)
829TransactionGuidString = oletxTransaction.RealOletxTransaction.TxGuid.ToString(); 833TransactionGuidString = Guid.Empty.ToString();
System\Transactions\Oletx\OletxTransaction.cs (2)
411TransactionTraceIdentifier temp = new(RealOletxTransaction.Identifier.ToString(), 0); 1151TransactionTraceIdentifier temp = new(TxGuid.ToString(), 0);
System\Transactions\TransactionsEtwProvider.cs (2)
987TransactionManagerReenlistTrace(resourceManagerID.ToString()); 1007TransactionManagerRecoveryComplete(resourceManagerID.ToString());
System\Transactions\TransactionState.cs (3)
3460throw new TransactionPromotionException(SR.Format(SR.PromoterTypeUnrecognized, tx._promoterType.ToString()), 3472throw new TransactionPromotionException(SR.Format(SR.PromoterTypeUnrecognized, tx._promoterType.ToString()), 3573throw new TransactionPromotionException(SR.Format(SR.PromoterTypeUnrecognized, tx._promoterType.ToString()),
System.Windows.Forms (1)
System\Windows\Forms\ComponentModel\COM2Interop\COM2IProvidePropertyBuilderHandler.cs (1)
34builderGuid = guid.ToString() ?? Guid.Empty.ToString();
System.Windows.Forms.Design (1)
System\ComponentModel\Design\MultilineStringEditor.OleCallback.cs (1)
80return realClsid.ToString().ToUpper(CultureInfo.InvariantCulture) switch
TestShop.AppHost (1)
AppHost.cs (1)
36var resetDbKey = Guid.NewGuid().ToString();
vbc (1)
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
219var requestId = Guid.NewGuid().ToString();
VBCSCompiler (1)
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
219var requestId = Guid.NewGuid().ToString();
vstest.console (1)
Publisher\TextFileTelemetryPublisher.cs (1)
62string resultFileName = Guid.NewGuid().ToString();
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Publisher\TextFileTelemetryPublisher.cs (1)
62string resultFileName = Guid.NewGuid().ToString();