51 references to ToDictionary
aspire (5)
DotNet\DotNetCliRunner.cs (3)
242var finalEnv = env?.ToDictionary() ?? new Dictionary<string, string>(); 986var finalEnv = env?.ToDictionary() ?? new Dictionary<string, string>(); 1282var 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)
4342tcs.SetResult(env?.ToDictionary() ?? []);
DotNet\DotNetCliRunnerTests.cs (4)
2051capturedEnv = env?.ToDictionary(); 2088capturedEnv = env?.ToDictionary(); 2465capturedEnv = env?.ToDictionary(); 3161capturedEnv = 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)
307properties: 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)
33}.ToDictionary(),
Aspire.Dashboard.Tests (2)
Integration\HealthTests.cs (1)
109var resourceAttributes = app.Services.GetRequiredService<TracerProvider>().GetResource().Attributes.ToDictionary();
Shared\MockDashboardClient.cs (1)
33}.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)
249dto.Options.Add(input.Options.ToDictionary());
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectBuildCoordinatorTests.cs (1)
1864var 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(), 109Labels = context.Labels.ToDictionary(), 141Labels = context.Labels.ToDictionary(), 145Selector = context.Labels.ToDictionary(), 192Labels = context.Labels.ToDictionary(), 476Labels = context.Labels.ToDictionary(),
Aspire.Hosting.Kubernetes.Tests (2)
KubernetesPublisherTests.cs (2)
180Metadata = { Name = "myapp-rollout", Labels = serviceResource.Labels.ToDictionary() }, 181Spec = { 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.Qdrant.Tests (1)
AddQdrantTests.cs (1)
329.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();