31 references to ToDictionary
aspire (1)
DotNet\DotNetCliRunner.cs (1)
445var finalEnv = env?.ToDictionary() ?? new Dictionary<string, string>();
Aspire.Cli.Tests (1)
Commands\RunCommandTests.cs (1)
1379tcs.SetResult(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\TelemetryRepository.cs (1)
176return _resourceUnviewedErrorLogs.ToDictionary();
Aspire.Dashboard.Tests (1)
Integration\Playwright\Infrastructure\MockDashboardClient.cs (1)
29}.ToDictionary(),
Aspire.Hosting (3)
ApplicationModel\ResourceExtensions.cs (1)
200return executionConfiguration.EnvironmentVariables.ToDictionary();
ApplicationModel\ResourceLoggerService.cs (1)
352internal Dictionary<string, ResourceLoggerState> Loggers => _loggers.ToDictionary();
Dashboard\DashboardService.cs (1)
160dto.Options.Add(input.Options.ToDictionary());
Aspire.Hosting.Kubernetes (11)
Extensions\ResourceExtensions.cs (11)
18Labels = context.Labels.ToDictionary(), 22Selector = new(context.Labels.ToDictionary()), 47Labels = context.Labels.ToDictionary(), 51Selector = new(context.Labels.ToDictionary()), 72Labels = context.Labels.ToDictionary(), 104Labels = context.Labels.ToDictionary(), 134Labels = context.Labels.ToDictionary(), 138Selector = context.Labels.ToDictionary(), 178Labels = context.Labels.ToDictionary(), 418Labels = context.Labels.ToDictionary(), 462Labels = context.Labels.ToDictionary(),
Aspire.Hosting.Kubernetes.Tests (2)
KubernetesPublisherTests.cs (2)
126Metadata = { Name = "myapp-rollout", Labels = serviceResource.Labels.ToDictionary() }, 127Spec = { Template = serviceResource.Workload!.PodTemplate, Selector = { MatchLabels = serviceResource.Labels.ToDictionary() } }
Aspire.Hosting.Maui (1)
Utilities\MauiEnvironmentHelper.cs (1)
250var targetsContent = GenerateiOSTargetsFileContent(executionConfiguration.EnvironmentVariables.ToDictionary());
Aspire.Hosting.Tests (2)
Dashboard\DashboardLifecycleHookTests.cs (1)
156var environmentVariables = dashboardEnvironment.EnvironmentVariables.ToDictionary();
Utils\EnvironmentVariableEvaluator.cs (1)
30return executionConfiguration.EnvironmentVariables.ToDictionary();
dotnet (5)
Commands\Run\CommonRunHelpers.cs (1)
19var globalProperties = msbuildArgs.GlobalProperties?.ToDictionary() ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Commands\Run\RunCommand.cs (1)
1117var globalProperties = MSBuildArgs.GlobalProperties?.ToDictionary() ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Telemetry\TelemetryDiskLogger.cs (3)
82tags: activity.Source.Tags?.ToDictionary() 84tags: activity.Tags.ToDictionary(), 88tags: e.Tags.ToDictionary()
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\DictionaryModelBinder.cs (1)
233return collection.ToDictionary();