41 references to ToDictionary
aspire (4)
DotNet\DotNetCliRunner.cs (2)
212var finalEnv = env?.ToDictionary() ?? new Dictionary<string, string>(); 992var finalEnv = env?.ToDictionary() ?? new Dictionary<string, string>();
Projects\ExtensionGuestLauncher.cs (1)
47var effectiveEnvironmentVariables = environmentVariables.ToDictionary();
Projects\ProcessGuestLauncher.cs (1)
70var effectiveEnvironmentVariables = environmentVariables.ToDictionary();
Aspire.Cli.Tests (5)
Commands\RunCommandTests.cs (1)
3616tcs.SetResult(env?.ToDictionary() ?? []);
DotNet\DotNetCliRunnerTests.cs (4)
1618capturedEnv = env?.ToDictionary(); 1655capturedEnv = env?.ToDictionary(); 1964capturedEnv = env?.ToDictionary(); 2657capturedEnv = 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)
57return _resourceUnviewedErrorLogs.ToDictionary();
Aspire.Dashboard.Tests (1)
Integration\Playwright\Infrastructure\MockDashboardClient.cs (1)
31}.ToDictionary(),
Aspire.Hosting (3)
ApplicationModel\ResourceExtensions.cs (1)
210return executionConfiguration.EnvironmentVariables.ToDictionary();
ApplicationModel\ResourceLoggerService.cs (1)
369internal Dictionary<string, ResourceLoggerState> Loggers => _loggers.ToDictionary();
Dashboard\DashboardService.cs (1)
226dto.Options.Add(input.Options.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(), 478Labels = context.Labels.ToDictionary(),
Aspire.Hosting.Kubernetes.Tests (2)
KubernetesPublisherTests.cs (2)
134Metadata = { Name = "myapp-rollout", Labels = serviceResource.Labels.ToDictionary() }, 135Spec = { Template = serviceResource.Workload!.PodTemplate, Selector = { MatchLabels = serviceResource.Labels.ToDictionary() } }
Aspire.Hosting.Maui (1)
Utilities\MauiEnvironmentHelper.cs (1)
249var targetsContent = GenerateiOSTargetsFileContent(executionConfiguration.EnvironmentVariables.ToDictionary());
Aspire.Hosting.Tests (1)
Dashboard\DashboardEventHandlersTests.cs (1)
265var environmentVariables = dashboardEnvironment.EnvironmentVariables.ToDictionary();
Aspire.Hosting.TestUtilities (1)
Utils\EnvironmentVariableEvaluator.cs (1)
30return executionConfiguration.EnvironmentVariables.ToDictionary();
dotnet (5)
Commands\Run\CommonRunHelpers.cs (1)
106var globalProperties = msbuildArgs.GlobalProperties?.ToDictionary() ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Commands\Run\RunCommand.cs (1)
1096var globalProperties = MSBuildArgs.GlobalProperties?.ToDictionary() ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Telemetry\TelemetryDiskLogger.cs (3)
88tags: activity.Source.Tags?.ToDictionary() 90tags: activity.Tags.ToDictionary(), 94tags: e.Tags.ToDictionary()
dotnet-aot (4)
src\sdk\src\Cli\dotnet\Commands\Run\CommonRunHelpers.cs (1)
106var globalProperties = msbuildArgs.GlobalProperties?.ToDictionary() ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\sdk\src\Cli\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();