41 references to ToDictionary
aspire (4)
DotNet\DotNetCliRunner.cs (2)
212
var finalEnv = env?.
ToDictionary
() ?? new Dictionary<string, string>();
992
var finalEnv = env?.
ToDictionary
() ?? new Dictionary<string, string>();
Projects\ExtensionGuestLauncher.cs (1)
47
var effectiveEnvironmentVariables = environmentVariables.
ToDictionary
();
Projects\ProcessGuestLauncher.cs (1)
70
var effectiveEnvironmentVariables = environmentVariables.
ToDictionary
();
Aspire.Cli.Tests (5)
Commands\RunCommandTests.cs (1)
3616
tcs.SetResult(env?.
ToDictionary
() ?? []);
DotNet\DotNetCliRunnerTests.cs (4)
1618
capturedEnv = env?.
ToDictionary
();
1655
capturedEnv = env?.
ToDictionary
();
1964
capturedEnv = env?.
ToDictionary
();
2657
capturedEnv = env?.
ToDictionary
();
Aspire.Confluent.Kafka (2)
AspireKafkaConsumerExtensions.cs (1)
178
options.Configuration = new ProducerConfig(connectionFactory.Config.
ToDictionary
());
AspireKafkaProducerExtensions.cs (1)
178
options.Configuration = new ProducerConfig(connectionFactory.Config.
ToDictionary
());
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.Runtime.cs (1)
57
return _resourceUnviewedErrorLogs.
ToDictionary
();
Aspire.Dashboard.Tests (1)
Integration\Playwright\Infrastructure\MockDashboardClient.cs (1)
31
}.
ToDictionary
(),
Aspire.Hosting (3)
ApplicationModel\ResourceExtensions.cs (1)
210
return executionConfiguration.EnvironmentVariables.
ToDictionary
();
ApplicationModel\ResourceLoggerService.cs (1)
369
internal Dictionary<string, ResourceLoggerState> Loggers => _loggers.
ToDictionary
();
Dashboard\DashboardService.cs (1)
226
dto.Options.Add(input.Options.
ToDictionary
());
Aspire.Hosting.Kubernetes (10)
Extensions\ResourceExtensions.cs (10)
21
Labels = context.Labels.
ToDictionary
(),
25
Selector = new(context.Labels.
ToDictionary
()),
50
Labels = context.Labels.
ToDictionary
(),
54
Selector = new(context.Labels.
ToDictionary
()),
75
Labels = context.Labels.
ToDictionary
(),
109
Labels = context.Labels.
ToDictionary
(),
141
Labels = context.Labels.
ToDictionary
(),
145
Selector = context.Labels.
ToDictionary
(),
192
Labels = context.Labels.
ToDictionary
(),
478
Labels = context.Labels.
ToDictionary
(),
Aspire.Hosting.Kubernetes.Tests (2)
KubernetesPublisherTests.cs (2)
134
Metadata = { Name = "myapp-rollout", Labels = serviceResource.Labels.
ToDictionary
() },
135
Spec = { Template = serviceResource.Workload!.PodTemplate, Selector = { MatchLabels = serviceResource.Labels.
ToDictionary
() } }
Aspire.Hosting.Maui (1)
Utilities\MauiEnvironmentHelper.cs (1)
249
var targetsContent = GenerateiOSTargetsFileContent(executionConfiguration.EnvironmentVariables.
ToDictionary
());
Aspire.Hosting.Tests (1)
Dashboard\DashboardEventHandlersTests.cs (1)
265
var environmentVariables = dashboardEnvironment.EnvironmentVariables.
ToDictionary
();
Aspire.Hosting.TestUtilities (1)
Utils\EnvironmentVariableEvaluator.cs (1)
30
return executionConfiguration.EnvironmentVariables.
ToDictionary
();
dotnet (5)
Commands\Run\CommonRunHelpers.cs (1)
106
var globalProperties = msbuildArgs.GlobalProperties?.
ToDictionary
() ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Commands\Run\RunCommand.cs (1)
1096
var globalProperties = MSBuildArgs.GlobalProperties?.
ToDictionary
() ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Telemetry\TelemetryDiskLogger.cs (3)
88
tags: activity.Source.Tags?.
ToDictionary
()
90
tags: activity.Tags.
ToDictionary
(),
94
tags: e.Tags.
ToDictionary
()
dotnet-aot (4)
src\sdk\src\Cli\dotnet\Commands\Run\CommonRunHelpers.cs (1)
106
var globalProperties = msbuildArgs.GlobalProperties?.
ToDictionary
() ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\sdk\src\Cli\dotnet\Telemetry\TelemetryDiskLogger.cs (3)
88
tags: activity.Source.Tags?.
ToDictionary
()
90
tags: activity.Tags.
ToDictionary
(),
94
tags: e.Tags.
ToDictionary
()
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\DictionaryModelBinder.cs (1)
233
return collection.
ToDictionary
();