55 references to ToDictionary
aspire (5)
DotNet\DotNetCliRunner.cs (3)
247var finalEnv = env?.ToDictionary() ?? new Dictionary<string, string>(); 991var finalEnv = env?.ToDictionary() ?? new Dictionary<string, string>(); 1287var buildEnvironment = env?.ToDictionary() ?? new Dictionary<string, string>();
Projects\ExtensionGuestLauncher.cs (1)
45var effectiveEnvironmentVariables = environmentVariables.ToDictionary();
Projects\ProcessGuestLauncher.cs (1)
52var effectiveEnvironmentVariables = environmentVariables.ToDictionary();
Aspire.Cli.Tests (5)
Commands\RunCommandTests.cs (1)
4353tcs.SetResult(env?.ToDictionary() ?? []);
DotNet\DotNetCliRunnerTests.cs (4)
2108capturedEnv = env?.ToDictionary(); 2145capturedEnv = env?.ToDictionary(); 2522capturedEnv = env?.ToDictionary(); 3261capturedEnv = env?.ToDictionary();
Aspire.Confluent.Kafka (2)
AspireKafkaConsumerExtensions.cs (1)
178options.Configuration = new ProducerConfig(connectionFactory.Config.ToDictionary());
AspireKafkaProducerExtensions.cs (1)
178options.Configuration = new ProducerConfig(connectionFactory.Config.ToDictionary());
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.Runtime.cs (1)
56return _resourceUnviewedErrorLogs.ToDictionary();
Aspire.Dashboard.Components.Tests (4)
Pages\TerminalsTests.cs (1)
414properties: terminal.Properties.Where(p => p.Key == KnownProperties.Terminal.Enabled).ToDictionary());
Pages\TerminalWindowTests.cs (3)
137properties: TerminalSetupHelpers.CreateTerminalResource("shell-second", replicaIndex: 1, replicaCount: 2).Properties.ToDictionary(), 186.ToDictionary()); 329properties: resources[0].Properties.ToDictionary(), iconName: "Database", iconVariant: IconVariant.Regular);
Aspire.Dashboard.Playwright.Tests (1)
tests\Aspire.Dashboard.Tests\Shared\MockDashboardClient.cs (1)
34}.ToDictionary(),
Aspire.Dashboard.Tests (2)
Integration\HealthTests.cs (1)
109var resourceAttributes = app.Services.GetRequiredService<TracerProvider>().GetResource().Attributes.ToDictionary();
Shared\MockDashboardClient.cs (1)
34}.ToDictionary(),
Aspire.Hosting (4)
ApplicationModel\ProjectLaunchConfigurationFactory.cs (1)
37: projectMetadata.BuildEnvironment.ToDictionary(),
ApplicationModel\ResourceExtensions.cs (1)
211return executionConfiguration.EnvironmentVariables.ToDictionary();
ApplicationModel\ResourceLoggerService.cs (1)
369internal Dictionary<string, ResourceLoggerState> Loggers => _loggers.ToDictionary();
Dashboard\DashboardService.cs (1)
250dto.Options.Add(input.Options.ToDictionary());
Aspire.Hosting.Azure.EntraId.Tests (3)
EntraIdApiProvisioningTests.cs (2)
846}, env.Where(e => e.Key.StartsWith("DownstreamApis__", StringComparison.Ordinal)).ToDictionary()); 856}, containerEnv.Where(e => e.Key.StartsWith("ENTRA_DOWNSTREAM", StringComparison.Ordinal)).ToDictionary());
LocalDeveloperCertificateTests.cs (1)
311var environment = result.EnvironmentVariables.ToDictionary();
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectBuildCoordinatorTests.cs (1)
2675var secondEnvironment = secondResult.EnvironmentVariables.ToDictionary();
Aspire.Hosting.Kubernetes (10)
Extensions\ResourceExtensions.cs (10)
21Labels = context.Labels.ToDictionary(), 25Selector = new(context.Labels.ToDictionary()), 50Labels = context.Labels.ToDictionary(), 54Selector = new(context.Labels.ToDictionary()), 75Labels = context.Labels.ToDictionary(), 113Labels = context.Labels.ToDictionary(), 150Labels = context.Labels.ToDictionary(), 154Selector = context.Labels.ToDictionary(), 201Labels = context.Labels.ToDictionary(), 485Labels = context.Labels.ToDictionary(),
Aspire.Hosting.Kubernetes.Tests (2)
KubernetesPublisherTests.cs (2)
557Metadata = { Name = "myapp-rollout", Labels = serviceResource.Labels.ToDictionary() }, 558Spec = { Template = serviceResource.Workload!.PodTemplate, Selector = { MatchLabels = serviceResource.Labels.ToDictionary() } }
Aspire.Hosting.Maui (1)
Utilities\MauiEnvironmentHelper.cs (1)
204var targetsContent = GenerateiOSTargetsFileContent(executionConfiguration.EnvironmentVariables.ToDictionary());
Aspire.Hosting.Native.Core (1)
Runtime\RuntimeGeneration.cs (1)
961var declared = _workloads.Where(pair => _declaredOwners.Contains(pair.Key)).ToDictionary();
Aspire.Hosting.Qdrant.Tests (1)
AddQdrantTests.cs (1)
335.ToDictionary();
Aspire.Hosting.RemoteHost (1)
Ats\ExternalCapabilityRegistry.cs (1)
369var updated = current.ToDictionary();
Aspire.Hosting.RemoteHost.Tests (2)
ExternalCapabilityRegistryTests.cs (2)
83var states = records.Select(write => ((IEnumerable<KeyValuePair<string, object?>>)write.State!).ToDictionary()).ToArray(); 393var states = records.Select(write => ((IEnumerable<KeyValuePair<string, object?>>)write.State!).ToDictionary()).ToArray();
Aspire.Hosting.Tests (1)
Dashboard\DashboardEventHandlersTests.cs (1)
294var environmentVariables = dashboardEnvironment.EnvironmentVariables.ToDictionary();
Aspire.Hosting.TestUtilities (3)
Utils\EnvironmentVariableEvaluator.cs (1)
30return executionConfiguration.EnvironmentVariables.ToDictionary();
Utils\OtlpExporterActivationTestExtensions.cs (1)
20? existing.ToDictionary()
Utils\TestDotnetSdkVersionProvider.cs (1)
77_probeEnvironments.Enqueue(environmentVariables.ToDictionary());
dotnet-aot (4)
parent\dotnet\Commands\Run\CommonRunHelpers.cs (1)
109var globalProperties = msbuildArgs.GlobalProperties?.ToDictionary() ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
parent\dotnet\Telemetry\TelemetryDiskLogger.cs (3)
88tags: activity.Source.Tags?.ToDictionary() 90tags: activity.Tags.ToDictionary(), 94tags: e.Tags.ToDictionary()
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\DictionaryModelBinder.cs (1)
233return collection.ToDictionary();