Implemented interface members:

property
this
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>.this[TKey]

property
this
System.Collections.Generic.IDictionary<TKey, TValue>.this[TKey]
5923 writes to Item
aspire (141)
Commands\AgentMcpCommand.cs (17)
106_knownTools[KnownMcpTools.ListStructuredLogs] = new ListStructuredLogsTool(staticProvider, null, _httpClientFactory, _loggerFactory.CreateLogger<ListStructuredLogsTool>());
107_knownTools[KnownMcpTools.ListTraces] = new ListTracesTool(staticProvider, null, _httpClientFactory, _loggerFactory.CreateLogger<ListTracesTool>());
108_knownTools[KnownMcpTools.ListTraceStructuredLogs] = new ListTraceStructuredLogsTool(staticProvider, null, _httpClientFactory, _loggerFactory.CreateLogger<ListTraceStructuredLogsTool>());
114_knownTools[KnownMcpTools.ListResources] = new ListResourcesTool(_auxiliaryBackchannelMonitor, _loggerFactory.CreateLogger<ListResourcesTool>());
115_knownTools[KnownMcpTools.ListConsoleLogs] = new ListConsoleLogsTool(_auxiliaryBackchannelMonitor, _loggerFactory.CreateLogger<ListConsoleLogsTool>());
116_knownTools[KnownMcpTools.ExecuteResourceCommand] = new ExecuteResourceCommandTool(_auxiliaryBackchannelMonitor, _loggerFactory.CreateLogger<ExecuteResourceCommandTool>());
117_knownTools[KnownMcpTools.ListStructuredLogs] = new ListStructuredLogsTool(dashboardInfoProvider, _auxiliaryBackchannelMonitor, _httpClientFactory, _loggerFactory.CreateLogger<ListStructuredLogsTool>());
118_knownTools[KnownMcpTools.ListTraces] = new ListTracesTool(dashboardInfoProvider, _auxiliaryBackchannelMonitor, _httpClientFactory, _loggerFactory.CreateLogger<ListTracesTool>());
119_knownTools[KnownMcpTools.ListTraceStructuredLogs] = new ListTraceStructuredLogsTool(dashboardInfoProvider, _auxiliaryBackchannelMonitor, _httpClientFactory, _loggerFactory.CreateLogger<ListTraceStructuredLogsTool>());
120_knownTools[KnownMcpTools.SelectAppHost] = new SelectAppHostTool(_auxiliaryBackchannelMonitor, _executionContext);
121_knownTools[KnownMcpTools.ListAppHosts] = new ListAppHostsTool(_auxiliaryBackchannelMonitor, _executionContext);
122_knownTools[KnownMcpTools.ListIntegrations] = new ListIntegrationsTool(_packagingService, _executionContext, _auxiliaryBackchannelMonitor);
123_knownTools[KnownMcpTools.Doctor] = new DoctorTool(_environmentChecker);
124_knownTools[KnownMcpTools.RefreshTools] = new RefreshToolsTool(_resourceToolRefreshService);
125_knownTools[KnownMcpTools.ListDocs] = new ListDocsTool(_docsIndexService);
126_knownTools[KnownMcpTools.SearchDocs] = new SearchDocsTool(_docsSearchService, _docsIndexService);
127_knownTools[KnownMcpTools.GetDoc] = new GetDocTool(_docsIndexService);
aspire-managed (2)
Aspire.Acquisition.Tests (2)
Aspire.Azure.Messaging.EventHubs.Tests (3)
Aspire.Azure.Security.KeyVault.Tests (3)
Aspire.Cli.EndToEnd.Tests (6)
Aspire.Cli.Tests (80)
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (56)
Aspire.Dashboard.Tests (169)
Aspire.Deployment.EndToEnd.Tests (4)
Aspire.EndToEnd.Tests (2)
Aspire.Hosting (134)
Aspire.Hosting.Azure (31)
Aspire.Hosting.Azure.AppContainers (7)
ContainerAppContext.cs (2)
231_endpointMapping[endpoint.Name] = new(scheme, NormalizedContainerAppName, port, targetPort, true, httpIngress.External, endpoint.TlsEnabled);
263_endpointMapping[endpoint.Name] = new(endpoint.UriScheme, NormalizedContainerAppName, resolved.ExposedPort.Value ?? g.Port.Value, g.Port.Value, false, g.External, endpoint.TlsEnabled);
Aspire.Hosting.Azure.AppService (3)
Aspire.Hosting.Azure.CosmosDB (5)
Aspire.Hosting.Azure.EventHubs (3)
Aspire.Hosting.Azure.Functions (6)
Aspire.Hosting.Azure.Kubernetes (17)
Aspire.Hosting.Azure.Kubernetes.Tests (8)
Aspire.Hosting.Azure.Network (1)
Aspire.Hosting.Azure.PostgreSQL (2)
Aspire.Hosting.Azure.ServiceBus (4)
Aspire.Hosting.Azure.Tests (123)
Aspire.Hosting.Azure.WebPubSub (2)
Aspire.Hosting.Blazor (8)
Aspire.Hosting.Browsers (9)
Aspire.Hosting.Browsers.Tests (10)
Aspire.Hosting.CodeGeneration.Go (17)
Aspire.Hosting.CodeGeneration.Java (18)
Aspire.Hosting.CodeGeneration.Python (24)
Aspire.Hosting.CodeGeneration.Rust (8)
Aspire.Hosting.CodeGeneration.TypeScript (41)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
Aspire.Hosting.DevTunnels (3)
Aspire.Hosting.Docker (13)
Aspire.Hosting.Docker.Tests (19)
Aspire.Hosting.EntityFrameworkCore (10)
Aspire.Hosting.Foundry (5)
Aspire.Hosting.Foundry.Tests (3)
Aspire.Hosting.Garnet (1)
Aspire.Hosting.Java (4)
Aspire.Hosting.JavaScript (13)
Aspire.Hosting.JavaScript.Tests (1)
Aspire.Hosting.Kafka (6)
Aspire.Hosting.Keycloak (11)
Aspire.Hosting.Kubernetes (45)
KubernetesResource.cs (11)
215Parameters[imageEnvName] = expression;
256EndpointMappings[endpoint.Name] = new(endpoint.UriScheme, GetKubernetesProtocolName(endpoint.Protocol), resource.Name.ToServiceName(), httpMapping.Port, endpoint.Name);
276EndpointMappings[endpoint.Name] = new(endpoint.UriScheme, GetKubernetesProtocolName(endpoint.Protocol), resource.Name.ToServiceName(), HelmValue.Literal(portValue), endpoint.Name, ServicePort: servicePort);
290Parameters[paramName] = helmValue;
291EndpointMappings[endpoint.Name] = new(endpoint.UriScheme, GetKubernetesProtocolName(endpoint.Protocol), resource.Name.ToServiceName(), helmValue, endpoint.Name);
454Secrets[key] = new(key.ToHelmSecretExpression(TargetResource.Name), secretValue);
457Secrets[key] = helmExpression;
460EnvironmentVariables[key] = helmExpression;
475Secrets[key] = new(secretExpression, stringValue);
480EnvironmentVariables[key] = new(configExpression, stringValue);
486EnvironmentVariables[key] = new(configExpression, value.ToString() ?? string.Empty);
Aspire.Hosting.Kubernetes.Tests (22)
Aspire.Hosting.Maui (10)
Aspire.Hosting.Milvus (2)
Aspire.Hosting.MongoDB (7)
Aspire.Hosting.MySql (4)
Aspire.Hosting.Oracle (1)
Aspire.Hosting.Orleans (7)
Aspire.Hosting.PostgreSQL (9)
Aspire.Hosting.Python (8)
Aspire.Hosting.Qdrant (4)
Aspire.Hosting.RabbitMQ (3)
Aspire.Hosting.Radius (33)
Aspire.Hosting.Redis (9)
Aspire.Hosting.RemoteHost (24)
Aspire.Hosting.RemoteHost.Tests (5)
Aspire.Hosting.Rust (2)
Aspire.Hosting.Rust.Tests (2)
Aspire.Hosting.Sdk.Tests (1)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.Testing (3)
Aspire.Hosting.Tests (61)
Aspire.Hosting.TestUtilities (2)
Aspire.Hosting.Valkey (1)
Aspire.Hosting.Yarp (5)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (3)
Aspire.Playground.Tests (1)
Aspire.Templates.Tests (2)
Aspire.TerminalHost (1)
AspireWithNode.AppHost (3)
AzureAppService.AppHost (1)
AzureContainerApps.AppHost (1)
cdac-build-tool (13)
ConfigurationSchemaGenerator (4)
csc (5)
CSharpSyntaxGenerator (1)
dotnet (62)
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26425.101\contentFiles\cs\net11.0\BuildProtocol.cs (1)
392properties[key] = value;
dotnet-aot (15)
dotnet-format (1)
dotnet-openapi (4)
dotnet-svcutil-lib (76)
dotnet-svcutil.xmlserializer (1)
dotnet-user-secrets (1)
GenerateDocumentationAndConfigFiles (27)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
498_idToResult[id] = result;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
632result[member] = index++;
HelixTestTasks (1)
ILAssembler (20)
ilc (4)
ILCompiler.Compiler (55)
ILCompiler.MetadataTransform (1)
ILCompiler.ReadyToRun (37)
ILCompiler.RyuJit (10)
illink (42)
ILLink.RoslynAnalyzer (11)
ILLink.Tasks (5)
Infrastructure.Common (36)
Infrastructure.Tests (21)
installer.tasks (4)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
Microsoft.AspNetCore.Authentication.Core (1)
Microsoft.AspNetCore.Authentication.Google (1)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (3)
Microsoft.AspNetCore.Authentication.OAuth (3)
Microsoft.AspNetCore.Authorization (2)
Microsoft.AspNetCore.Components (19)
Microsoft.AspNetCore.Components.AI.SourceGenerators (3)
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Components.Endpoints (18)
Microsoft.AspNetCore.Components.Forms (1)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.Testing (8)
Microsoft.AspNetCore.Components.Testing.Tasks (2)
Microsoft.AspNetCore.Components.Web (2)
Microsoft.AspNetCore.Components.WebAssembly (4)
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (2)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (6)
Microsoft.AspNetCore.Http (4)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.InternalTesting (4)
Microsoft.AspNetCore.Mvc.Abstractions (3)
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
Microsoft.AspNetCore.Mvc.Core (9)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (4)
Microsoft.AspNetCore.Mvc.Razor (1)
Microsoft.AspNetCore.Mvc.Testing.Tasks (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
Microsoft.AspNetCore.OpenApi (11)
Microsoft.AspNetCore.OutputCaching (3)
Microsoft.AspNetCore.Razor.Runtime (2)
Microsoft.AspNetCore.Rewrite (2)
Microsoft.AspNetCore.Routing (6)
Microsoft.AspNetCore.Server.HttpSys (3)
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (4)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
Microsoft.AspNetCore.SignalR.Core (2)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.AspNetCore.WebUtilities (5)
Microsoft.Build (188)
BackEnd\Components\BuildComponentFactoryCollection.cs (21)
62_componentEntriesByType[BuildComponentType.Scheduler] = new BuildComponentEntry(BuildComponentType.Scheduler, Scheduler.CreateComponent, CreationPattern.Singleton);
63_componentEntriesByType[BuildComponentType.ConfigCache] = new BuildComponentEntry(BuildComponentType.ConfigCache, ConfigCache.CreateComponent, CreationPattern.Singleton);
64_componentEntriesByType[BuildComponentType.ResultsCache] = new BuildComponentEntry(BuildComponentType.ResultsCache, ResultsCache.CreateComponent, CreationPattern.Singleton);
65_componentEntriesByType[BuildComponentType.NodeManager] = new BuildComponentEntry(BuildComponentType.NodeManager, NodeManager.CreateComponent, CreationPattern.Singleton);
66_componentEntriesByType[BuildComponentType.TaskHostNodeManager] = new BuildComponentEntry(BuildComponentType.TaskHostNodeManager, TaskHostNodeManager.CreateComponent, CreationPattern.Singleton);
68_componentEntriesByType[BuildComponentType.NodeLauncher] = new BuildComponentEntry(BuildComponentType.NodeLauncher, NodeLauncher.CreateComponent, CreationPattern.Singleton);
69_componentEntriesByType[BuildComponentType.InProcNodeProvider] = new BuildComponentEntry(BuildComponentType.InProcNodeProvider, NodeProviderInProc.CreateComponent, CreationPattern.Singleton);
70_componentEntriesByType[BuildComponentType.OutOfProcNodeProvider] = new BuildComponentEntry(BuildComponentType.OutOfProcNodeProvider, NodeProviderOutOfProc.CreateComponent, CreationPattern.Singleton);
71_componentEntriesByType[BuildComponentType.OutOfProcTaskHostNodeProvider] = new BuildComponentEntry(BuildComponentType.OutOfProcTaskHostNodeProvider, NodeProviderOutOfProcTaskHost.CreateComponent, CreationPattern.Singleton);
76_componentEntriesByType[BuildComponentType.RequestEngine] = new BuildComponentEntry(BuildComponentType.RequestEngine, BuildRequestEngine.CreateComponent, CreationPattern.Singleton);
80_componentEntriesByType[BuildComponentType.LoggingService] = new BuildComponentEntry(BuildComponentType.LoggingService, null);
81_componentEntriesByType[BuildComponentType.RequestBuilder] = new BuildComponentEntry(BuildComponentType.RequestBuilder, RequestBuilder.CreateComponent, CreationPattern.CreateAlways);
83_componentEntriesByType[BuildComponentType.BuildCheckManagerProvider] = new BuildComponentEntry(BuildComponentType.BuildCheckManagerProvider, BuildCheckManagerProvider.CreateComponent, CreationPattern.Singleton);
84_componentEntriesByType[BuildComponentType.TelemetryCollector] = new BuildComponentEntry(BuildComponentType.TelemetryCollector, TelemetryCollectorProvider.CreateComponent, CreationPattern.Singleton);
85_componentEntriesByType[BuildComponentType.TargetBuilder] = new BuildComponentEntry(BuildComponentType.TargetBuilder, TargetBuilder.CreateComponent, CreationPattern.CreateAlways);
86_componentEntriesByType[BuildComponentType.TaskBuilder] = new BuildComponentEntry(BuildComponentType.TaskBuilder, TaskBuilder.CreateComponent, CreationPattern.CreateAlways);
87_componentEntriesByType[BuildComponentType.RegisteredTaskObjectCache] = new BuildComponentEntry(BuildComponentType.RegisteredTaskObjectCache, RegisteredTaskObjectCache.CreateComponent, CreationPattern.Singleton);
90_componentEntriesByType[BuildComponentType.SdkResolverService] = new BuildComponentEntry(BuildComponentType.SdkResolverService, MainNodeSdkResolverService.CreateComponent, CreationPattern.Singleton);
128_componentEntriesByType[componentType] = new BuildComponentEntry(componentType, factory, existingEntry.Pattern);
139_componentEntriesByType[componentType] = new BuildComponentEntry(componentType, instance);
150_componentEntriesByType[componentType] = new BuildComponentEntry(componentType, factory, creationPattern);
Microsoft.Build.Framework (62)
Microsoft.Build.NuGetSdkResolver (1)
Microsoft.Build.Tasks.CodeAnalysis (6)
Microsoft.Build.Tasks.Core (49)
Microsoft.Build.Utilities.Core (12)
Microsoft.CodeAnalysis (42)
Microsoft.CodeAnalysis.Analyzers (33)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
498_idToResult[id] = result;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
632result[member] = index++;
Microsoft.CodeAnalysis.AnalyzerUtilities (39)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResultBuilder.cs (1)
41_info[block] = newData;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
498_idToResult[id] = result;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
632result[member] = index++;
Microsoft.CodeAnalysis.CodeStyle (26)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
498_idToResult[id] = result;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
632result[member] = index++;
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
Microsoft.CodeAnalysis.CSharp (67)
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
Microsoft.CodeAnalysis.CSharp.Features (19)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.CodeAnalysis.Extensions.Package (2)
Microsoft.CodeAnalysis.Features (182)
Microsoft.CodeAnalysis.NetAnalyzers (44)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResultBuilder.cs (1)
40_info[block] = newData;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DictionaryAnalysisData.cs (1)
48_coreAnalysisData[key] = value;
Microsoft.CodeAnalysis.Razor.Compiler (5)
Microsoft.CodeAnalysis.ResxSourceGenerator (22)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
498_idToResult[id] = result;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
632result[member] = index++;
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.Workspaces (103)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
498_idToResult[id] = result;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
632result[member] = index++;
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.CSharp (1)
Microsoft.Data.Analysis (5)
Microsoft.Diagnostics.DataContractReader (6)
Microsoft.Diagnostics.DataContractReader.Contracts (22)
Microsoft.Diagnostics.DataContractReader.Legacy (4)
Microsoft.Diagnostics.NETCore.Client (1)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Build.Manifest (1)
Microsoft.DotNet.Build.Tasks.Installers (7)
Microsoft.DotNet.Build.Tasks.Packaging (23)
Microsoft.DotNet.Build.Tasks.Templating (1)
Microsoft.DotNet.Build.Tasks.Workloads (9)
Microsoft.DotNet.Cli.CommandLine (5)
Microsoft.DotNet.Cli.Definitions (3)
Microsoft.DotNet.Cli.Telemetry (17)
Microsoft.DotNet.Cli.Utils (5)
Microsoft.DotNet.CodeAnalysis (1)
Microsoft.DotNet.GenFacades (1)
Microsoft.DotNet.HotReload.Watch (5)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.DotNet.PackageTesting (4)
Microsoft.DotNet.ProjectTools (1)
Microsoft.DotNet.SharedFramework.Sdk (8)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.DotNet.TemplateLocator (5)
Microsoft.DotNet.XliffTasks (1)
Microsoft.Extensions.AI (5)
Microsoft.Extensions.AI.Abstractions (5)
Microsoft.Extensions.AI.Abstractions.Tests (4)
Microsoft.Extensions.AI.Evaluation.Console (16)
Microsoft.Extensions.AI.Evaluation.NLP (7)
Microsoft.Extensions.AI.Evaluation.Safety (2)
Microsoft.Extensions.AI.Integration.Tests (2)
Microsoft.Extensions.AI.OpenAI (7)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.Caching.Hybrid.Tests (2)
Microsoft.Extensions.Compliance.Redaction (2)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (4)
Microsoft.Extensions.Configuration.CommandLine (1)
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
Microsoft.Extensions.Configuration.Ini (1)
Microsoft.Extensions.Configuration.Json (3)
Microsoft.Extensions.DataIngestion (1)
Microsoft.Extensions.DependencyInjection (3)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.Diagnostics (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (2)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Http (3)
Microsoft.Extensions.Http.Diagnostics (4)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Identity.Core (2)
Microsoft.Extensions.Logging.Generators (5)
Microsoft.Extensions.Logging.MSBuild (1)
Microsoft.Extensions.Options.SourceGeneration (3)
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Microsoft.Extensions.ServiceDiscovery.Tests (2)
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
Microsoft.Extensions.Telemetry (1)
Microsoft.Extensions.VectorData.Abstractions (2)
Microsoft.Extensions.VectorData.ConformanceTests (10)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.Logging (2)
Microsoft.Gen.Logging.Generated.Tests (2)
Microsoft.Gen.MetadataExtractor (2)
Microsoft.Interop.ComInterfaceGenerator (4)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Maui (21)
Microsoft.Maui.Controls (45)
Microsoft.Maui.Controls.Build.Tasks (21)
Microsoft.Maui.Controls.Xaml (21)
Microsoft.Maui.Essentials (4)
Microsoft.Maui.Graphics (4)
Microsoft.Maui.Graphics.Text.Markdig (4)
Microsoft.Maui.Resizetizer (2)
Microsoft.ML.AutoML (21)
Microsoft.ML.Core (6)
Microsoft.ML.Core.Tests (10)
Microsoft.ML.Data (57)
Microsoft.ML.DataView (2)
Microsoft.ML.EntryPoints (2)
Microsoft.ML.Fairlearn (1)
Microsoft.ML.FastTree (11)
Microsoft.ML.GenAI.Core (6)
Microsoft.ML.GenAI.Mistral (2)
Microsoft.ML.ImageAnalytics (6)
Microsoft.ML.IntegrationTests (4)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.LightGbm (46)
Microsoft.ML.Mkl.Components (1)
Microsoft.ML.OnnxConverter (1)
Microsoft.ML.OnnxTransformer (7)
Microsoft.ML.PCA (1)
Microsoft.ML.Predictor.Tests (2)
Microsoft.ML.Recommender (1)
Microsoft.ML.ResultProcessor (8)
Microsoft.ML.Samples (15)
Dynamic\Transforms\Conversion\MapValueToArray.cs (5)
36timeframeMap["0-4yrs"] = new int[] { 0, 5, 300 };
37timeframeMap["0-5yrs"] = new int[] { 0, 5, 300 };
38timeframeMap["6-11yrs"] = new int[] { 6, 11, 300 };
39timeframeMap["12-25yrs"] = new int[] { 12, 50, 300 };
40timeframeMap["25+yrs"] = new int[] { 12, 50, 300 };
Microsoft.ML.StandardTrainers (4)
Microsoft.ML.Sweeper (2)
Microsoft.ML.TensorFlow (2)
Microsoft.ML.Tests (8)
Microsoft.ML.TimeSeries (10)
Microsoft.ML.Tokenizers (19)
Microsoft.ML.Tokenizers.Tests (1)
Microsoft.ML.TorchSharp (26)
AutoFormerV2\ObjectDetectionTrainer.cs (6)
464outColumns[Option.PredictedLabelColumnName] = new SchemaShape.Column(Option.PredictedLabelColumnName, SchemaShape.Column.VectorKind.VariableVector,
467outColumns[Option.PredictedBoundingBoxColumnName] = new SchemaShape.Column(Option.PredictedBoundingBoxColumnName, SchemaShape.Column.VectorKind.VariableVector,
470outColumns[Option.ScoreColumnName] = new SchemaShape.Column(Option.ScoreColumnName, SchemaShape.Column.VectorKind.VariableVector,
562outColumns[Options.PredictedLabelColumnName] = new SchemaShape.Column(Options.PredictedLabelColumnName, SchemaShape.Column.VectorKind.VariableVector,
565outColumns[Options.PredictedBoundingBoxColumnName] = new SchemaShape.Column(Options.PredictedBoundingBoxColumnName, SchemaShape.Column.VectorKind.VariableVector,
568outColumns[Options.ScoreColumnName] = new SchemaShape.Column(Options.ScoreColumnName, SchemaShape.Column.VectorKind.VariableVector,
NasBert\NasBertTrainer.cs (7)
335outColumns[Option.PredictionColumnName] = new SchemaShape.Column(Option.PredictionColumnName, SchemaShape.Column.VectorKind.Scalar,
338outColumns[Option.ScoreColumnName] = new SchemaShape.Column(Option.ScoreColumnName, SchemaShape.Column.VectorKind.Vector,
350outColumns[Option.PredictionColumnName] = new SchemaShape.Column(Option.PredictionColumnName, SchemaShape.Column.VectorKind.VariableVector,
355outColumns[Option.ScoreColumnName] = new SchemaShape.Column(Option.ScoreColumnName, SchemaShape.Column.VectorKind.Scalar,
440outColumns[Options.PredictionColumnName] = new SchemaShape.Column(Options.PredictionColumnName, SchemaShape.Column.VectorKind.Scalar,
443outColumns[ScoreColumnName] = new SchemaShape.Column(ScoreColumnName, SchemaShape.Column.VectorKind.Vector,
448outColumns[ScoreColumnName] = new SchemaShape.Column(ScoreColumnName, SchemaShape.Column.VectorKind.Scalar,
Microsoft.ML.Transforms (29)
Microsoft.ML.Vision (4)
Microsoft.NET.Build.Containers (11)
Microsoft.NET.Build.Extensions.Tasks (11)
Microsoft.NET.Build.Tasks (31)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (12)
Microsoft.NET.Sdk.Publish.Tasks (6)
Microsoft.NET.Sdk.Razor.Tasks (4)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (36)
Microsoft.NET.Sdk.WorkloadManifestReader (5)
Microsoft.NET.StringTools (1)
Microsoft.Private.Windows.Core (2)
Microsoft.TemplateEngine.Cli (28)
Microsoft.TemplateEngine.Core (9)
Microsoft.TemplateEngine.Edge (33)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (35)
Microsoft.TemplateEngine.Utils (18)
Microsoft.TemplateSearch.Common (15)
Microsoft.TestPlatform.CommunicationUtilities (2)
Microsoft.TestPlatform.CrossPlatEngine (8)
Microsoft.TestPlatform.TestHostRuntimeProvider (4)
Microsoft.VisualStudio.TestPlatform.Common (12)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
Microsoft.VisualStudio.TestPlatform.ObjectModel (11)
Microsoft.Web.XmlTransform (11)
Microsoft.Win32.SystemEvents (1)
MSBuild (12)
MSBuild.Coordinator (2)
NuGet.Build.Tasks (20)
NuGet.Build.Tasks.Console (4)
NuGet.Build.Tasks.Pack (9)
NuGet.CommandLine.XPlat (7)
NuGet.Commands (26)
NuGet.Common (1)
NuGet.Configuration (7)
NuGet.DependencyResolver.Core (3)
NuGet.Frameworks (1)
NuGet.PackageManagement (13)
NuGet.Packaging (18)
NuGet.ProjectModel (2)
NuGet.Protocol (5)
NuGet.Versioning (1)
PresentationBuildTasks (12)
PresentationCore (75)
PresentationFramework (61)
PresentationUI (2)
ReachFramework (44)
Roslyn.Diagnostics.Analyzers (27)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
498_idToResult[id] = result;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
632result[member] = index++;
Roslyn.Diagnostics.CSharp.Analyzers (1)
rzc (6)
sdk-tasks (1)
SelectTests (7)
System.CodeDom (4)
System.Collections.Immutable (2)
System.CommandLine (5)
System.CommandLine.StaticCompletions (2)
System.ComponentModel.Annotations (2)
System.ComponentModel.Composition (22)
System.ComponentModel.TypeConverter (9)
System.Console (2)
System.Data.Common (5)
System.Data.Odbc (5)
System.Data.OleDb (4)
System.Diagnostics.DiagnosticSource (1)
System.Diagnostics.Process (1)
System.DirectoryServices.AccountManagement (6)
System.Drawing.Primitives (1)
System.Formats.Nrbf (1)
System.Formats.Tar (11)
System.IO.Packaging (10)
System.Linq.AsyncEnumerable (2)
System.Linq.Expressions (19)
System.Linq.Parallel (5)
System.Net.Http (2)
System.Net.HttpListener (5)
System.Net.Mail (5)
System.Net.NameResolution (1)
System.ObjectModel (1)
System.Private.CoreLib (44)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
1268args[key] = value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (1)
150cache[type] = instance;
System.Private.CoreLib.Generators (3)
System.Private.Windows.Core (2)
System.Private.Xml (60)
System.Reflection.DispatchProxy (7)
System.Reflection.Metadata (1)
System.Resources.Extensions (6)
System.Runtime.Caching (2)
System.Runtime.InteropServices.JavaScript (3)
System.Runtime.Serialization.Schema (1)
System.Security.AccessControl (1)
System.Security.Claims (1)
System.Security.Cryptography.Cose (1)
System.ServiceModel.Primitives (18)
System.ServiceModel.Primitives.Tests (2)
System.Speech (2)
System.Text.Json (6)
System.Text.Json.SourceGeneration (6)
System.Text.RegularExpressions (16)
System.Text.RegularExpressions.Generator (5)
System.Windows.Controls.Ribbon (12)
System.Windows.Forms (1229)
System.Windows.Forms.Design (61)
System.Windows.Input.Manipulations (1)
System.Xaml (17)
vbc (5)
VBCSCompiler (8)
vstest.console (3)
vstest.console.arm64 (3)
WindowsFormsIntegration (1)
3335 references to Item
aspire (14)
Aspire.Cli.EndToEnd.Tests (5)
Aspire.Cli.Tests (287)
Backchannel\ResourceSnapshotMapperTests.cs (12)
30var pid = Assert.IsAssignableFrom<JsonValue>(snapshot.Properties["executable.pid"]);
150Assert.Equal(KnownCommandState.Enabled, result.Commands["restart"].State);
151Assert.Equal(KnownCommandState.Disabled, result.Commands["start"].State);
174Assert.Equal(KnownCommandVisibility.UI, result.Commands["ui-only"].Visibility);
175Assert.Equal(KnownCommandVisibility.UI, result.Commands["ui-disabled"].Visibility);
202Assert.Equal(0, result.Commands["set-parameter"].SortOrder);
203Assert.Equal(1, result.Commands["custom-action"].SortOrder);
204Assert.Equal(2, result.Commands["delete-parameter"].SortOrder);
230Assert.Equal(0, result.Commands["set-parameter"].SortOrder);
231Assert.Equal(1, result.Commands["custom-action"].SortOrder);
232Assert.Equal(2, result.Commands["delete-parameter"].SortOrder);
351var listProperty = Assert.IsType<JsonArray>(result.Properties["custom.list"]);
Commands\AgentTelemetryCommandTests.cs (10)
40Assert.Equal("skill_invocation", tags[TelemetryConstants.Tags.AgentEventType]);
41Assert.Equal("copilot-cli", tags[TelemetryConstants.Tags.AgentClientName]);
42Assert.Equal("11111111-1111-1111-1111-111111111111", tags[TelemetryConstants.Tags.AgentSessionId]);
43Assert.Equal("aspire", tags[TelemetryConstants.Tags.AgentSkillName]);
44Assert.Equal("2026-01-01T00:00:00Z", tags[TelemetryConstants.Tags.AgentEventTimestamp]);
70Assert.Equal("tool_invocation", tags[TelemetryConstants.Tags.AgentEventType]);
71Assert.Equal("aspire-list_resources", tags[TelemetryConstants.Tags.AgentToolName]);
103Assert.Equal("reference_file_read", tags[TelemetryConstants.Tags.AgentEventType]);
160Assert.Equal("aspire", tags[TelemetryConstants.Tags.AgentSkillName]);
253Assert.Equal("aspire/references/deploy.md", tags[TelemetryConstants.Tags.AgentFileReference]);
Commands\AppHostLauncherTests.cs (17)
859Assert.Equal("true", environment[KnownConfigNames.CliRunDetached]);
860Assert.Equal("true", environment[ProfilingTelemetry.EnvironmentVariables.Enabled]);
861Assert.Equal("session-1", environment[ProfilingTelemetry.EnvironmentVariables.SessionId]);
862Assert.Equal("session-1", environment[KnownConfigNames.Legacy.StartupOperationId]);
863Assert.Equal(activity.Id, environment[ProfilingTelemetry.EnvironmentVariables.TraceParent]);
864Assert.Equal("state-1", environment[ProfilingTelemetry.EnvironmentVariables.TraceState]);
874Assert.Equal("explicit-launch-configuration", environment[KnownConfigNames.CliAppHostSelectionOrigin]);
901Assert.Equal("true", environment[KnownConfigNames.CliRunDetached]);
904environment[KnownConfigNames.CliLauncherProcessId]);
905Assert.NotNull(ProcessStartTimeHelper.TryParseStartTimeUnixSeconds(environment[KnownConfigNames.CliLauncherProcessStarted]));
920Assert.Equal("true", environment[KnownConfigNames.CliRunDetached]);
921Assert.Equal("true", environment[ProfilingTelemetry.EnvironmentVariables.Enabled]);
922var sessionId = environment[ProfilingTelemetry.EnvironmentVariables.SessionId];
924Assert.Equal(sessionId, environment[KnownConfigNames.Legacy.StartupOperationId]);
925Assert.Equal(Activity.Current?.Id, environment[ProfilingTelemetry.EnvironmentVariables.TraceParent]);
938Assert.Equal("true", environment[KnownConfigNames.CliRunDetached]);
950Assert.Equal("true", environment[KnownConfigNames.CliRunDetached]);
Commands\RunCommandTests.cs (9)
972Assert.Equal("project_not_found", tags[TelemetryConstants.Tags.ErrorType]);
998Assert.Equal("build_failed", tags[TelemetryConstants.Tags.ErrorType]);
3696Assert.Equal("true", capturedEnv["DcpPublisher__RandomizePorts"]);
3700Assert.NotEqual(originalUserSecretsId, capturedEnv["DOTNET_USER_SECRETS_ID"]);
3703Assert.True(Guid.TryParse(capturedEnv["DOTNET_USER_SECRETS_ID"], out _), "Isolated user secrets ID should be a valid GUID");
4270Assert.Equal(KnownLanguageId.CSharp, tags[TelemetryConstants.Tags.AppHostLanguage]);
4271Assert.Equal(detached, tags[TelemetryConstants.Tags.AppHostDetached]);
4272Assert.Equal(isolated, tags[TelemetryConstants.Tags.AppHostIsolated]);
4273Assert.Equal("certificate_trust_failed", tags[TelemetryConstants.Tags.ErrorType]);
Processes\OrphanDetectionEnvironmentTests.cs (18)
19Assert.Equal(Environment.ProcessId.ToString(CultureInfo.InvariantCulture), environment[KnownConfigNames.CliProcessId]);
20Assert.NotNull(ProcessStartTimeHelper.TryParseStartTimeUnixSeconds(environment[KnownConfigNames.CliProcessStarted]));
21Assert.NotNull(ProcessStartTimeHelper.TryParseStartTimeUnixSeconds(environment[KnownConfigNames.CliProcessStartedStable]));
31Assert.Equal(Environment.ProcessId.ToString(CultureInfo.InvariantCulture), environment[KnownConfigNames.CliLauncherProcessId]);
32Assert.NotNull(ProcessStartTimeHelper.TryParseStartTimeUnixSeconds(environment[KnownConfigNames.CliLauncherProcessStarted]));
47Assert.Equal("999", environment[KnownConfigNames.CliProcessId]);
64Assert.Equal(Environment.ProcessId.ToString(CultureInfo.InvariantCulture), environment[KnownConfigNames.CliProcessId]);
65Assert.NotNull(ProcessStartTimeHelper.TryParseStartTimeUnixSeconds(environment[KnownConfigNames.CliProcessStarted]));
66Assert.NotNull(ProcessStartTimeHelper.TryParseStartTimeUnixSeconds(environment[KnownConfigNames.CliProcessStartedStable]));
79Assert.Equal(Environment.ProcessId.ToString(CultureInfo.InvariantCulture), environment[KnownConfigNames.CliProcessId]);
89Assert.Equal("4321", environment[KnownConfigNames.RemoteAppHostProcessId]);
90Assert.Equal("1000", environment[KnownConfigNames.RemoteAppHostProcessStarted]);
100Assert.Equal("4321", environment[KnownConfigNames.CliProcessId]);
117Assert.Equal("4321", environment[KnownConfigNames.CliProcessId]);
134Assert.Equal(int.MaxValue.ToString(CultureInfo.InvariantCulture), environment[KnownConfigNames.CliProcessId]);
136Assert.Equal("1000", environment[KnownConfigNames.CliProcessStartedStable]);
150Assert.Equal("999", environment[KnownConfigNames.CliProcessId]);
151Assert.Equal("111", environment[KnownConfigNames.CliProcessStarted]);
Projects\AppHostCandidateFinderTests.cs (25)
56Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]);
100Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]);
117Assert.Equal(0, result.CountsByPattern["apphost.ts"]);
136Assert.Equal(1, result.CountsByPattern["apphost.ts"]);
159Assert.Equal(1, result.CountsByPattern["apphost.ts"]);
177Assert.Equal(1, result.CountsByPattern["apphost.ts"]);
194Assert.Equal(1, result.CountsByPattern["bin"]);
211Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]);
267Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]);
324Assert.Equal(2, result.CountsByPattern["AppHost.csproj"]);
346Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]);
373Assert.Equal(2, result.CountsByPattern["AppHost.csproj"]);
391Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]);
416Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]);
432Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]);
446Assert.Equal(0, result.CountsByPattern["App/AppHost.csproj"]);
463Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]);
481Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]);
482Assert.Equal(1, result.CountsByPattern["*.csproj"]);
483Assert.Equal(1, result.CountsByPattern["apphost.ts"]);
484Assert.Equal(0, result.CountsByPattern["missing.proj"]);
526Assert.Equal(1, result.CountsByPattern["App/AppHost.csproj"]);
556Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]);
557Assert.Equal(1, result.CountsByPattern["apphost.ts"]);
581Assert.Equal(1, result.CountsByPattern["AppHost.csproj"]);
Projects\AppHostServerSessionTests.cs (14)
43Assert.Equal("present", environmentVariables["EXISTING_VALUE"]);
47Assert.Equal("present", project.ReceivedEnvironmentVariables["EXISTING_VALUE"]);
48Assert.Equal(session.AuthenticationToken, project.ReceivedEnvironmentVariables[KnownConfigNames.RemoteAppHostToken]);
71Assert.Equal("present", environmentVariables["EXISTING_VALUE"]);
76Assert.Equal("present", receivedEnvironmentVariables["EXISTING_VALUE"]);
77Assert.Equal(session.AuthenticationToken, receivedEnvironmentVariables[KnownConfigNames.RemoteAppHostToken]);
78Assert.Equal("true", receivedEnvironmentVariables[ProfilingTelemetry.EnvironmentVariables.Enabled]);
79Assert.Equal("true", receivedEnvironmentVariables[KnownConfigNames.Legacy.StartupProfilingEnabled]);
80Assert.Equal("session-1", receivedEnvironmentVariables[ProfilingTelemetry.EnvironmentVariables.SessionId]);
81Assert.Equal("session-1", receivedEnvironmentVariables[KnownConfigNames.Legacy.StartupOperationId]);
82Assert.StartsWith("00-", receivedEnvironmentVariables[ProfilingTelemetry.EnvironmentVariables.TraceParent], StringComparison.Ordinal);
84receivedEnvironmentVariables[ProfilingTelemetry.EnvironmentVariables.TraceParent],
85receivedEnvironmentVariables[KnownConfigNames.Legacy.StartupTraceParent]);
111Assert.NotEqual(parentActivity.Id, receivedEnvironmentVariables[ProfilingTelemetry.EnvironmentVariables.TraceParent]);
Projects\DotNetAppHostProjectTests.cs (31)
224Assert.Equal("Development", env[KnownAspNetCoreConfigNames.DotNetEnvironment]);
226Assert.Equal("https://localhost:17193;http://localhost:15069", env[KnownAspNetCoreConfigNames.Urls]);
240Assert.Equal("Production", env[KnownAspNetCoreConfigNames.DotNetEnvironment]);
242Assert.Equal("https://localhost:17193;http://localhost:15069", env[KnownAspNetCoreConfigNames.Urls]);
257Assert.Equal("Staging", env[KnownAspNetCoreConfigNames.DotNetEnvironment]);
259Assert.Equal("https://localhost:17193;http://localhost:15069", env[KnownAspNetCoreConfigNames.Urls]);
289Assert.Equal("Production", env[KnownAspNetCoreConfigNames.DotNetEnvironment]);
291Assert.Equal("https://localhost:19000;http://localhost:15000", env[KnownAspNetCoreConfigNames.Urls]);
292Assert.Equal("https://localhost:21000", env["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]);
293Assert.Equal("https://localhost:22000", env["ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL"]);
310Assert.Equal("Staging", env[KnownAspNetCoreConfigNames.DotNetEnvironment]);
2331Assert.Equal("https://myapp.dev.localhost:17050;http://myapp.dev.localhost:15050", env[KnownAspNetCoreConfigNames.Urls]);
2332Assert.Equal("https://myapp.dev.localhost:21050", env["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]);
2333Assert.Equal("https://myapp.dev.localhost:22050", env["ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL"]);
2335Assert.Equal("Development", env[KnownAspNetCoreConfigNames.DotNetEnvironment]);
2336Assert.Equal("Development", env[KnownAspNetCoreConfigNames.Environment]);
2366Assert.Equal("https://myapp.dev.localhost:17050;http://myapp.dev.localhost:15050", env[KnownAspNetCoreConfigNames.Urls]);
2367Assert.Equal("https://myapp.dev.localhost:21050", env["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]);
2368Assert.Equal("https://myapp.dev.localhost:22050", env["ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL"]);
2370Assert.Equal("Production", env[KnownAspNetCoreConfigNames.DotNetEnvironment]);
2410Assert.Equal("https://from-run-json:19000", env[KnownAspNetCoreConfigNames.Urls]);
2411Assert.Equal("https://from-run-json:21000", env["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]);
2430Assert.Equal("https://localhost:17193;http://localhost:15069", env[KnownAspNetCoreConfigNames.Urls]);
2431Assert.Equal("Development", env[KnownAspNetCoreConfigNames.DotNetEnvironment]);
2457Assert.Equal("https://localhost:17193;http://localhost:15069", env[KnownAspNetCoreConfigNames.Urls]);
2458Assert.Equal("https://localhost:21293", env["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]);
2482Assert.Equal("https://localhost:17193;http://localhost:15069", env[KnownAspNetCoreConfigNames.Urls]);
2497Assert.Equal("https://localhost:17193;http://localhost:15069", env[KnownAspNetCoreConfigNames.Urls]);
2498Assert.Equal("Development", env[KnownAspNetCoreConfigNames.DotNetEnvironment]);
2526Assert.Equal("Staging", env[KnownAspNetCoreConfigNames.DotNetEnvironment]);
2527Assert.Equal("https://myapp.dev.localhost:17050", env[KnownAspNetCoreConfigNames.Urls]);
Projects\GuestAppHostProjectTests.cs (50)
221Assert.Equal("12.0.0", reloaded.Packages["Aspire.Hosting.Redis"]);
240Assert.Equal("13.1.0", config.Packages["Aspire.Hosting.Redis"]);
263Assert.Equal("13.1.0", config.Packages["Aspire.Hosting.Redis"]);
465Assert.Equal("https://localhost:16319;http://localhost:16320", envVars[KnownAspNetCoreConfigNames.Urls]);
466Assert.Equal("Development", envVars[KnownAspNetCoreConfigNames.Environment]);
467Assert.Equal("https://localhost:17269", envVars["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]);
468Assert.Equal("https://localhost:17269", envVars["ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL"]);
480Assert.Equal("Production", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]);
500Assert.Equal("Production", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]);
502Assert.Equal("https://localhost:16319;http://localhost:16320", envVars[KnownAspNetCoreConfigNames.Urls]);
503Assert.Equal("https://localhost:17269", envVars["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]);
504Assert.Equal("https://localhost:18269", envVars["ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL"]);
523Assert.Equal("Staging", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]);
524Assert.Equal("Development", envVars[KnownAspNetCoreConfigNames.Environment]);
525Assert.Equal("Development", envVars["ASPIRE_ENVIRONMENT"]);
561Assert.Equal("context", envVars["CUSTOM_CONTEXT_VARIABLE"]);
562Assert.Equal("https://localhost:16319;http://localhost:16320", envVars[KnownAspNetCoreConfigNames.Urls]);
563Assert.Equal("Staging", envVars["ASPIRE_ENVIRONMENT"]);
564Assert.Equal("Staging", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]);
566Assert.Equal("https://localhost:17269", envVars["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]);
567Assert.Equal("https://localhost:18269", envVars["ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL"]);
568Assert.Equal("/tmp/certs", envVars["SSL_CERT_DIR"]);
589Assert.Equal("Production", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]);
591Assert.Equal("https://localhost:16319;http://localhost:16320", envVars[KnownAspNetCoreConfigNames.Urls]);
592Assert.Equal("https://localhost:17269", envVars["ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL"]);
593Assert.Equal("https://localhost:18269", envVars["ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL"]);
608envVars["ASPIRE_APPHOST_ARGS"]);
638Assert.Equal("Staging", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]);
639Assert.Equal("Development", envVars[KnownAspNetCoreConfigNames.Environment]);
640Assert.Equal("Development", envVars["ASPIRE_ENVIRONMENT"]);
655Assert.Equal("Staging", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]);
671Assert.Equal("Production", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]);
673Assert.Equal("Staging", envVars["ASPIRE_ENVIRONMENT"]);
688Assert.Equal("Testing", envVars[KnownAspNetCoreConfigNames.DotNetEnvironment]);
689Assert.Equal("Staging", envVars[KnownAspNetCoreConfigNames.Environment]);
690Assert.Equal("Testing", envVars["ASPIRE_ENVIRONMENT"]);
706Assert.Equal("import { refExpr } from './base.js';\n// aspire.ts", convertedFiles["aspire.ts"]);
707Assert.Equal("export type { MarshalledHandle } from './transport.js';\n// base.ts", convertedFiles["base.ts"]);
708Assert.Equal("// transport.ts", convertedFiles["transport.ts"]);
771Assert.Equal("1.0.0", reloaded.Packages["Aspire.Hosting"]);
812Assert.Equal("1.0.0", reloaded.Packages["Aspire.Hosting"]);
1174Assert.Equal(expectedWorkloadId, sessionFactory.CapturedEnvironmentVariables[KnownConfigNames.DcpWorkloadId]);
1214sessionFactory.CapturedEnvironmentVariables[KnownConfigNames.AspireHome]);
1530Assert.Equal("/path/to/cert.pem", envVars["NODE_EXTRA_CA_CERTS"]);
1551Assert.Equal(devCertificatePath, envVars["NODE_EXTRA_CA_CERTS"]);
1573Assert.Equal(devCertificatePath, envVars["NODE_EXTRA_CA_CERTS"]);
1604Assert.NotEqual(devCertificatePath, envVars["NODE_EXTRA_CA_CERTS"]);
1607await File.ReadAllBytesAsync(envVars["NODE_EXTRA_CA_CERTS"], TestContext.Current.CancellationToken));
1672Assert.Equal(expectedBundlePath, envVars[certificateBundleEnvironmentVariable]);
1723Assert.Equal("missing-ca-certs.pem", envVars["NODE_EXTRA_CA_CERTS"]);
Utils\FileSystemHelperTests.cs (25)
269Assert.Equal("App1.AppHost.csproj", result[paths[0]]);
270Assert.Equal("App2.AppHost.csproj", result[paths[1]]);
284Assert.Equal(Path.Combine("folder1", "Project.csproj"), result[paths[0]]);
285Assert.Equal(Path.Combine("folder2", "Project.csproj"), result[paths[1]]);
299Assert.Equal(Path.Combine("folder1", "Project.csproj"), result[paths[0]]);
300Assert.Equal(Path.Combine("folder2", "Project.csproj"), result[paths[1]]);
314Assert.Equal(Path.Combine("a", "shared", "Project.csproj"), result[paths[0]]);
315Assert.Equal(Path.Combine("b", "shared", "Project.csproj"), result[paths[1]]);
325Assert.Equal(Path.Combine("MyApp", "AppHost.cs"), result[paths[0]]);
335Assert.Equal("MyApp.AppHost.csproj", result[paths[0]]);
348Assert.Equal(Path.Combine("App1", "AppHost.cs"), result[paths[0]]);
362Assert.Equal(Path.Combine("App1", "AppHost.cs"), result[paths[0]]);
363Assert.Equal(Path.Combine("App2", "AppHost.cs"), result[paths[1]]);
377Assert.Equal(Path.Combine("a", "src", "AppHost.cs"), result[paths[0]]);
378Assert.Equal(Path.Combine("b", "src", "AppHost.cs"), result[paths[1]]);
392Assert.Equal("App1.AppHost.csproj", result[paths[0]]);
393Assert.Equal(Path.Combine("App2", "AppHost.cs"), result[paths[1]]);
416Assert.Equal(Path.Combine("folder1", "Project.csproj"), result[paths[0]]);
417Assert.Equal(Path.Combine("folder2", "Project.csproj"), result[paths[1]]);
418Assert.Equal("Unique.csproj", result[paths[2]]);
432Assert.Equal(@"C:\folder\Project.csproj", result[paths[0]]);
433Assert.Equal(@"D:\folder\Project.csproj", result[paths[1]]);
449Assert.Equal(Path.Combine("Folder", "Project.csproj"), result[paths[0]]);
450Assert.Equal(Path.Combine("folder", "Project.csproj"), result[paths[1]]);
465Assert.Equal("Project.csproj", result[paths[0]]);
Aspire.Dashboard (17)
Aspire.Dashboard.Tests (34)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (11)
Aspire.Hosting.Azure (8)
Aspire.Hosting.Azure.AppContainers (2)
Aspire.Hosting.Azure.AppService (4)
Aspire.Hosting.Azure.Kubernetes.Tests (2)
Aspire.Hosting.Azure.Tests (102)
AzureDeployerTests.cs (46)
297Assert.Equal("testregistry", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_NAME"]);
298Assert.Equal("testregistry.azurecr.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_ENDPOINT"]);
299Assert.Equal(GetTestResourceId("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity"), containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID"]);
300Assert.Equal("test.westus.azurecontainerapps.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"]);
301Assert.Equal($"/subscriptions/{TestSubscriptionId}/resourceGroups/{TestResourceGroupName}/providers/Microsoft.App/managedEnvironments/testenv", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]);
357Assert.Equal("testregistry", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_NAME"]);
358Assert.Equal("testregistry.azurecr.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_ENDPOINT"]);
359Assert.Equal(GetTestResourceId("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity"), containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID"]);
360Assert.Equal("test.westus.azurecontainerapps.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"]);
361Assert.Equal($"/subscriptions/{TestSubscriptionId}/resourceGroups/{TestResourceGroupName}/providers/Microsoft.App/managedEnvironments/testenv", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]);
423Assert.Equal("testregistry", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_NAME"]);
424Assert.Equal("testregistry.azurecr.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_ENDPOINT"]);
425Assert.Equal(GetTestResourceId("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity"), containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID"]);
426Assert.Equal("test.westus.azurecontainerapps.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"]);
427Assert.Equal($"/subscriptions/{TestSubscriptionId}/resourceGroups/{TestResourceGroupName}/providers/Microsoft.App/managedEnvironments/testenv", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]);
491var (containerAppSubscriptionId, containerAppResourceGroupName) = GetSubscriptionAndResourceGroup((string)containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]!);
551var webSiteSuffix = Assert.IsType<string>(appServiceEnv.Resource.Outputs["webSiteSuffix"]);
553var (planSubscriptionId, planResourceGroupName) = GetSubscriptionAndResourceGroup((string)appServiceEnv.Resource.Outputs["planId"]!);
646Assert.Equal("acaregistry", acaEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_NAME"]);
647Assert.Equal("acaregistry.azurecr.io", acaEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_ENDPOINT"]);
648Assert.Equal(GetTestResourceId("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/aca-identity"), acaEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID"]);
649Assert.Equal("aca.westus.azurecontainerapps.io", acaEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"]);
650Assert.Equal(GetTestResourceId("/providers/Microsoft.App/managedEnvironments/acaenv"), acaEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]);
653Assert.Equal("aasregistry", aasEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_NAME"]);
654Assert.Equal("aasregistry.azurecr.io", aasEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_ENDPOINT"]);
655Assert.Equal(GetTestResourceId("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/aas-identity"), aasEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID"]);
656Assert.Equal(GetTestResourceId("/providers/Microsoft.Web/serverfarms/aasplan"), aasEnv.Resource.Outputs["planId"]);
657Assert.Equal("aas-client-id", aasEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_CLIENT_ID"]);
897Assert.Equal("testregistry", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_NAME"]);
898Assert.Equal("testregistry.azurecr.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_ENDPOINT"]);
899Assert.Equal(GetTestResourceId("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity"), containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID"]);
900Assert.Equal("test.westus.azurecontainerapps.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"]);
901Assert.Equal($"/subscriptions/{TestSubscriptionId}/resourceGroups/{TestResourceGroupName}/providers/Microsoft.App/managedEnvironments/testenv", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]);
959Assert.Equal("test.westus.azurecontainerapps.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"]);
960Assert.Equal(GetTestResourceId("/providers/Microsoft.App/managedEnvironments/testenv"), containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]);
1169Assert.Equal("testregistry", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_NAME"]);
1170Assert.Equal("testregistry.azurecr.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_ENDPOINT"]);
1171Assert.Equal(GetTestResourceId("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity"), containerAppEnv.Resource.Outputs["AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID"]);
1172Assert.Equal("test.westus.azurecontainerapps.io", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"]);
1173Assert.Equal($"/subscriptions/{TestSubscriptionId}/resourceGroups/{TestResourceGroupName}/providers/Microsoft.App/managedEnvironments/testenv", containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]);
1178Assert.Equal(await ((BicepOutputReference)funcAppDeployment.Parameters["env_outputs_azure_container_apps_environment_default_domain"]!).GetValueAsync(), containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN"]);
1179Assert.Equal(await ((BicepOutputReference)funcAppDeployment.Parameters["env_outputs_azure_container_apps_environment_id"]!).GetValueAsync(), containerAppEnv.Resource.Outputs["AZURE_CONTAINER_APPS_ENVIRONMENT_ID"]);
1180Assert.Equal("https://testfuncstorage.blob.core.windows.net/", await ((BicepOutputReference)funcAppDeployment.Parameters["funcstorage_outputs_blobendpoint"]!).GetValueAsync());
1181Assert.Equal("https://testhoststorage.blob.core.windows.net/", await ((BicepOutputReference)funcAppDeployment.Parameters["hoststorage_outputs_blobendpoint"]!).GetValueAsync());
ResourceWithAzureFunctionsConfigTests.cs (22)
255var targetReferenceExpression = Assert.IsType<ReferenceExpression>(target["cosmosdb__accountEndpoint"]);
258targetReferenceExpression = Assert.IsType<ReferenceExpression>(target["Aspire__Microsoft__Azure__Cosmos__cosmosdb__AccountEndpoint"]);
261Assert.Equal(dbResource.DatabaseName, target["Aspire__Microsoft__Azure__Cosmos__cosmosdb__DatabaseName"]);
263Assert.Equal(dbResource.DatabaseName, target["Aspire__Microsoft__EntityFrameworkCore__Cosmos__cosmosdb__DatabaseName"]);
280var targetReferenceExpression = Assert.IsType<ReferenceExpression>(target["cosmosdb__accountEndpoint"]);
283targetReferenceExpression = Assert.IsType<ReferenceExpression>(target["Aspire__Microsoft__Azure__Cosmos__cosmosdb__AccountEndpoint"]);
286Assert.Equal(target["Aspire__Microsoft__Azure__Cosmos__cosmosdb__DatabaseName"], containerResource.Parent.DatabaseName);
287Assert.Equal(target["Aspire__Microsoft__Azure__Cosmos__cosmosdb__ContainerName"], containerResource.ContainerName);
289Assert.Equal(target["Aspire__Microsoft__EntityFrameworkCore__Cosmos__cosmosdb__DatabaseName"], containerResource.Parent.DatabaseName);
290Assert.Equal(target["Aspire__Microsoft__EntityFrameworkCore__Cosmos__cosmosdb__ContainerName"], containerResource.ContainerName);
308var targetReferenceExpression = Assert.IsType<ReferenceExpression>(target["cosmosdb"]);
311targetReferenceExpression = Assert.IsType<ReferenceExpression>(target["Aspire__Microsoft__Azure__Cosmos__cosmosdb__ConnectionString"]);
330var targetReferenceExpression = Assert.IsType<ReferenceExpression>(target["cosmosdb"]);
333targetReferenceExpression = Assert.IsType<ReferenceExpression>(target["Aspire__Microsoft__Azure__Cosmos__cosmosdb__ConnectionString"]);
409Assert.Equal("ordersqueue", target["Aspire__Azure__Messaging__ServiceBus__myqueue__QueueOrTopicName"]);
428var connectionStringExpression = Assert.IsType<ReferenceExpression>(target["Aspire__Azure__Messaging__ServiceBus__myqueue__ConnectionString"]);
448Assert.Equal("notificationstopic", target["Aspire__Azure__Messaging__ServiceBus__mytopic__QueueOrTopicName"]);
467var connectionStringExpression = Assert.IsType<ReferenceExpression>(target["Aspire__Azure__Messaging__ServiceBus__mytopic__ConnectionString"]);
489Assert.Equal("notificationstopic", target["Aspire__Azure__Messaging__ServiceBus__mysub__QueueOrTopicName"]);
490Assert.Equal("usersubscription", target["Aspire__Azure__Messaging__ServiceBus__mysub__SubscriptionName"]);
511var connectionStringExpression = Assert.IsType<ReferenceExpression>(target["Aspire__Azure__Messaging__ServiceBus__mysub__ConnectionString"]);
514connectionStringExpression = Assert.IsType<ReferenceExpression>(target["mysub"]);
Aspire.Hosting.Blazor.Tests (64)
BlazorHostedExtensionsTests.cs (19)
31Assert.Equal("cluster-weatherapi", env["ReverseProxy__Routes__route-weatherapi__ClusterId"]);
32Assert.Equal("/_api/weatherapi/{**catch-all}", env["ReverseProxy__Routes__route-weatherapi__Match__Path"]);
33Assert.Equal("/_api/weatherapi", env["ReverseProxy__Routes__route-weatherapi__Transforms__0__PathRemovePrefix"]);
34Assert.Equal("https+http://weatherapi", env["ReverseProxy__Clusters__cluster-weatherapi__Destinations__d1__Address"]);
53var configJson = ResolveManifestExpression(env["Client__ConfigResponse"]);
57Assert.Equal("/_blazor/_configuration", env["Client__ConfigEndpointPath"]);
73Assert.Equal("cluster-otlp-dashboard", env["ReverseProxy__Routes__route-otlp__ClusterId"]);
74Assert.Equal("/_otlp/{**catch-all}", env["ReverseProxy__Routes__route-otlp__Match__Path"]);
75Assert.Equal("/_otlp", env["ReverseProxy__Routes__route-otlp__Transforms__0__PathRemovePrefix"]);
91var configJson = ResolveManifestExpression(env["Client__ConfigResponse"]);
121var configJson = ResolveManifestExpression(env["Client__ConfigResponse"]);
148var configJson = ResolveManifestExpression(env["Client__ConfigResponse"]);
297var configJson = ResolveManifestExpression(env["Client__ConfigResponse"]);
319var configJson = ResolveManifestExpression(env["Client__ConfigResponse"]);
362Assert.Equal("/weather/weatherapi/{**catch-all}", env["ReverseProxy__Routes__route-weatherapi__Match__Path"]);
363Assert.Equal("/weather/weatherapi", env["ReverseProxy__Routes__route-weatherapi__Transforms__0__PathRemovePrefix"]);
364Assert.Equal("/catalog/catalogapi/{**catch-all}", env["ReverseProxy__Routes__route-catalogapi__Match__Path"]);
365Assert.Equal("/catalog/catalogapi", env["ReverseProxy__Routes__route-catalogapi__Transforms__0__PathRemovePrefix"]);
368var configJson = ResolveManifestExpression(env["Client__ConfigResponse"]);
GatewayConfigurationBuilderTests.cs (41)
29Assert.Equal("cluster-weatherapi", env["ReverseProxy__Routes__route-store-weatherapi__ClusterId"]);
30Assert.Equal("/store/_api/weatherapi/{**catch-all}", env["ReverseProxy__Routes__route-store-weatherapi__Match__Path"]);
31Assert.Equal("/store/_api/weatherapi", env["ReverseProxy__Routes__route-store-weatherapi__Transforms__0__PathRemovePrefix"]);
51Assert.Equal("https+http://weatherapi", env["ReverseProxy__Clusters__cluster-weatherapi__Destinations__d1__Address"]);
76Assert.Equal("https+http://_api.weatherapi", env["ReverseProxy__Clusters__cluster-weatherapi__Destinations__api__Address"]);
101Assert.Equal("https+http://_public.weatherapi", env["ReverseProxy__Clusters__cluster-weatherapi__Destinations__public__Address"]);
102Assert.Equal("https+http://_admin.weatherapi", env["ReverseProxy__Clusters__cluster-weatherapi__Destinations__admin__Address"]);
105Assert.Equal("cluster-weatherapi", env["ReverseProxy__Routes__route-store-weatherapi__ClusterId"]);
126Assert.Equal("https+http://weatherapi", env["ReverseProxy__Clusters__cluster-weatherapi__Destinations__d1__Address"]);
146Assert.Equal("cluster-otlp-dashboard", env["ReverseProxy__Routes__route-otlp-store__ClusterId"]);
147Assert.Equal("/store/_otlp/{**catch-all}", env["ReverseProxy__Routes__route-otlp-store__Match__Path"]);
148Assert.Equal("/store/_otlp", env["ReverseProxy__Routes__route-otlp-store__Transforms__0__PathRemovePrefix"]);
173Assert.Equal("https+http://weatherapi", env["ReverseProxy__Clusters__cluster-weatherapi__Destinations__d1__Address"]);
223Assert.Equal("x-otlp-api-key", env["ReverseProxy__Routes__route-otlp-store__Transforms__1__RequestHeader"]);
224Assert.Equal("abc123", env["ReverseProxy__Routes__route-otlp-store__Transforms__1__Set"]);
228var configResponse = (IManifestExpressionProvider)env["ClientApps__store__ConfigResponse"];
252Assert.Equal("http://localhost:4317", env["ReverseProxy__Clusters__cluster-otlp-dashboard__Destinations__d1__Address"]);
276var configResponse = env["ClientApps__store__ConfigResponse"];
298var configResponse = (IManifestExpressionProvider)env["ClientApps__store__ConfigResponse"];
324var configResponse = (IManifestExpressionProvider)env["ClientApps__store__ConfigResponse"];
346var configResponse = (IManifestExpressionProvider)env["ClientApps__store__ConfigResponse"];
372Assert.Equal("/store/myapi/weatherapi/{**catch-all}", env["ReverseProxy__Routes__route-store-weatherapi__Match__Path"]);
373Assert.Equal("/store/myapi/weatherapi", env["ReverseProxy__Routes__route-store-weatherapi__Transforms__0__PathRemovePrefix"]);
376Assert.Equal("/store/myotlp/{**catch-all}", env["ReverseProxy__Routes__route-otlp-store__Match__Path"]);
377Assert.Equal("/store/myotlp", env["ReverseProxy__Routes__route-otlp-store__Transforms__0__PathRemovePrefix"]);
402Assert.Equal("/store/_api/weatherapi/{**catch-all}", env["ReverseProxy__Routes__route-store-weatherapi__Match__Path"]);
403Assert.Equal("/admin/_api/weatherapi/{**catch-all}", env["ReverseProxy__Routes__route-admin-weatherapi__Match__Path"]);
406Assert.Equal("/store/_api/catalogapi/{**catch-all}", env["ReverseProxy__Routes__route-store-catalogapi__Match__Path"]);
407Assert.Equal("/admin/_api/usersapi/{**catch-all}", env["ReverseProxy__Routes__route-admin-usersapi__Match__Path"]);
410Assert.Equal("https+http://weatherapi", env["ReverseProxy__Clusters__cluster-weatherapi__Destinations__d1__Address"]);
411Assert.Equal("https+http://catalogapi", env["ReverseProxy__Clusters__cluster-catalogapi__Destinations__d1__Address"]);
412Assert.Equal("https+http://usersapi", env["ReverseProxy__Clusters__cluster-usersapi__Destinations__d1__Address"]);
415Assert.Equal("http://localhost:18890", env["ReverseProxy__Clusters__cluster-otlp-dashboard__Destinations__d1__Address"]);
416Assert.Equal("cluster-otlp-dashboard", env["ReverseProxy__Routes__route-otlp-store__ClusterId"]);
417Assert.Equal("cluster-otlp-dashboard", env["ReverseProxy__Routes__route-otlp-admin__ClusterId"]);
420Assert.Equal("/store/_otlp/{**catch-all}", env["ReverseProxy__Routes__route-otlp-store__Match__Path"]);
421Assert.Equal("/admin/_otlp/{**catch-all}", env["ReverseProxy__Routes__route-otlp-admin__Match__Path"]);
428var storeConfig = (IManifestExpressionProvider)env["ClientApps__store__ConfigResponse"];
429var adminConfig = (IManifestExpressionProvider)env["ClientApps__admin__ConfigResponse"];
460var configResponse = (IManifestExpressionProvider)env["ClientApps__store__ConfigResponse"];
538env["ReverseProxy__Clusters__cluster-otlp-dashboard__Destinations__d1__Address"]);
Aspire.Hosting.Browsers.Tests (7)
Aspire.Hosting.CodeGeneration.Go (8)
Aspire.Hosting.CodeGeneration.Go.Tests (13)
Aspire.Hosting.CodeGeneration.Java (5)
Aspire.Hosting.CodeGeneration.Java.Tests (15)
Aspire.Hosting.CodeGeneration.Python (2)
Aspire.Hosting.CodeGeneration.Python.Tests (10)
Aspire.Hosting.CodeGeneration.Rust (3)
Aspire.Hosting.CodeGeneration.Rust.Tests (13)
RustLanguageSupportTests.cs (7)
29Assert.Contains("#[path = \".aspire/modules/mod.rs\"]", files["apphost.rs"], StringComparison.Ordinal);
30Assert.Contains("let builder = create_builder(None)?;", files["apphost.rs"], StringComparison.Ordinal);
31Assert.Contains("app.run(None)?;", files["apphost.rs"], StringComparison.Ordinal);
32Assert.Contains("[[bin]]", files["Cargo.toml"], StringComparison.Ordinal);
33Assert.Contains("name = \"apphost\"", files["Cargo.toml"], StringComparison.Ordinal);
34Assert.Contains("path = \"apphost.rs\"", files["Cargo.toml"], StringComparison.Ordinal);
105var multiBinaryManifest = files["Cargo.toml"] + """
Aspire.Hosting.CodeGeneration.TypeScript (1)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (46)
AtsTypeScriptCodeGeneratorTests.cs (36)
61Assert.Equal(EmbeddedResources.Read("base.mts"), files["base.mts"]);
62Assert.Equal(EmbeddedResources.Read("transport.mts"), files["transport.mts"]);
80await Verify(files["aspire.mts"], extension: "ts")
93var aspireTs = files["aspire.mts"];
107var aspireTs = files["aspire.mts"];
110Assert.Contains("export class ReferenceExpression {", files["base.mts"]);
111Assert.Contains("registerHandleWrapper('Aspire.Hosting/Aspire.Hosting.ApplicationModel.ReferenceExpression'", files["base.mts"]);
112Assert.Contains("condition: extractHandleForExpr(state.condition),", files["base.mts"]);
113Assert.Contains("('$handle' in json || '$expr' in json)", files["base.mts"]);
114Assert.Contains("registerCancellation(state.client, cancellationToken)", files["base.mts"]);
199var aspireTs = files["aspire.mts"];
224var aspireTs = files["aspire.mts"];
246var aspireTs = files["aspire.mts"];
267var aspireTs = files["aspire.mts"];
484var aspireTs = files["aspire.mts"];
760var aspireTs = files["aspire.mts"];
772var aspireTs = files["aspire.mts"];
1018var aspireTs = files["aspire.mts"];
1042var aspireTs = files["aspire.mts"];
1060var aspireTs = files["aspire.mts"];
1091var aspireTs = files["aspire.mts"];
1182var aspireTs = files["aspire.mts"];
1300AssertRpcHandlesMatchConstructedWrappers(files["aspire.mts"]);
1370var aspireTs = files["aspire.mts"];
1388var aspireTs = files["aspire.mts"];
1406var aspireTs = files["aspire.mts"];
1463var aspireTs = files["aspire.mts"];
1728var aspireTs = files["aspire.mts"];
1902return files["aspire.mts"];
2107var code = files["aspire.mts"];
2129var code = files["aspire.mts"];
2151var code = files["aspire.mts"];
2169var code = files["aspire.mts"];
2200var code = files["aspire.mts"];
2701methodsByCapability[eventHubsCapability.CapabilityId].Declaration,
2705methodsByCapability[serviceBusCapability.CapabilityId].Declaration,
Aspire.Hosting.Containers.Tests (1)
Aspire.Hosting.DevTunnels.Tests (2)
Aspire.Hosting.Docker (4)
Aspire.Hosting.Docker.Tests (6)
Aspire.Hosting.Foundry.Tests (1)
Aspire.Hosting.Java.Tests (32)
AddJavaAppTests.cs (14)
612Assert.Equal("-Xmx512m -Xms256m", envVars["JAVA_TOOL_OPTIONS"]);
641Assert.Equal("-Xmx512m -Xms256m", envVars["JAVA_TOOL_OPTIONS"]);
679Assert.False(string.IsNullOrEmpty(envVars["OTEL_EXPORTER_OTLP_ENDPOINT"]));
697Assert.Equal($"-javaagent:{AbsoluteAgentPath}", envVars["JAVA_TOOL_OPTIONS"]);
714Assert.Equal($"-javaagent:{AbsoluteAgentPath}", envVars["JAVA_TOOL_OPTIONS"]);
729Assert.Equal($"-Xmx512m -javaagent:{AbsoluteAgentPath}", envVars["JAVA_TOOL_OPTIONS"]);
949Assert.Equal($"\"-javaagent:{agentPath}\"", envVars["JAVA_TOOL_OPTIONS"]);
965Assert.Equal("-Dapp.data.dir=\"/var/lib/my app\"", envVars["JAVA_TOOL_OPTIONS"]);
986Assert.Equal($"-javaagent:{expected}", envVars["JAVA_TOOL_OPTIONS"]);
1004Assert.Equal("-javaagent:/app/agent.jar", envVars["JAVA_TOOL_OPTIONS"]);
1020Assert.Equal($"-javaagent:{ContainerProvidedAgentPath}", envVars["JAVA_TOOL_OPTIONS"]);
1231Assert.Equal("-javaagent:/opt/coverage-agent.jar", envVars["JAVA_TOOL_OPTIONS"]);
1280Assert.Equal("-Xmx1g", envVars["JAVA_TOOL_OPTIONS"]);
1298Assert.Equal($"-javaagent:{AbsoluteAgentPath}", envVars["JAVA_TOOL_OPTIONS"]);
Aspire.Hosting.JavaScript.Tests (13)
Aspire.Hosting.Keycloak.Tests (1)
Aspire.Hosting.Kubernetes (4)
Aspire.Hosting.Kubernetes.Tests (8)
Aspire.Hosting.Maui (3)
Aspire.Hosting.Maui.Tests (5)
Aspire.Hosting.MySql.Tests (3)
Aspire.Hosting.Orleans.Tests (5)
Aspire.Hosting.PostgreSQL.Tests (2)
Aspire.Hosting.Python.Tests (3)
Aspire.Hosting.Qdrant.Tests (2)
Aspire.Hosting.Radius (4)
Aspire.Hosting.Radius.Tests (7)
Aspire.Hosting.Redis.Tests (3)
Aspire.Hosting.RemoteHost.Tests (2)
Aspire.Hosting.Sdk.Tests (63)
AppHostSdkTargetsTests.cs (63)
112Assert.Equal("Aspire", properties["_AspireResolvedCliInvocationMode"]);
113Assert.Equal("13.5.0", properties["_AspireResolvedCliVersion"]);
114Assert.Equal("true", properties["_AspireCliVersionSupportsRunHook"]);
115Assert.Equal(GetExpectedAspireRunCommand(aspireCliPath), properties["RunCommand"]);
116Assert.Equal(GetExpectedAspireRunArguments(aspireCliPath, project, "--custom foo"), properties["RunArguments"]);
117Assert.Equal(project.ProjectDirectory, properties["RunWorkingDirectory"]);
151Assert.Equal("Dnx", properties["_AspireResolvedCliInvocationMode"]);
152Assert.Equal("13.5.0", properties["_AspireResolvedCliVersion"]);
153Assert.Equal("true", properties["_AspireCliVersionSupportsRunHook"]);
154Assert.Equal(GetExpectedDnxRunCommand(dnxPath), properties["RunCommand"]);
155Assert.Equal(GetExpectedDnxRunArguments(dnxPath, project, "--custom foo"), properties["RunArguments"]);
156Assert.Contains($"aspire.cli@{AspireCliVersion}", properties["_AspireCliVersionCommand"]);
157Assert.Equal(project.ProjectDirectory, properties["RunWorkingDirectory"]);
181Assert.Equal("Dnx", properties["_AspireResolvedCliInvocationMode"]);
182Assert.Equal("13.5.0", properties["_AspireResolvedCliVersion"]);
183Assert.Equal("true", properties["_AspireCliVersionSupportsRunHook"]);
184Assert.Equal(GetExpectedDnxRunCommand(dnxPath), properties["RunCommand"]);
185Assert.Equal(GetExpectedDnxRunArguments(dnxPath, project, "--custom foo", pinned: false), properties["RunArguments"]);
186Assert.Contains("--yes aspire.cli -- --version", properties["_AspireCliVersionCommand"]);
187Assert.Equal(project.ProjectDirectory, properties["RunWorkingDirectory"]);
242Assert.Equal(executableDnxPath, properties["_AspireResolvedDnxPath"]);
261Assert.Equal(aspireCliPath, properties["_AspireResolvedCliPath"]);
262Assert.True(Path.IsPathFullyQualified(properties["_AspireResolvedCliPath"]));
314Assert.Equal("cmd", properties["RunCommand"]);
315Assert.Equal(GetExpectedWindowsCommandShimRunArguments(project, aspireCliPath, "--custom foo"), properties["RunArguments"]);
380Assert.Equal(GetExpectedAspireRunCommand(aspireCliPath), properties["RunCommand"]);
381Assert.Equal(GetExpectedAspireRunArguments(aspireCliPath, appHostFile, "--custom foo"), properties["RunArguments"]);
382Assert.Equal(appHostDirectory, properties["RunWorkingDirectory"]);
617Assert.Equal("Dnx", properties["_AspireResolvedCliInvocationMode"]);
618Assert.Equal("13.5.0", properties["_AspireResolvedCliVersion"]);
619Assert.Equal("true", properties["_AspireCliVersionSupportsRunHook"]);
620Assert.Equal(GetExpectedDnxRunCommand(dnxPath), properties["RunCommand"]);
621Assert.Equal(GetExpectedDnxRunArguments(dnxPath, project, "--custom foo"), properties["RunArguments"]);
662Assert.Equal("Dnx", properties["_AspireResolvedCliInvocationMode"]);
663Assert.Equal(dnxBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"]));
664Assert.Equal(dnxBundle.ManagedDirectory, Path.TrimEndingDirectorySeparator(properties["AspireDashboardDir"]));
665Assert.Equal(dnxBundle.ManagedPath, properties["AspireDashboardPath"]);
666Assert.NotEqual(staleBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"]));
690Assert.Equal(aspireCliPath, properties["_AspireResolvedCliPath"]);
691Assert.Equal(selectedBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"]));
692Assert.Equal(selectedBundle.ManagedDirectory, Path.TrimEndingDirectorySeparator(properties["AspireDashboardDir"]));
693Assert.Equal(selectedBundle.ManagedPath, properties["AspireDashboardPath"]);
717Assert.Equal("Aspire", properties["_AspireResolvedCliInvocationMode"]);
718Assert.Equal(selectedCliPath, properties["_AspireResolvedCliPath"]);
719Assert.Equal(selectedBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"]));
720Assert.Equal(selectedBundle.ManagedDirectory, Path.TrimEndingDirectorySeparator(properties["AspireDashboardDir"]));
721Assert.Equal(selectedBundle.ManagedPath, properties["AspireDashboardPath"]);
722Assert.NotEqual(staleBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"]));
746Assert.Equal(selectedBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"]));
747Assert.Equal(selectedBundle.ManagedDirectory, Path.TrimEndingDirectorySeparator(properties["AspireDashboardDir"]));
748Assert.Equal(selectedBundle.ManagedPath, properties["AspireDashboardPath"]);
957Assert.Equal("Dnx", properties["_AspireResolvedCliInvocationMode"]);
958Assert.Equal("13.5.0", properties["_AspireResolvedCliVersion"]);
959Assert.Equal("true", properties["_AspireCliVersionSupportsRunHook"]);
960Assert.Equal(GetExpectedDnxRunCommand(dnxPath), properties["RunCommand"]);
961Assert.Equal(GetExpectedDnxRunArguments(dnxPath, project, "--custom foo"), properties["RunArguments"]);
1736Assert.Equal("cmd", properties["RunCommand"]);
1737Assert.Equal(GetExpectedWindowsCommandShimRunArguments(project, cliPath, expectedArguments), properties["RunArguments"]);
1741Assert.Equal(cliPath, properties["RunCommand"]);
1742Assert.Equal(GetExpectedExplicitAspireRunArguments(project, expectedArguments), properties["RunArguments"]);
1747Assert.Equal(GetExpectedDotNetRunCommand(project), properties["RunCommand"]);
1748Assert.Equal(expectedArguments, properties["RunArguments"]);
1749Assert.Equal(project.ProjectDirectory, properties["RunWorkingDirectory"]);
Aspire.Hosting.Tests (196)
Backchannel\JsonElementConversionTests.cs (11)
99Assert.Equal("test", dict["name"]);
100Assert.Equal(123, dict["value"]);
110var nested = Assert.IsType<Dictionary<string, object?>>(dict["outer"]);
111Assert.Equal("value", nested["inner"]);
148Assert.Equal("SELECT * FROM users", dict["query"]);
149Assert.Equal(100, dict["limit"]);
150Assert.Equal(false, dict["includeDeleted"]);
152var filters = Assert.IsType<object?[]>(dict["filters"]);
157var options = Assert.IsType<Dictionary<string, object?>>(dict["options"]);
158Assert.Equal(30, options["timeout"]);
159Assert.Equal(3, options["retries"]);
ProjectResourceTests.cs (12)
440Assert.Equal("http://localhost:p0;https://localhost:p1", config[KnownAspNetCoreConfigNames.Urls]);
441Assert.Equal("5001", config[KnownAspNetCoreConfigNames.HttpsPort]);
442Assert.Equal("p2", config["SOME_ENV"]);
483Assert.Equal("http://localhost:p0;https://localhost:p1", config[KnownAspNetCoreConfigNames.Urls]);
484Assert.Equal("5001", config[KnownAspNetCoreConfigNames.HttpsPort]);
485Assert.Equal("p2", config["SOME_ENV"]);
530Assert.Equal("http://localhost:p0", config[KnownAspNetCoreConfigNames.Urls]);
557Assert.Equal("https://localhost:p2;http://localhost:p0;http://localhost:p1;https://localhost:p3;https://localhost:p4", config[KnownAspNetCoreConfigNames.Urls]);
560Assert.Equal("7144", config[KnownAspNetCoreConfigNames.HttpsPort]);
756Assert.Equal("http://*:p0;https://*:p1", config[KnownAspNetCoreConfigNames.Urls]);
760Assert.Equal($"http://*:{http.TargetPort};https://*:{https.TargetPort}", config[KnownAspNetCoreConfigNames.Urls]);
763Assert.Equal(https.Port.ToString(), config[KnownAspNetCoreConfigNames.HttpsPort]);
Publishing\ResourceContainerImageManagerTests.cs (22)
765Assert.Equal("1.22", fakeContainerRuntime.CapturedBuildArguments["GO_VERSION"]);
766Assert.Equal("static-value", fakeContainerRuntime.CapturedBuildArguments["STATIC_ARG"]);
771Assert.Equal("mysecret", fakeContainerRuntime.CapturedBuildSecrets["SECRET_ASENV"].Value);
772Assert.Equal(BuildImageSecretType.Environment, fakeContainerRuntime.CapturedBuildSecrets["SECRET_ASENV"].Type);
831Assert.Equal("test-value", fakeContainerRuntime.CapturedBuildArguments["STRING_ARG"]);
834Assert.Equal("true", fakeContainerRuntime.CapturedBuildArguments["BOOL_TRUE_ARG"]);
835Assert.Equal("false", fakeContainerRuntime.CapturedBuildArguments["BOOL_FALSE_ARG"]);
838Assert.Null(fakeContainerRuntime.CapturedBuildArguments["NULL_ARG"]);
841Assert.Equal("direct-string", fakeContainerRuntime.CapturedBuildArguments["DIRECT_STRING_ARG"]);
844Assert.Equal("", fakeContainerRuntime.CapturedBuildArguments["EMPTY_STRING_ARG"]);
847Assert.Equal(tempFile, fakeContainerRuntime.CapturedBuildArguments["FILEINFO_ARG"]);
850Assert.Equal("provider-value", fakeContainerRuntime.CapturedBuildArguments["VALUEPROVIDER_ARG"]);
853Assert.Equal("42", fakeContainerRuntime.CapturedBuildArguments["INT_ARG"]);
856Assert.Equal("3.14", fakeContainerRuntime.CapturedBuildArguments["DECIMAL_ARG"]);
927Assert.Equal("secret-value", fakeContainerRuntime.CapturedBuildSecrets["STRING_SECRET"].Value);
928Assert.Equal(BuildImageSecretType.Environment, fakeContainerRuntime.CapturedBuildSecrets["STRING_SECRET"].Type);
931Assert.Null(fakeContainerRuntime.CapturedBuildSecrets["NULL_SECRET"].Value);
932Assert.Equal(BuildImageSecretType.Environment, fakeContainerRuntime.CapturedBuildSecrets["NULL_SECRET"].Type);
980Assert.Equal("env-secret-value", fakeContainerRuntime.CapturedBuildSecrets["ENV_SECRET"].Value);
981Assert.Equal(BuildImageSecretType.Environment, fakeContainerRuntime.CapturedBuildSecrets["ENV_SECRET"].Type);
984Assert.Equal(new FileInfo(tempSecretFile).FullName, fakeContainerRuntime.CapturedBuildSecrets["FILE_SECRET"].Value);
985Assert.Equal(BuildImageSecretType.File, fakeContainerRuntime.CapturedBuildSecrets["FILE_SECRET"].Type);
WithEnvironmentTests.cs (22)
37Assert.Equal("true", config["SP_AVAILABLE"]);
57Assert.Equal("https://localhost:2000", config["myName"]);
78Assert.Equal("value", config["myName"]);
94Assert.Equal("value", config["myName"]);
110Assert.Equal("value2", config["myName"]);
127Assert.Equal("MY_PARAMETER_VALUE", config["MY_PARAMETER"]);
151Assert.Equal("{parameter.value}", config["MY_PARAMETER"]);
193Assert.Equal("value2", config["myName"]);
217Assert.Equal("value2", config["myName"]);
248Assert.Equal($"http://container1.dev.internal:10005/foo", config["URL"]);
249Assert.Equal("10005", config["PORT"]);
250Assert.Equal("10005", config["TARGET_PORT"]);
251Assert.Equal("connectionString;name=1", config["HOST"]);
254Assert.Equal("{container1.bindings.primary.url}/foo", manifestConfig["URL"]);
255Assert.Equal("{container1.bindings.primary.port}", manifestConfig["PORT"]);
256Assert.Equal("{container1.bindings.primary.targetPort}", manifestConfig["TARGET_PORT"]);
257Assert.Equal("{test.connectionString};name=1", manifestConfig["HOST"]);
382Assert.Equal("test-runtime-value", runtimeConfig["TEST_VAR"]);
390Assert.Equal("test-manifest-expression", manifestConfig["TEST_VAR"]);
416Assert.Equal("test-value", config["TEST_VAR"]);
463Assert.Equal("90", runtimeConfig["ENDPOINT_PORT"]);
471Assert.Equal("{container1.bindings.primary.port}", manifestConfig["ENDPOINT_PORT"]);
WithOtlpExporterTests.cs (11)
50Assert.Equal(expectedUrl, config["OTEL_EXPORTER_OTLP_ENDPOINT"]);
51Assert.Equal(expectedProtocol, config["OTEL_EXPORTER_OTLP_PROTOCOL"]);
115Assert.Equal($"http://localhost:{allocatedPort}", config["OTEL_EXPORTER_OTLP_ENDPOINT"]);
116Assert.Equal(expectedProtocol, config["OTEL_EXPORTER_OTLP_PROTOCOL"]);
148Assert.Equal("http://localhost:52000", config["OTEL_EXPORTER_OTLP_ENDPOINT"]);
149Assert.Equal("grpc", config["OTEL_EXPORTER_OTLP_PROTOCOL"]);
171Assert.Equal("http://localhost:18889", config["OTEL_EXPORTER_OTLP_ENDPOINT"]);
172Assert.Equal("grpc", config["OTEL_EXPORTER_OTLP_PROTOCOL"]);
200Assert.Equal("http://localhost:52000", config["OTEL_EXPORTER_OTLP_ENDPOINT"]);
201Assert.Equal("grpc", config["OTEL_EXPORTER_OTLP_PROTOCOL"]);
265Assert.Equal("http://localhost:4317", config["OTEL_EXPORTER_OTLP_ENDPOINT"]);
WithReferenceTests.cs (45)
31Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]);
32Assert.Equal("https://localhost:2000", config["PROJECTA_MYBINDING"]);
54Assert.Equal("https://localhost:2000", config["services__project-a__mybinding__0"]);
55Assert.Equal("https://localhost:2000", config["PROJECT_A_MYBINDING"]);
74Assert.Equal("https://localhost:2000", config["services__custom-name__mybinding__0"]);
75Assert.Equal("https://localhost:2000", config["custom_name_MYBINDING"]);
107Assert.Equal("https://localhost:2000", config["services__custom__mybinding__0"]);
108Assert.Equal("https://localhost:2000", config["custom_MYBINDING"]);
153Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]);
154Assert.Equal("https://localhost:3000", config["services__projecta__myconflictingbinding__0"]);
156Assert.Equal("https://localhost:2000", config["PROJECTA_MYBINDING"]);
157Assert.Equal("https://localhost:3000", config["PROJECTA_MYCONFLICTINGBINDING"]);
181Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]);
182Assert.Equal("http://localhost:3000", config["services__projecta__mynonconflictingbinding__0"]);
184Assert.Equal("https://localhost:2000", config["PROJECTA_MYBINDING"]);
185Assert.Equal("http://localhost:3000", config["PROJECTA_MYNONCONFLICTINGBINDING"]);
207Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]);
208Assert.Equal("https://localhost:3000", config["services__projecta__mybinding2__0"]);
210Assert.Equal("https://localhost:2000", config["PROJECTA_MYBINDING"]);
211Assert.Equal("https://localhost:3000", config["PROJECTA_MYBINDING2"]);
236Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]);
237Assert.Equal("http://localhost:3000", config["services__projecta__mybinding2__0"]);
239Assert.Equal("https://localhost:2000", config["PROJECTA_MYBINDING"]);
240Assert.Equal("http://localhost:3000", config["PROJECTA_MYBINDING2"]);
266Assert.Equal("123", config["ConnectionStrings__db"]);
267Assert.Equal("http://localhost:2000", config["services__api__http__0"]);
288Assert.Equal("123", config["ConnectionStrings__db"]);
289Assert.Equal("http://localhost:2000", config["services__resource__http__0"]);
363Assert.Equal("test connection string", config["ConnectionStrings__resource"]);
379Assert.Equal("{resource.connectionString}", config["ConnectionStrings__resource"]);
395Assert.Equal("{resource.connectionString}", config["MY_ENV"]);
446Assert.Equal("Endpoint=http://localhost:3452;Key=secretKey", config["ConnectionStrings__cs"]);
498Assert.Equal("Endpoint=http://localhost:3452;Key=secretKey", config["ConnectionStrings__cs"]);
834Assert.Equal("http://localhost:2000", config["services__projecta__api__0"]);
835Assert.Equal("http://localhost:2000", config["PROJECTA_API"]);
864Assert.Equal("http://localhost:3000", config["services__projecta__management__0"]);
865Assert.Equal("http://localhost:3000", config["PROJECTA_MANAGEMENT"]);
894Assert.Equal("http://localhost:2000", config["services__projecta__api__0"]);
895Assert.Equal("http://localhost:3000", config["services__projecta__management__0"]);
896Assert.Equal("http://localhost:2000", config["PROJECTA_API"]);
897Assert.Equal("http://localhost:3000", config["PROJECTA_MANAGEMENT"]);
957Assert.Equal("https://localhost:443", config["services__projecta__https__0"]);
977Assert.Equal("http://localhost:8080", config["services__projecta__http__0"]);
978Assert.Equal("http://localhost:9090", config["services__projecta__prometheus__0"]);
997Assert.Equal("http://localhost:8080", config["services__projecta-data__data__0"]);
Aspire.Playground.Tests (1)
Aspire.Templates.Tests (4)
Client.ClientBase.IntegrationTests (2)
ConfigurationSchemaGenerator (3)
CSharpSyntaxGenerator (6)
dotnet (6)
dotnet-aot (2)
dotnet-format (1)
dotnet-svcutil-lib (102)
dotnet-svcutil.xmlserializer (1)
GenerateDocumentationAndConfigFiles (12)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
491result = _idToResult[id];
ILAssembler (2)
ILCompiler.Compiler (70)
ILCompiler.DependencyAnalysisFramework (10)
DgmlWriter.cs (10)
127_xmlWrite.WriteAttributeString("Source", _nodeMappings[nodeA].ToString());
128_xmlWrite.WriteAttributeString("Target", _nodeMappings[nodeB].ToString());
136_xmlWrite.WriteAttributeString("Source", _nodeMappings[nodeDepender].ToString());
137_xmlWrite.WriteAttributeString("Target", _nodeMappings[nodeDependedOn].ToString());
164_xmlWrite.WriteAttributeString("Source", _nodeMappings[nodeDepender].ToString());
165_xmlWrite.WriteAttributeString("Target", _nodeMappings[combinedNode].ToString());
171_xmlWrite.WriteAttributeString("Source", _nodeMappings[nodeDependerOther].ToString());
172_xmlWrite.WriteAttributeString("Target", _nodeMappings[combinedNode].ToString());
179_xmlWrite.WriteAttributeString("Source", _nodeMappings[combinedNode].ToString());
180_xmlWrite.WriteAttributeString("Target", _nodeMappings[nodeDependedOn].ToString());
ILCompiler.Diagnostics (1)
ILCompiler.MetadataTransform (1)
ILCompiler.ReadyToRun (70)
ILCompiler.RyuJit (5)
ILCompiler.TypeSystem (1)
illink (11)
ILLink.RoslynAnalyzer (1)
ILLink.Tasks (9)
Infrastructure.Common (1)
Infrastructure.Tests (45)
PowerShellScripts\SplitTestMatrixByDepsTests.cs (30)
44Assert.Equal(2, outputs["tests_matrix_no_nugets"].Include.Length);
45Assert.Empty(outputs["tests_matrix_requires_nugets_linux"].Include);
46Assert.Empty(outputs["tests_matrix_requires_cli_archive"].Include);
62Assert.Single(outputs["tests_matrix_no_nugets"].Include);
63Assert.Equal("Plain", outputs["tests_matrix_no_nugets"].Include[0].Name);
64Assert.Single(outputs["tests_matrix_requires_nugets_linux"].Include);
65Assert.Equal("NugetTest", outputs["tests_matrix_requires_nugets_linux"].Include[0].Name);
82Assert.Single(outputs["tests_matrix_requires_nugets_linux"].Include);
83Assert.Equal("LinuxNuget", outputs["tests_matrix_requires_nugets_linux"].Include[0].Name);
84Assert.Single(outputs["tests_matrix_requires_nugets_windows"].Include);
85Assert.Equal("WinNuget", outputs["tests_matrix_requires_nugets_windows"].Include[0].Name);
86Assert.Single(outputs["tests_matrix_requires_nugets_macos"].Include);
87Assert.Equal("MacNuget", outputs["tests_matrix_requires_nugets_macos"].Include[0].Name);
103Assert.Single(outputs["tests_matrix_no_nugets"].Include);
104Assert.Single(outputs["tests_matrix_requires_cli_archive"].Include);
105Assert.Equal("CliTest", outputs["tests_matrix_requires_cli_archive"].Include[0].Name);
120Assert.Single(outputs["tests_matrix_requires_cli_archive"].Include);
121Assert.Empty(outputs["tests_matrix_requires_nugets_linux"].Include);
138Assert.Equal(5, outputs["tests_matrix_no_nugets"].Include.Length);
139Assert.Equal(3, outputs["tests_matrix_no_nugets_overflow"].Include.Length);
156Assert.Equal(5, outputs["tests_matrix_no_nugets"].Include.Length);
157Assert.Empty(outputs["tests_matrix_no_nugets_overflow"].Include);
171Assert.Empty(outputs["tests_matrix_no_nugets"].Include);
172Assert.Empty(outputs["tests_matrix_no_nugets_overflow"].Include);
173Assert.Empty(outputs["tests_matrix_requires_nugets_linux"].Include);
174Assert.Empty(outputs["tests_matrix_requires_nugets_windows"].Include);
175Assert.Empty(outputs["tests_matrix_requires_nugets_macos"].Include);
176Assert.Empty(outputs["tests_matrix_requires_cli_archive"].Include);
214Assert.Single(outputs["tests_matrix_no_nugets"].Include);
215Assert.Equal("FromFile", outputs["tests_matrix_no_nugets"].Include[0].Name);
Microsoft.AspNetCore.Components (3)
Microsoft.AspNetCore.Components.AI.SourceGenerators (1)
Microsoft.AspNetCore.Components.Analyzers (6)
Microsoft.AspNetCore.Components.Endpoints (27)
FormMapping\WellKnownConverters.cs (22)
56converters.Add(typeof(char?), new NullableConverter<char>((FormDataConverter<char>)converters[typeof(char)]));
57converters.Add(typeof(bool?), new NullableConverter<bool>((FormDataConverter<bool>)converters[typeof(bool)]));
58converters.Add(typeof(byte?), new NullableConverter<byte>((FormDataConverter<byte>)converters[typeof(byte)]));
59converters.Add(typeof(sbyte?), new NullableConverter<sbyte>((FormDataConverter<sbyte>)converters[typeof(sbyte)]));
60converters.Add(typeof(ushort?), new NullableConverter<ushort>((FormDataConverter<ushort>)converters[typeof(ushort)]));
61converters.Add(typeof(uint?), new NullableConverter<uint>((FormDataConverter<uint>)converters[typeof(uint)]));
62converters.Add(typeof(ulong?), new NullableConverter<ulong>((FormDataConverter<ulong>)converters[typeof(ulong)]));
63converters.Add(typeof(Int128?), new NullableConverter<Int128>((FormDataConverter<Int128>)converters[typeof(Int128)]));
64converters.Add(typeof(short?), new NullableConverter<short>((FormDataConverter<short>)converters[typeof(short)]));
65converters.Add(typeof(int?), new NullableConverter<int>((FormDataConverter<int>)converters[typeof(int)]));
66converters.Add(typeof(long?), new NullableConverter<long>((FormDataConverter<long>)converters[typeof(long)]));
67converters.Add(typeof(UInt128?), new NullableConverter<UInt128>((FormDataConverter<UInt128>)converters[typeof(UInt128)]));
68converters.Add(typeof(Half?), new NullableConverter<Half>((FormDataConverter<Half>)converters[typeof(Half)]));
69converters.Add(typeof(float?), new NullableConverter<float>((FormDataConverter<float>)converters[typeof(float)]));
70converters.Add(typeof(double?), new NullableConverter<double>((FormDataConverter<double>)converters[typeof(double)]));
71converters.Add(typeof(decimal?), new NullableConverter<decimal>((FormDataConverter<decimal>)converters[typeof(decimal)]));
72converters.Add(typeof(DateOnly?), new NullableConverter<DateOnly>((FormDataConverter<DateOnly>)converters[typeof(DateOnly)]));
73converters.Add(typeof(DateTime?), new NullableConverter<DateTime>((FormDataConverter<DateTime>)converters[typeof(DateTime)]));
74converters.Add(typeof(DateTimeOffset?), new NullableConverter<DateTimeOffset>((FormDataConverter<DateTimeOffset>)converters[typeof(DateTimeOffset)]));
75converters.Add(typeof(TimeSpan?), new NullableConverter<TimeSpan>((FormDataConverter<TimeSpan>)converters[typeof(TimeSpan)]));
76converters.Add(typeof(TimeOnly?), new NullableConverter<TimeOnly>((FormDataConverter<TimeOnly>)converters[typeof(TimeOnly)]));
77converters.Add(typeof(Guid?), new NullableConverter<Guid>((FormDataConverter<Guid>)converters[typeof(Guid)]));
Microsoft.AspNetCore.Components.Forms (1)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (5)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Microsoft.AspNetCore.Http (2)
Microsoft.AspNetCore.Http.Extensions (23)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\WellKnownConverters.cs (22)
56converters.Add(typeof(char?), new NullableConverter<char>((FormDataConverter<char>)converters[typeof(char)]));
57converters.Add(typeof(bool?), new NullableConverter<bool>((FormDataConverter<bool>)converters[typeof(bool)]));
58converters.Add(typeof(byte?), new NullableConverter<byte>((FormDataConverter<byte>)converters[typeof(byte)]));
59converters.Add(typeof(sbyte?), new NullableConverter<sbyte>((FormDataConverter<sbyte>)converters[typeof(sbyte)]));
60converters.Add(typeof(ushort?), new NullableConverter<ushort>((FormDataConverter<ushort>)converters[typeof(ushort)]));
61converters.Add(typeof(uint?), new NullableConverter<uint>((FormDataConverter<uint>)converters[typeof(uint)]));
62converters.Add(typeof(ulong?), new NullableConverter<ulong>((FormDataConverter<ulong>)converters[typeof(ulong)]));
63converters.Add(typeof(Int128?), new NullableConverter<Int128>((FormDataConverter<Int128>)converters[typeof(Int128)]));
64converters.Add(typeof(short?), new NullableConverter<short>((FormDataConverter<short>)converters[typeof(short)]));
65converters.Add(typeof(int?), new NullableConverter<int>((FormDataConverter<int>)converters[typeof(int)]));
66converters.Add(typeof(long?), new NullableConverter<long>((FormDataConverter<long>)converters[typeof(long)]));
67converters.Add(typeof(UInt128?), new NullableConverter<UInt128>((FormDataConverter<UInt128>)converters[typeof(UInt128)]));
68converters.Add(typeof(Half?), new NullableConverter<Half>((FormDataConverter<Half>)converters[typeof(Half)]));
69converters.Add(typeof(float?), new NullableConverter<float>((FormDataConverter<float>)converters[typeof(float)]));
70converters.Add(typeof(double?), new NullableConverter<double>((FormDataConverter<double>)converters[typeof(double)]));
71converters.Add(typeof(decimal?), new NullableConverter<decimal>((FormDataConverter<decimal>)converters[typeof(decimal)]));
72converters.Add(typeof(DateOnly?), new NullableConverter<DateOnly>((FormDataConverter<DateOnly>)converters[typeof(DateOnly)]));
73converters.Add(typeof(DateTime?), new NullableConverter<DateTime>((FormDataConverter<DateTime>)converters[typeof(DateTime)]));
74converters.Add(typeof(DateTimeOffset?), new NullableConverter<DateTimeOffset>((FormDataConverter<DateTimeOffset>)converters[typeof(DateTimeOffset)]));
75converters.Add(typeof(TimeSpan?), new NullableConverter<TimeSpan>((FormDataConverter<TimeSpan>)converters[typeof(TimeSpan)]));
76converters.Add(typeof(TimeOnly?), new NullableConverter<TimeOnly>((FormDataConverter<TimeOnly>)converters[typeof(TimeOnly)]));
77converters.Add(typeof(Guid?), new NullableConverter<Guid>((FormDataConverter<Guid>)converters[typeof(Guid)]));
Microsoft.AspNetCore.Mvc.Core (2)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Razor.Runtime (1)
Microsoft.AspNetCore.Routing (9)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (1)
Microsoft.AspNetCore.WebUtilities (1)
Microsoft.Build (60)
Microsoft.Build.Framework (2)
Microsoft.Build.Tasks.Core (4)
Microsoft.Build.Utilities.Core (2)
Microsoft.CodeAnalysis (32)
Microsoft.CodeAnalysis.Analyzers (12)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
491result = _idToResult[id];
Microsoft.CodeAnalysis.AnalyzerUtilities (15)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
491result = _idToResult[id];
Microsoft.CodeAnalysis.CodeStyle (11)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
491result = _idToResult[id];
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp (65)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
Microsoft.CodeAnalysis.CSharp.Features (11)
Microsoft.CodeAnalysis.Extensions.Package (1)
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Microsoft.CodeAnalysis.Features (103)
ExtractMethod\AbstractSyntaxTriviaService.cs (25)
35Contract.ThrowIfFalse(textSpan.Contains(tokens[TriviaLocation.AfterBeginningOfSpan].Span) && textSpan.Contains(tokens[TriviaLocation.BeforeEndOfSpan].Span));
44var rootWithAnnotation = ReplaceTokens(root, map.Keys, (o, n) => map[o]);
77token = map.GetOrAdd(tokens[TriviaLocation.BeforeBeginningOfSpan], _ => tokens[TriviaLocation.BeforeBeginningOfSpan]);
78map[tokens[TriviaLocation.BeforeBeginningOfSpan]] = token.WithTrailingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.BeforeBeginningOfSpan]);
80token = map.GetOrAdd(tokens[TriviaLocation.AfterBeginningOfSpan], _ => tokens[TriviaLocation.AfterBeginningOfSpan]);
81map[tokens[TriviaLocation.AfterBeginningOfSpan]] = token.WithLeadingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.AfterBeginningOfSpan]);
83token = map.GetOrAdd(tokens[TriviaLocation.BeforeEndOfSpan], _ => tokens[TriviaLocation.BeforeEndOfSpan]);
84map[tokens[TriviaLocation.BeforeEndOfSpan]] = token.WithTrailingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.BeforeEndOfSpan]);
86token = map.GetOrAdd(tokens[TriviaLocation.AfterEndOfSpan], _ => tokens[TriviaLocation.AfterEndOfSpan]);
87map[tokens[TriviaLocation.AfterEndOfSpan]] = token.WithLeadingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.AfterEndOfSpan]);
94var triviaAtBeginning = SplitTrivia(tokens[TriviaLocation.BeforeBeginningOfSpan], tokens[TriviaLocation.AfterBeginningOfSpan], t => t.FullSpan.End <= textSpan.Start);
95var triviaAtEnd = SplitTrivia(tokens[TriviaLocation.BeforeEndOfSpan], tokens[TriviaLocation.AfterEndOfSpan], t => t.FullSpan.Start < textSpan.End);
114tokens[TriviaLocation.BeforeBeginningOfSpan] = tokens[TriviaLocation.AfterBeginningOfSpan].GetPreviousToken(includeZeroWidth: true);
116tokens[TriviaLocation.AfterEndOfSpan] = tokens[TriviaLocation.BeforeEndOfSpan].GetNextToken(includeZeroWidth: true);
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (34)
52return root.ReplaceTokens(map.Keys, (o, n) => map[o]);
110location => resolver(root, location, _annotations[location]));
113tokens[TriviaLocation.AfterBeginningOfSpan].RawKind == 0 /* don't care */ ||
114tokens[TriviaLocation.BeforeEndOfSpan].RawKind == 0 /* don't care */ ||
115tokens[TriviaLocation.AfterBeginningOfSpan] == tokens[TriviaLocation.BeforeEndOfSpan] ||
116tokens[TriviaLocation.AfterBeginningOfSpan].GetPreviousToken(includeZeroWidth: true) == tokens[TriviaLocation.BeforeEndOfSpan] ||
117tokens[TriviaLocation.AfterBeginningOfSpan].Span.End <= tokens[TriviaLocation.BeforeEndOfSpan].SpanStart);
136tokenPairs[location],
137resolver(location, tokenPairs[location], tokenToLeadingTrailingTriviaMap)));
162var key = tokenPairs[location];
168yield return (key, triviaPairs[location]);
179tuple = map.GetOrAdd(tokens[TriviaLocation.BeforeBeginningOfSpan], _ => default);
180map[tokens[TriviaLocation.BeforeBeginningOfSpan]] = new LeadingTrailingTriviaPair
183TrailingTrivia = _triviaList[TriviaLocation.BeforeBeginningOfSpan]
186tuple = map.GetOrAdd(tokens[TriviaLocation.AfterBeginningOfSpan], _ => default);
187map[tokens[TriviaLocation.AfterBeginningOfSpan]] = new LeadingTrailingTriviaPair
189LeadingTrivia = _triviaList[TriviaLocation.AfterBeginningOfSpan],
193tuple = map.GetOrAdd(tokens[TriviaLocation.BeforeEndOfSpan], _ => default);
194map[tokens[TriviaLocation.BeforeEndOfSpan]] = new LeadingTrailingTriviaPair
197TrailingTrivia = _triviaList[TriviaLocation.BeforeEndOfSpan]
200tuple = map.GetOrAdd(tokens[TriviaLocation.AfterEndOfSpan], _ => default);
201map[tokens[TriviaLocation.AfterEndOfSpan]] = new LeadingTrailingTriviaPair
203LeadingTrivia = _triviaList[TriviaLocation.AfterEndOfSpan],
217PreviousToken = tokens[TriviaLocation.BeforeBeginningOfSpan],
218NextToken = tokens[TriviaLocation.BeforeBeginningOfSpan].GetNextToken(includeZeroWidth: true)
223PreviousToken = tokens[TriviaLocation.AfterBeginningOfSpan].GetPreviousToken(includeZeroWidth: true),
224NextToken = tokens[TriviaLocation.AfterBeginningOfSpan]
229PreviousToken = tokens[TriviaLocation.BeforeEndOfSpan],
230NextToken = tokens[TriviaLocation.BeforeEndOfSpan].GetNextToken(includeZeroWidth: true)
235PreviousToken = tokens[TriviaLocation.AfterEndOfSpan].GetPreviousToken(includeZeroWidth: true),
236NextToken = tokens[TriviaLocation.AfterEndOfSpan]
Microsoft.CodeAnalysis.NetAnalyzers (8)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DictionaryAnalysisData.cs (1)
43return _coreAnalysisData[key];
Microsoft.CodeAnalysis.Razor.Compiler (5)
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
491result = _idToResult[id];
Microsoft.CodeAnalysis.Workspaces (29)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
491result = _idToResult[id];
Microsoft.CSharp (3)
Microsoft.Data.Analysis (3)
Microsoft.Data.Analysis.Tests (3)
Microsoft.Diagnostics.DataContractReader (1)
Microsoft.Diagnostics.DataContractReader.Contracts (76)
Microsoft.Diagnostics.DataContractReader.Legacy (4)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Build.Manifest (1)
Microsoft.DotNet.Build.Tasks.Installers (1)
Microsoft.DotNet.Build.Tasks.Packaging (23)
Microsoft.DotNet.Build.Tasks.Workloads (3)
Microsoft.DotNet.CodeAnalysis (4)
Microsoft.DotNet.PackageTesting (4)
Microsoft.DotNet.PackageValidation (5)
Microsoft.DotNet.TemplateLocator (14)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.AI.Abstractions.Tests (3)
Microsoft.Extensions.AI.Integration.Tests (4)
Microsoft.Extensions.AI.OpenAI.Tests (5)
Microsoft.Extensions.AI.Tests (14)
Microsoft.Extensions.Caching.Hybrid.Tests (2)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (3)
Microsoft.Extensions.DataIngestion (2)
Microsoft.Extensions.DataIngestion.Tests (17)
Writers\VectorStoreWriterTests.cs (14)
45.GetAsync(filter: record => (string)record["documentid"]! == documentId, top: 1)
49Assert.NotNull(record["key"]);
50Assert.Equal(documentId, record["documentid"]);
51Assert.Equal(chunks[0].Content, record["content"]);
56Assert.Equal(kvp.Value, record[kvp.Key]);
91.GetAsync(filter: record => (string)record["documentid"]! == documentId, top: 100)
111.GetAsync(filter: record => (string)record["documentid"]! == documentId, top: 100)
115Assert.NotNull(record["key"]);
116Assert.Equal("different content", record["content"]);
117Assert.Equal("value2", record["key1"]);
147.GetAsync(filter: record => (string)record["documentid"]! == documentId, top: 10000)
162.GetAsync(filter: record => (string)record["documentid"]! == documentId, top: 10000)
166Assert.Contains(records, r => (string)r["content"]! == "updated chunk 1");
167Assert.Contains(records, r => (string)r["content"]! == "updated chunk 2");
Microsoft.Extensions.Diagnostics.Testing.Tests (6)
Microsoft.Extensions.Http.Diagnostics (4)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Extensions.VectorData.ConformanceTests (155)
Microsoft.Gen.Logging (3)
Microsoft.Gen.Logging.Generated.Tests (18)
LogPropertiesTests.cs (18)
46Assert.Equal("[\"1\",\"2\",\"3\"]", ss["myProps.P5"]);
47Assert.Equal("[\"4\",\"5\",\"6\"]", ss["myProps.P6"]);
48Assert.Equal("{\"Seven\"=\"7\",\"Eight\"=\"8\",\"Nine\"=\"9\"}", ss["myProps.P7"]);
178Assert.Null(ss["p.P0"]);
179Assert.Null(ss["p.P1"]);
180Assert.Equal(props.P2.ToString(null, CultureInfo.InvariantCulture), ss["p.P2"]);
181Assert.Null(ss["p.P3"]);
182Assert.Equal("I refuse to be formatted", ss["p.P4"]);
183Assert.Null(ss["p.P5"]);
184Assert.Null(ss["p.P6"]);
185Assert.Equal("-", ss["p.P7"]);
186Assert.Null(ss["p.P8"]);
187Assert.Equal("------------------------", ss["p.P9"]);
188Assert.Equal("null", ss["p.P10"]);
196Assert.Equal(props.P2.ToString(null, CultureInfo.InvariantCulture), ss["p.P2"]);
197Assert.Equal("I refuse to be formatted", ss["p.P4"]);
198Assert.Equal("-", ss["p.P7"]);
199Assert.Equal("------------------------", ss["p.P9"]);
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.SourceGeneration (3)
Microsoft.Maui.Controls (40)
Microsoft.Maui.Controls.Build.Tasks (72)
CompiledConverters\RDSourceTypeConverter.cs (2)
115 foreach (var instruction in context.Variables[rdNode].LoadAs(context.Cache, currentModule.GetTypeDefinition(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "ResourceDictionary")), currentModule))
132 foreach (var instruction in context.Variables[rdNode].LoadAs(context.Cache, currentModule.GetTypeDefinition(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "ResourceDictionary")), currentModule))
SetNamescopesAndRegisterNamesVisitor.cs (15)
25 var parentVar = Context.Variables[node];
32 Context.Scopes[node] = Context.Scopes[parentNode];
35 RegisterName((string)node.Value, Context.Scopes[node].Item1, Context.Scopes[node].Item2, Context.Variables[(IElementNode)parentNode], node);
41 Context.Scopes[node] = Context.Scopes[parentNode];
57 namescopeVarDef = Context.Scopes[parentNode].Item1;
58 namesInNamescope = Context.Scopes[parentNode].Item2;
60 if (setNameScope && Context.Variables[node].VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject"))))
63 else if (Context.Variables[node].VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "Element"))))
70 Context.IL.Append(Context.Variables[node].LoadAs(Context.Cache, module.GetTypeDefinition(Context.Cache, parameterTypes[0]), module));
81 if (Context.Variables[node].VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject"))))
88 Context.Scopes[node] = Context.Scopes[parentNode];
108 if (Context.Variables[node].VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject"))))
111 Context.IL.Append(Context.Variables[node].LoadAs(Context.Cache, module.GetTypeDefinition(Context.Cache, namescoperef), module));
144 Context.IL.Append(Context.Variables[node].LoadAs(Context.Cache, module.GetTypeDefinition(Context.Cache, parameterTypes[0]), module));
SetPropertiesVisitor.cs (31)
105 var vardef = Context.Variables[node];
269 var typeNode = node.Properties[new XmlName("", "Type")];
275 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, markupExtension, module))
398 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, markupExtension, module))
408 else if (context.Variables[node].VariableType.ImplementsInterface(context.Cache, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IMarkupExtension"))))
410 var acceptEmptyServiceProvider = context.Variables[node].VariableType.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "AcceptEmptyServiceProviderAttribute")) != null;
418 var compiledValueProviderName = context.Variables[node].VariableType.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "ProvideCompiledAttribute"))?.ConstructorArguments?[0].Value as string;
438 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, markupExtensionType), module))
451 else if (context.Variables[node].VariableType.ImplementsInterface(context.Cache, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IValueProvider"))))
453 var acceptEmptyServiceProvider = context.Variables[node].VariableType.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "AcceptEmptyServiceProviderAttribute")) != null;
459 var valueProviderType = context.Variables[node].VariableType;
479 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, valueProviderInterface), module))
1361 foreach (var instruction in context.Variables[elementNode].LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, dynamicResourceType), module))
1404 foreach (var instruction in context.Variables[elementNode].LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, parameterTypes[1]), module))
1486 if (context.Variables[elementNode].VariableType.FullName == "System.Object")
1489 yield return Create(Ldloc, context.Variables[elementNode]);
1494 yield return Create(Ldloc, context.Variables[elementNode]);
1499 yield return Create(Ldloc, context.Variables[elementNode]);
1505 foreach (var instruction in context.Variables[elementNode].LoadAs(context.Cache, bpTypeRef, module))
1511 if (context.Variables[elementNode].VariableType.FullName == "System.Object")
1565 var vardef = context.Variables[elementNode];
1645 foreach (var instruction in context.Variables[elementNode].LoadAs(context.Cache, propertyType, module))
1721 var valueNode = node.Properties[XmlName.xKey] as ValueNode ?? throw new BuildException(XKeyNotLiteral, lineInfo, null);
1730 var nodeTypeRef = context.Variables[node].VariableType;
1744 var vardef = context.Variables[elementNode];
1775 var valueNode = node.Properties[XmlName.xKey] as ValueNode ?? throw new BuildException(XKeyNotLiteral, lineInfo, null);
1783 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, module.TypeSystem.Object, module))
1794 var nodeTypeRef = context.Variables[node].VariableType;
1795 yield return Create(Ldloc, context.Variables[node]);
1821 var parentVar = parentContext.Variables[parentNode];
1910 templateIl.Append(templateContext.Variables[node].LoadAs(parentContext.Cache, module.TypeSystem.Object, module));
Microsoft.Maui.Controls.Xaml (29)
Microsoft.Maui.Essentials (15)
Microsoft.Maui.Resizetizer (7)
Microsoft.ML.AutoML (28)
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.Core (3)
Microsoft.ML.Core.Tests (19)
Microsoft.ML.Data (52)
Microsoft.ML.DataView (1)
Microsoft.ML.EntryPoints (4)
Microsoft.ML.Fairlearn (12)
Metrics\FairlearnMetricCatalog.cs (12)
101result["AUC"] = DataFrameColumn.Create("AUC", groupMetric.Keys.Select(k => groupMetric[k].AreaUnderRocCurve)); //coloumn name?
102result["Accuracy"] = DataFrameColumn.Create("Accuracy", groupMetric.Keys.Select(k => groupMetric[k].Accuracy));
103result["PosPrec"] = DataFrameColumn.Create("PosPrec", groupMetric.Keys.Select(k => groupMetric[k].PositivePrecision));
104result["PosRecall"] = DataFrameColumn.Create("PosRecall", groupMetric.Keys.Select(k => groupMetric[k].PositiveRecall));
105result["NegPrec"] = DataFrameColumn.Create("NegPrec", groupMetric.Keys.Select(k => groupMetric[k].NegativePrecision));
106result["NegRecall"] = DataFrameColumn.Create("NegRecall", groupMetric.Keys.Select(k => groupMetric[k].NegativeRecall));
107result["F1Score"] = DataFrameColumn.Create("F1Score", groupMetric.Keys.Select(k => groupMetric[k].F1Score));
108result["AreaUnderPrecisionRecallCurve"] = DataFrameColumn.Create("AreaUnderPrecisionRecallCurve", groupMetric.Keys.Select(k => groupMetric[k].AreaUnderPrecisionRecallCurve));
235result["RSquared"] = DataFrameColumn.Create("RSquared", groupMetric.Keys.Select(k => groupMetric[k].RSquared));
236result["RMS"] = DataFrameColumn.Create("RMS", groupMetric.Keys.Select(k => groupMetric[k].RootMeanSquaredError));
237result["MSE"] = DataFrameColumn.Create("MSE", groupMetric.Keys.Select(k => groupMetric[k].MeanSquaredError));
238result["MAE"] = DataFrameColumn.Create("MAE", groupMetric.Keys.Select(k => groupMetric[k].MeanAbsoluteError));
Microsoft.ML.Fairlearn.Tests (5)
MetricTest.cs (5)
47Assert.Equal(125.5, metricOverall["MSE"], 0.1);
48Assert.Equal(11.202678, metricOverall["RMS"], 0.0001);
50Assert.Equal(14.81138, diff["RMS"], 0.0001);
51Assert.Equal(2037.5, diff["RSquared"], 0.1);
76Assert.Equal(0.7, Convert.ToSingle(metricOverall["Accuracy"]), 0.1);
Microsoft.ML.FastTree (10)
Microsoft.ML.GenAI.Core (4)
Microsoft.ML.ImageAnalytics (9)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.LightGbm (27)
WrappedLightGbmBooster.cs (12)
242int numberOfLeaves = int.Parse(kvPairs["num_leaves"], CultureInfo.InvariantCulture);
243int numCat = int.Parse(kvPairs["num_cat"], CultureInfo.InvariantCulture);
246var leftChild = Str2IntArray(kvPairs["left_child"], ' ');
247var rightChild = Str2IntArray(kvPairs["right_child"], ' ');
248var splitFeature = Str2IntArray(kvPairs["split_feature"], ' ');
249var threshold = Str2DoubleArray(kvPairs["threshold"], ' ');
250var splitGain = Str2DoubleArray(kvPairs["split_gain"], ' ');
251var leafOutput = Str2DoubleArray(kvPairs["leaf_value"], ' ');
252var decisionType = Str2UIntArray(kvPairs["decision_type"], ' ');
265var catBoundaries = Str2IntArray(kvPairs["cat_boundaries"], ' ');
266var catThreshold = Str2UIntArray(kvPairs["cat_threshold"], ' ');
299var leafOutput = Str2DoubleArray(kvPairs["leaf_value"], ' ');
Microsoft.ML.OnnxConverter (4)
Microsoft.ML.OnnxTransformer (5)
Microsoft.ML.PCA (1)
Microsoft.ML.Predictor.Tests (2)
Microsoft.ML.SearchSpace (3)
Microsoft.ML.Sweeper (5)
Microsoft.ML.TensorFlow (3)
Microsoft.ML.TimeSeries (30)
RootCauseAnalyzer.cs (27)
130return new Dictionary<string, object>(keyList.Select(dim => new KeyValuePair<string, object>(dim, dimension[dim])).ToDictionary(kvp => kvp.Key, kvp => kvp.Value));
162children = GetTopAnomaly(anomalyTree.ChildrenNodes[dimension.DimensionKey], anomalyTree.ParentNode, pointTree.ChildrenNodes[dimension.DimensionKey].Count > 0 ? pointTree.ChildrenNodes[dimension.DimensionKey] : pointTree.Leaves, dimension.DimensionKey, !(pointTree.ChildrenNodes[dimension.DimensionKey].Count > 0));
182new RootCauseItem(UpdateDimensionValue(anomalyDimension, dimension.DimensionKey, anomaly.Dimension[dimension.DimensionKey]), new List<string>() { dimension.DimensionKey })));
303UpdateDistribution(dimension.PointDis, pointChildren[dimKey], dimKey);
307UpdateDistribution(dimension.AnomalyDis, anomalyChildren[dimKey], dimKey);
405return dimPointMapping[dimension];
449if (IsAggregationDimension(point.Dimension[dim], aggSymbol))
469tree.ChildrenNodes[nextDim].Add(point);
498bool isRatioNan = Double.IsNaN(valueRatioMap[best]);
501if (best.AnomalyDis.Count != 1 && !isRatioNan && (isLeavesLevel ? valueRatioMap[best].CompareTo(dimension.Value) <= 0 : valueRatioMap[best].CompareTo(dimension.Value) >= 0))
515if (!isRatioNan && (isLeavesLevel ? valueRatioMap[best].CompareTo(dimension.Value) <= 0 : valueRatioMap[best].CompareTo(dimension.Value) >= 0))
537if (valueRatioMap[best].CompareTo(dimension.Value) == 0)
676double dimEntropy = GetEntropy(pointDis[key], anomalyDis[key]);
677entropy += dimEntropy * pointDis[key] / total;
690intrinsicValue -= Log2((double)pointDis[key] / total) * (double)pointDis[key] / total;
710string dimVal = Convert.ToString(point.Dimension[dimKey]);
715distribution[dimVal] = distribution[dimVal] + 1;
726if (!bigDictionary.ContainsKey(item.Key) || !object.Equals(bigDictionary[item.Key], smallDictionary[item.Key]))
830if (!object.Equals(pair.Value, y[pair.Key]))
Microsoft.ML.TimeSeries.Tests (5)
Microsoft.ML.Tokenizers (9)
Microsoft.ML.Tokenizers.Tests (5)
Microsoft.ML.TorchSharp (16)
Microsoft.ML.Transforms (25)
Microsoft.ML.Vision (7)
Microsoft.NET.Build.Containers (2)
Microsoft.NET.Build.Extensions.Tasks (4)
Microsoft.NET.Build.Tasks (35)
Microsoft.NET.HostModel (1)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (1)
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (5)
Microsoft.NET.Sdk.WorkloadManifestReader (14)
Microsoft.Private.Windows.Core (2)
Microsoft.TemplateEngine.Cli (4)
Microsoft.TemplateEngine.Edge (9)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
Microsoft.TemplateEngine.Utils (4)
Microsoft.TemplateSearch.Common (1)
Microsoft.TestPlatform.CrossPlatEngine (9)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
Microsoft.TestPlatform.PlatformAbstractions (6)
Microsoft.VisualBasic.Core (1)
Microsoft.VisualStudio.TestPlatform.Common (3)
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (2)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Microsoft.Web.XmlTransform (8)
Microsoft.Win32.SystemEvents (1)
NuGet.Build.Tasks.Pack (6)
NuGet.CommandLine.XPlat (7)
NuGet.Commands (16)
NuGet.Common (1)
NuGet.Configuration (1)
NuGet.DependencyResolver.Core (1)
NuGet.Frameworks (1)
NuGet.PackageManagement (13)
NuGet.Packaging (2)
NuGet.Protocol (3)
NuGet.Resolver (3)
Pipelines.Library (2)
PresentationBuildTasks (8)
PresentationCore (44)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (25)
1698_strokeLookupTable[s].CompressionData = xpData;
1708_strokeLookupTable[s].ISFReadyStrokeData = isfReadyData;
1712_strokeLookupTable[s].StorePressure = shouldStorePressure;
1884if (currentDrawingAttributesTableIndex != _strokeLookupTable[s].DrawingAttributesTableIndex)
1888cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].DrawingAttributesTableIndex);
1889currentDrawingAttributesTableIndex = _strokeLookupTable[s].DrawingAttributesTableIndex;
1898if (currentStrokeDescriptorTableIndex != _strokeLookupTable[s].StrokeDescriptorTableIndex)
1902cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].StrokeDescriptorTableIndex);
1903currentStrokeDescriptorTableIndex = _strokeLookupTable[s].StrokeDescriptorTableIndex;
1912if (uCurrMetricDescriptorTableIndex != _strokeLookupTable[s].MetricDescriptorTableIndex)
1916cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].MetricDescriptorTableIndex);
1917uCurrMetricDescriptorTableIndex = _strokeLookupTable[s].MetricDescriptorTableIndex;
1926if (currentTransformTableIndex != _strokeLookupTable[s].TransformTableIndex)
1930cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].TransformTableIndex);
1931currentTransformTableIndex = _strokeLookupTable[s].TransformTableIndex;
1947cbStroke = StrokeSerializer.EncodeStroke(s, tempstrm, GetCompressionAlgorithm(), guidList, _strokeLookupTable[s]);
2539StrokeSerializer.BuildStrokeDescriptor(stroke, guidList, _strokeLookupTable[stroke], out strokeDescriptor, out metricBlock);
2548_strokeLookupTable[stroke].StrokeDescriptorTableIndex = (uint)descriptorIndex;
2555_strokeLookupTable[stroke].StrokeDescriptorTableIndex = (uint)_strokeDescriptorTable.Count - 1;
2576_strokeLookupTable[stroke].MetricDescriptorTableIndex = (uint)tmp;
2584_strokeLookupTable[stroke].MetricDescriptorTableIndex = (uint)(_metricTable.Count - 1);
2601_strokeLookupTable[stroke].TransformTableIndex = (uint)i;
2609_strokeLookupTable[stroke].TransformTableIndex = (uint)(_transformTable.Count - 1);
2623_strokeLookupTable[stroke].DrawingAttributesTableIndex = (uint)i;
2631_strokeLookupTable[stroke].DrawingAttributesTableIndex = (uint)_drawingAttributesTable.Count - 1;
PresentationFramework (71)
PresentationUI (2)
ReachFramework (25)
Roslyn.Diagnostics.Analyzers (12)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
491result = _idToResult[id];
rzc (1)
sdk-tasks (2)
System.CommandLine (1)
System.CommandLine.StaticCompletions (1)
System.ComponentModel.Composition (2)
System.ComponentModel.TypeConverter (6)
System.Composition.Hosting (1)
System.Configuration.ConfigurationManager (1)
System.Data.Common (9)
System.Data.Odbc (8)
System.Data.OleDb (1)
System.Diagnostics.EventLog (2)
System.Diagnostics.PerformanceCounter (3)
System.Diagnostics.Process (2)
System.DirectoryServices.AccountManagement (5)
System.Formats.Nrbf (3)
System.IO.Packaging (6)
System.Linq.Expressions (6)
System.Net.Http (5)
System.Net.HttpListener (2)
System.Private.CoreLib (12)
System.Private.CoreLib.Generators (2)
System.Private.Windows.Core (2)
System.Private.Xml (51)
System.Reflection.DispatchProxy (2)
System.Reflection.Emit (2)
System.Reflection.Metadata (2)
System.Resources.Extensions (2)
System.Security.AccessControl (1)
System.Security.Cryptography.Cose (5)
System.Security.Cryptography.Pkcs (2)
System.ServiceModel.NetFramingBase (3)
System.ServiceModel.Primitives (23)
System.ServiceModel.Syndication (5)
System.Speech (9)
System.Text.Json (6)
System.Text.Json.SourceGeneration (7)
System.Text.RegularExpressions (6)
System.Text.RegularExpressions.Generator (1)
System.Windows.Controls.Ribbon (11)
System.Windows.Forms (24)
System.Windows.Forms.Design (5)
System.Xaml (10)
UnitTests.Common (2)
vstest.console (2)
vstest.console.arm64 (2)