4850 references to KeyValuePair
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
345projectDiagnosticTasks.Add(new KeyValuePair<ProjectId, Task<AnalysisResult>>(project.Id, resultTask));
Aspire.Azure.AI.OpenAI.Tests (18)
AspireAzureAIOpenAIExtensionsTests.cs (9)
31new KeyValuePair<string, string?>("ConnectionStrings:openai", ConnectionString) 62new KeyValuePair<string, string?>("ConnectionStrings:openai", ConnectionString) 117new KeyValuePair<string, string?>("ConnectionStrings:openai", connectionString) 133new KeyValuePair<string, string?>("ConnectionStrings:openai1", ConnectionString), 134new KeyValuePair<string, string?>("ConnectionStrings:openai2", ConnectionString + "2"), 135new KeyValuePair<string, string?>("ConnectionStrings:openai3", ConnectionString + "3") 166new KeyValuePair<string, string?>("ConnectionStrings:openai", ConnectionString), 167new KeyValuePair<string, string?>($"Aspire:Azure:AI:OpenAI{key}:ClientOptions:UserAgentApplicationId", applicationId), 169new KeyValuePair<string, string?>($"Aspire:Azure:AI:OpenAI{key}:ClientOptions:NetworkTimeout", "00:00:02")
AspireConfigurableOpenAIExtensionsTests.cs (8)
22new KeyValuePair<string, string?>("ConnectionStrings:openai", "IsAzure=false") 45new KeyValuePair<string, string?>("ConnectionStrings:openai", "Endpoint=https://aspireopenaitests.fake.com/;Key=fake;IsAzure=true") 72new KeyValuePair<string, string?>("ConnectionStrings:openai", "Endpoint=https://aspireopenaitests.fake.com/;Key=fake;IsAzure=false") 99new KeyValuePair<string, string?>("ConnectionStrings:openai", "Endpoint=https://aspireopenaitests.azure.com/;Key=fake") 127new KeyValuePair<string, string?>("ConnectionStrings:openai", $"Endpoint={domain};Key=fake") 145new KeyValuePair<string, string?>("ConnectionStrings:openai", "Endpoint=https://aspireopenaitests.azure.com/;Key=fake;IsAzure=false") 172new KeyValuePair<string, string?>("ConnectionStrings:openai", "Endpoint=;Key=fake;IsAzure=false") 199new KeyValuePair<string, string?>("ConnectionStrings:openai", "Key=fake;IsAzure=false")
ConformanceTests.cs (1)
60new(CreateConfigKey("Aspire:Azure:AI:OpenAI", key, "Endpoint"), Endpoint)
Aspire.Azure.Data.Tables.Tests (10)
AspireTablesExtensionsTests.cs (8)
23new KeyValuePair<string, string?>("ConnectionStrings:tables", ConnectionString) 50new KeyValuePair<string, string?>("ConnectionStrings:tables", "AccountName=unused;AccountKey=myAccountKey") 79new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Data:Tables", key, "ServiceUri"), "unused"), 80new KeyValuePair<string, string?>("ConnectionStrings:tables", ConnectionString) 108new KeyValuePair<string, string?>("ConnectionStrings:tables", ConformanceTests.ServiceUri) 133new KeyValuePair<string, string?>("ConnectionStrings:tables1", ConnectionString), 134new KeyValuePair<string, string?>("ConnectionStrings:tables2", "AccountName=account2;AccountKey=fake"), 135new KeyValuePair<string, string?>("ConnectionStrings:tables3", "AccountName=account3;AccountKey=fake")
ConformanceTests.cs (2)
72new(CreateConfigKey("Aspire:Azure:Data:Tables", key, "ServiceUri"), ServiceUri), 73new(CreateConfigKey("Aspire:Azure:Data:Tables", key, "ClientOptions:Retry:MaxRetries"), "0")
Aspire.Azure.Messaging.EventHubs.Tests (57)
AspireEventHubsExtensionsTests.cs (57)
84new KeyValuePair<string, string?>( 88new KeyValuePair<string, string?>( 92new KeyValuePair<string, string?>( 95new KeyValuePair<string, string?>("ConnectionStrings:eh", EhConnectionString), 131new KeyValuePair<string, string?>( 135new KeyValuePair<string, string?>( 139new KeyValuePair<string, string?>( 143new KeyValuePair<string, string?>( 146new KeyValuePair<string, string?>( 150new KeyValuePair<string, string?>( 200new KeyValuePair<string, string?>( 204new KeyValuePair<string, string?>( 208new KeyValuePair<string, string?>( 212new KeyValuePair<string, string?>( 215new KeyValuePair<string, string?>("ConnectionStrings:eh", EhConnectionString) 262new KeyValuePair<string, string?>( 266new KeyValuePair<string, string?>( 270new KeyValuePair<string, string?>( 274new KeyValuePair<string, string?>( 277new KeyValuePair<string, string?>( 281new KeyValuePair<string, string?>("ConnectionStrings:eh", EhConnectionString), 328new KeyValuePair<string, string?>( 332new KeyValuePair<string, string?>( 336new KeyValuePair<string, string?>( 339new KeyValuePair<string, string?>("ConnectionStrings:eh", EhConnectionString) 374new KeyValuePair<string, string?>( 378new KeyValuePair<string, string?>( 382new KeyValuePair<string, string?>( 387new KeyValuePair<string, string?>("ConnectionStrings:eh", EhConnectionString) 423new KeyValuePair<string, string?>( 427new KeyValuePair<string, string?>( 431new KeyValuePair<string, string?>( 435new KeyValuePair<string, string?>( 441new KeyValuePair<string, string?>("ConnectionStrings:eh", EhConnectionString), 505new KeyValuePair<string, string?>( 509new KeyValuePair<string, string?>( 513new KeyValuePair<string, string?>( 517new KeyValuePair<string, string?>( 522new KeyValuePair<string, string?>("ConnectionStrings:eh", EhConnectionString), 548new KeyValuePair<string, string?>("ConnectionStrings:eh1", EhConnectionString), 549new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:BlobContainerName", "checkpoints"), 550new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:PartitionId", "foo"), 552new KeyValuePair<string, string?>("ConnectionStrings:eh2", EhConnectionString.Replace("aspireeventhubstests", "aspireeventhubstests2")), 553new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:eh2:BlobContainerName", "checkpoints"), 554new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:eh2:PartitionId", "foo"), 556new KeyValuePair<string, string?>("ConnectionStrings:eh3", EhConnectionString.Replace("aspireeventhubstests", "aspireeventhubstests3")), 557new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:eh3:BlobContainerName", "checkpoints"), 558new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:eh3:PartitionId", "foo"), 595new KeyValuePair<string, string?>("ConnectionStrings:eh1", "Endpoint=sb://127.0.0.1:53589;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;"), 596new KeyValuePair<string, string?>("Aspire:Azure:Messaging:EventHubs:EventProcessorClient:EventHubName", "MyHub"), 643new KeyValuePair<string, string?>("ConnectionStrings:eh1", testInfo.TestConnectionString), 644new KeyValuePair<string, string?>("Aspire:Azure:Messaging:EventHubs:EventHubProducerClient:EventHubName", "NotInConnectionInfo"), 645new KeyValuePair<string, string?>("Aspire:Azure:Messaging:EventHubs:EventHubConsumerClient:EventHubName", "NotInConnectionInfo"), 646new KeyValuePair<string, string?>("Aspire:Azure:Messaging:EventHubs:EventProcessorClient:EventHubName", "NotInConnectionInfo"), 647new KeyValuePair<string, string?>("Aspire:Azure:Messaging:EventHubs:PartitionReceiver:EventHubName", "NotInConnectionInfo"), 648new KeyValuePair<string, string?>("Aspire:Azure:Messaging:EventHubs:PartitionReceiver:PartitionId", "foo"), 649new KeyValuePair<string, string?>("Aspire:Azure:Messaging:EventHubs:EventHubBufferedProducerClient:EventHubName", "NotInConnectionInfo"),
Aspire.Azure.Messaging.ServiceBus.Tests (17)
AspireServiceBusExtensionsTests.cs (11)
23new KeyValuePair<string, string?>("ConnectionStrings:sb", ConnectionString) 50new KeyValuePair<string, string?>("ConnectionStrings:sb", "Endpoint=sb://unused.servicebus.windows.net/;SharedAccessKeyName=fake;SharedAccessKey=fake") 79new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Messaging:ServiceBus", key, "ConnectionString"), "unused"), 80new KeyValuePair<string, string?>("ConnectionStrings:sb", ConnectionString) 108new KeyValuePair<string, string?>("ConnectionStrings:sb", ConformanceTests.FullyQualifiedNamespace) 133new KeyValuePair<string, string?>("ConnectionStrings:sb1", ConnectionString), 134new KeyValuePair<string, string?>("ConnectionStrings:sb2", "Endpoint=sb://aspireservicebustests2.servicebus.windows.net/;SharedAccessKeyName=fake;SharedAccessKey=fake"), 135new KeyValuePair<string, string?>("ConnectionStrings:sb3", "Endpoint=sb://aspireservicebustests3.servicebus.windows.net/;SharedAccessKeyName=fake;SharedAccessKey=fake") 164new KeyValuePair<string, string?>("Aspire:Azure:Messaging:ServiceBus:ClientOptions:Identifier", "top-level-identifier"), 165new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Messaging:ServiceBus", "sb", "ConnectionString"), ConnectionString), 166new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Messaging:ServiceBus", "sb", "ClientOptions:Identifier"), "local-identifier"),
ConformanceTests.cs (2)
66? new(CreateConfigKey("Aspire:Azure:Messaging:ServiceBus", key, nameof(AzureMessagingServiceBusSettings.FullyQualifiedNamespace)), FullyQualifiedNamespace) 67: new(CreateConfigKey("Aspire:Azure:Messaging:ServiceBus", key, nameof(AzureMessagingServiceBusSettings.ConnectionString)), ConnectionString);
ConformanceTests_Queue.cs (2)
25new(CreateConfigKey("Aspire:Azure:Messaging:ServiceBus", key, nameof(AzureMessagingServiceBusSettings.HealthCheckQueueName)), HealthCheckQueueName), 26new(CreateConfigKey("Aspire:Azure:Messaging:ServiceBus", key, "ClientOptions:RetryOptions:MaxRetries"), "0")
ConformanceTests_Topic.cs (2)
26new(CreateConfigKey("Aspire:Azure:Messaging:ServiceBus", key, nameof(AzureMessagingServiceBusSettings.HealthCheckTopicName)), HealthCheckTopicName), 27new(CreateConfigKey("Aspire:Azure:Messaging:ServiceBus", key, "ClientOptions:RetryOptions:MaxRetries"), "0")
Aspire.Azure.Messaging.WebPubSub.Tests (12)
AspireWebPubSubExtensionsTests.cs (10)
24new KeyValuePair<string, string?>("ConnectionStrings:wps", ConnectionString) 52new KeyValuePair<string, string?>("ConnectionStrings:wps", UnusedConnectionString) 89new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Messaging:WebPubSub", key, "ConnectionString"), "unused"), 90new KeyValuePair<string, string?>("ConnectionStrings:wps", ConnectionString) 119new KeyValuePair<string, string?>("ConnectionStrings:wps", ConformanceTests.Endpoint) 145new KeyValuePair<string, string?>("ConnectionStrings:wps", ConnectionString) 160new KeyValuePair<string, string?>("ConnectionStrings:wps", ConnectionString) 171new KeyValuePair<string, string?>("ConnectionStrings:wps", ConnectionString) 187new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Messaging:WebPubSub:wps", "hub1", "ConnectionString"), ConnectionString), 188new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Messaging:WebPubSub:wps", "hub2", "ConnectionString"), ConnectionString),
ConformanceTests.cs (2)
61? new(CreateConfigKey("Aspire:Azure:Messaging:WebPubSub", key is not null ? $"{key}:{key}" : null, nameof(AzureMessagingWebPubSubSettings.Endpoint)), Endpoint) 62: new(CreateConfigKey("Aspire:Azure:Messaging:WebPubSub", key is not null ? $"{key}:{key}" : null, nameof(AzureMessagingWebPubSubSettings.ConnectionString)), ConnectionString);
Aspire.Azure.Search.Documents.Tests (4)
AspireAzureSearchExtensionsTests.cs (4)
24new KeyValuePair<string, string?>("ConnectionStrings:search", ConnectionString) 77new KeyValuePair<string, string?>("ConnectionStrings:search1", ConnectionString), 78new KeyValuePair<string, string?>("ConnectionStrings:search2", "Endpoint=https://aspireazuresearchtests2.search.windows.net/;Key=fake"), 79new KeyValuePair<string, string?>("ConnectionStrings:search3", "Endpoint=https://aspireazuresearchtests3.search.windows.net/;Key=fake")
Aspire.Azure.Security.KeyVault.Tests (9)
AspireKeyVaultExtensionsTests.cs (7)
26new KeyValuePair<string, string?>("ConnectionStrings:secrets", "https://unused.vault.azure.net/") 55new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Security:KeyVault", key, "VaultUri"), "unused"), 56new KeyValuePair<string, string?>("ConnectionStrings:secrets", ConformanceTests.VaultUri) 81new KeyValuePair<string, string?>("ConnectionStrings:secrets", ConformanceTests.VaultUri) 180new KeyValuePair<string, string?>("ConnectionStrings:secrets1", ConformanceTests.VaultUri), 181new KeyValuePair<string, string?>("ConnectionStrings:secrets2", "https://aspiretests2.vault.azure.net/"), 182new KeyValuePair<string, string?>("ConnectionStrings:secrets3", "https://aspiretests3.vault.azure.net/")
ConformanceTests.cs (2)
66new(CreateConfigKey("Aspire:Azure:Security:KeyVault", key, "VaultUri"), VaultUri), 67new(CreateConfigKey("Aspire:Azure:Security:KeyVault", key, "ClientOptions:Retry:MaxRetries"), "0")
Aspire.Azure.Storage.Blobs.Tests (10)
AspireBlobStorageExtensionsTests.cs (8)
23new KeyValuePair<string, string?>("ConnectionStrings:blob", ConnectionString) 50new KeyValuePair<string, string?>("ConnectionStrings:blob", "AccountName=unused;AccountKey=fake") 79new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Storage:Blobs", key, "ServiceUri"), "unused"), 80new KeyValuePair<string, string?>("ConnectionStrings:blob", ConnectionString) 108new KeyValuePair<string, string?>("ConnectionStrings:blob", ConformanceTests.ServiceUri) 133new KeyValuePair<string, string?>("ConnectionStrings:blob1", ConformanceTests.ServiceUri), 134new KeyValuePair<string, string?>("ConnectionStrings:blob2", "https://aspirestoragetests2.blob.core.windows.net/"), 135new KeyValuePair<string, string?>("ConnectionStrings:blob3", "https://aspirestoragetests3.blob.core.windows.net/")
ConformanceTests.cs (2)
73new(CreateConfigKey("Aspire:Azure:Storage:Blobs", key, "ServiceUri"), ServiceUri), 74new(CreateConfigKey("Aspire:Azure:Storage:Blobs", key, "ClientOptions:Retry:MaxRetries"), "0")
Aspire.Azure.Storage.Queues.Tests (10)
AspireQueueStorageExtensionsTests.cs (8)
23new KeyValuePair<string, string?>("ConnectionStrings:queue", ConnectionString) 50new KeyValuePair<string, string?>("ConnectionStrings:queue", "AccountName=unused;AccountKey=fake") 79new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Storage:Queues", key, "ServiceUri"), "unused"), 80new KeyValuePair<string, string?>("ConnectionStrings:queue", ConnectionString) 108new KeyValuePair<string, string?>("ConnectionStrings:queue", ConformanceTests.ServiceUri) 133new KeyValuePair<string, string?>("ConnectionStrings:queue1", ConformanceTests.ServiceUri), 134new KeyValuePair<string, string?>("ConnectionStrings:queue2", "https://aspirestoragetests2.queue.core.windows.net"), 135new KeyValuePair<string, string?>("ConnectionStrings:queue3", "https://aspirestoragetests3.queue.core.windows.net")
ConformanceTests.cs (2)
75new(CreateConfigKey("Aspire:Azure:Storage:Queues", key, "ServiceUri"), ServiceUri), 76new(CreateConfigKey("Aspire:Azure:Storage:Queues", key, "ClientOptions:Retry:MaxRetries"), "0")
Aspire.Components.Common.Tests (6)
ConformanceTests.cs (4)
383new KeyValuePair<string, string?>($"{ConfigurationSectionName}:DisableTracing", "false"), 384new KeyValuePair<string, string?>($"{ConfigurationSectionName}:{key}:DisableTracing", "true"), 405new KeyValuePair<string, string?>($"{ConfigurationSectionName}:DisableHealthChecks", "false"), 406new KeyValuePair<string, string?>($"{ConfigurationSectionName}:{key}:DisableHealthChecks", "true"),
RequiresDockerDiscoverer.cs (1)
16yield return new KeyValuePair<string, string>(XunitConstants.Category, "failing");
RequiresToolsDiscoverer.cs (1)
17yield return new KeyValuePair<string, string>(XunitConstants.Category, "failing");
Aspire.Confluent.Kafka (11)
MetricsService.cs (1)
50tags.Add(new KeyValuePair<string, object?> (Tags.Type, statistics.Type));
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedConsumer.cs (5)
283new KeyValuePair<string, object?>( 286new KeyValuePair<string, object?>( 289new KeyValuePair<string, object?>( 297new KeyValuePair<string, object?>( 305new KeyValuePair<string, object?>(
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedProducer.cs (5)
281new KeyValuePair<string, object?>( 284new KeyValuePair<string, object?>( 287new KeyValuePair<string, object?>( 295new KeyValuePair<string, object?>( 303new KeyValuePair<string, object?>(
Aspire.Confluent.Kafka.Tests (32)
Aspire8MetricsTests.cs (4)
27new KeyValuePair<string, string?>("ConnectionStrings:messaging", CommonHelpers.TestingEndpoint), 28new KeyValuePair<string, string?>(ProducerConformanceTests.CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "Config:GroupId"), "unused") 142new KeyValuePair<string, string?>("ConnectionStrings:messaging", CommonHelpers.TestingEndpoint), 143new KeyValuePair<string, string?>(ProducerConformanceTests.CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "Config:GroupId"), "unused")
ConsumerConfigurationTests.cs (9)
24new KeyValuePair<string, string?>("ConnectionStrings:messaging", CommonHelpers.TestingEndpoint), 25new KeyValuePair<string, string?>(ConsumerConformanceTests.CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "Config:GroupId"), "unused") 56new KeyValuePair<string, string?>("ConnectionStrings:messaging", "unused"), 57new KeyValuePair<string, string?>(ConsumerConformanceTests.CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "Config:GroupId"), "unused") 89new KeyValuePair<string, string?>(ConsumerConformanceTests.CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "ConnectionString"), "unused"), 90new KeyValuePair<string, string?>("ConnectionStrings:messaging", CommonHelpers.TestingEndpoint), 91new KeyValuePair<string, string?>(ConsumerConformanceTests.CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "Config:GroupId"), "unused") 133new KeyValuePair<string, string?>("ConnectionStrings:messaging", CommonHelpers.TestingEndpoint), 134new KeyValuePair<string, string?>(ConsumerConformanceTests.CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "Config:GroupId"), "unused")
ConsumerConformanceTests.cs (8)
28new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "ConnectionString"), 30new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "Config:GroupId"), 93new KeyValuePair<string, string?>("ConnectionStrings:messaging1", "localhost:9091"), 94new KeyValuePair<string, string?>("Aspire:Confluent:Kafka:Consumer:Config:GroupId", "messaging1"), 96new KeyValuePair<string, string?>("ConnectionStrings:messaging2", "localhost:9092"), 97new KeyValuePair<string, string?>("Aspire:Confluent:Kafka:Consumer:messaging2:Config:GroupId", "messaging2"), 99new KeyValuePair<string, string?>("ConnectionStrings:messaging3", "localhost:9093"), 100new KeyValuePair<string, string?>("Aspire:Confluent:Kafka:Consumer:messaging3:Config:GroupId", "messaging3"),
OtelMetricsTests.cs (1)
37new KeyValuePair<string, string?>("ConnectionStrings:messaging", _containerFixture?.Container?.GetBootstrapAddress()),
OtelTracesTests.cs (1)
39new KeyValuePair<string, string?>("ConnectionStrings:messaging", _containerFixture?.Container?.GetBootstrapAddress()),
ProducerConfigurationTests.cs (5)
22new KeyValuePair<string, string?>("ConnectionStrings:messaging", CommonHelpers.TestingEndpoint) 51new KeyValuePair<string, string?>("ConnectionStrings:messaging", "unused") 83new KeyValuePair<string, string?>(ProducerConformanceTests.CreateConfigKey("Aspire:Confluent:Kafka:Producer", key, "ConnectionString"), "unused"), 84new KeyValuePair<string, string?>("ConnectionStrings:messaging", CommonHelpers.TestingEndpoint) 123new KeyValuePair<string, string?>("ConnectionStrings:messaging", CommonHelpers.TestingEndpoint)
ProducerConformanceTests.cs (4)
29new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Confluent:Kafka:Producer", key, "ConnectionString"), 89new KeyValuePair<string, string?>("ConnectionStrings:messaging1", "localhost:9091"), 90new KeyValuePair<string, string?>("ConnectionStrings:messaging2", "localhost:9092"), 91new KeyValuePair<string, string?>("ConnectionStrings:messaging3", "localhost:9093"),
Aspire.Dashboard (4)
Otlp\Model\OtlpHelpers.cs (4)
230values[existingIndex] = new KeyValuePair<string, string>(attribute.Key, value); 237values.Add(new KeyValuePair<string, string>(attribute.Key, value)); 307copiedAttributes[existingIndex] = new KeyValuePair<string, string>(attribute.Key, value); 314copiedAttributes[index + copyCount] = new KeyValuePair<string, string>(attribute.Key, value);
Aspire.Dashboard.Components.Tests (3)
tests\Shared\Logging\LogValuesAssert.cs (1)
21Contains(new[] { new KeyValuePair<string, object>(key, value) }, actualValues);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
179attributes ??= [new KeyValuePair<string, string>("{OriginalFormat}", "Test {Log}"), new KeyValuePair<string, string>("Log", "Value!")];
Aspire.Dashboard.Tests (16)
TelemetryRepositoryTests\LogTests.cs (2)
624new KeyValuePair<string, string>("{OriginalFormat}", "Test {Log}") 630attributes.Add(new KeyValuePair<string, string>($"Key{i}", value));
TelemetryRepositoryTests\MetricsTests.cs (4)
115metricAttributes.Add(new KeyValuePair<string, string>($"Metric_Key{i}", value)); 116meterAttributes.Add(new KeyValuePair<string, string>($"Meter_Key{i}", value)); 226new KeyValuePair<string, string>("Meter_Key0", GetValue(5)) 232metricAttributes.Add(new KeyValuePair<string, string>($"Metric_Key{i}", value));
TelemetryRepositoryTests\OtlpHelpersTests.cs (5)
283new KeyValuePair<string, string>("parentkey1", "parentvalue1") 319new KeyValuePair<string, string>("parentkey1", "parentvalue1") 360new KeyValuePair<string, string>("parentkey1", "parentvalue1"), 361new KeyValuePair<string, string>("parentkey2", "parentvalue2"), 362new KeyValuePair<string, string>("parentkey3", "parentvalue3")
TelemetryRepositoryTests\OtlpSpanTests.cs (1)
26statusCode: OtlpSpanStatusCode.Ok, statusMessage: "Status message!", attributes: [new KeyValuePair<string, string>(KnownTraceFields.StatusMessageField, "value")]);
TelemetryRepositoryTests\TraceTests.cs (1)
770attributes.Add(new KeyValuePair<string, string>($"Key{i}", value));
tests\Shared\Logging\LogValuesAssert.cs (1)
21Contains(new[] { new KeyValuePair<string, object>(key, value) }, actualValues);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
179attributes ??= [new KeyValuePair<string, string>("{OriginalFormat}", "Test {Log}"), new KeyValuePair<string, string>("Log", "Value!")];
Aspire.Elastic.Clients.Elasticsearch.Tests (8)
AspireElasticClientExtensionsTest.cs (6)
100new KeyValuePair<string, string?>("ConnectionStrings:elasticsearch1", "http://elastic:password@localhost1:19530"), 101new KeyValuePair<string, string?>("ConnectionStrings:elasticsearch2", "http://elastic:password@localhost1:19531"), 102new KeyValuePair<string, string?>("ConnectionStrings:elasticsearch3", "http://elastic:password@localhost1:19532"), 126new KeyValuePair<string, string?>("ConnectionStrings:elasticsearch1", "Endpoint=http://elastic:password@localhost1:19530"), 127new KeyValuePair<string, string?>("ConnectionStrings:elasticsearch2", "Endpoint=http://localhost1:19531"), 175new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultConnectionName}", connectionString)
ConformanceTests.cs (2)
42new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Elastic:Clients:Elasticsearch", key, "Endpoint"), connectionString), 43new KeyValuePair<string, string?>($"ConnectionStrings:{key}", $"Endpoint={connectionString}")
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
21Contains(new[] { new KeyValuePair<string, object>(key, value) }, actualValues);
Aspire.Hosting.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
21Contains(new[] { new KeyValuePair<string, object>(key, value) }, actualValues);
Aspire.Microsoft.Azure.Cosmos.Tests (5)
AspireMicrosoftAzureCosmosExtensionsTests.cs (1)
48new KeyValuePair<string, string?>("ConnectionStrings:cosmos", connectionString)
ConformanceTests.cs (4)
24new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Microsoft:Azure:Cosmos", key, "ConnectionString"), 81new KeyValuePair<string, string?>("ConnectionStrings:cosmosdb1", "AccountEndpoint=https://example1.documents.azure.com:443/;AccountKey=fake;"), 82new KeyValuePair<string, string?>("ConnectionStrings:cosmosdb2", "AccountEndpoint=https://example2.documents.azure.com:443/;AccountKey=fake;"), 83new KeyValuePair<string, string?>("ConnectionStrings:cosmosdb3", "AccountEndpoint=https://example3.documents.azure.com:443/;AccountKey=fake;"),
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Implementation\SqlActivitySourceHelper.cs (1)
27new KeyValuePair<string, object>(SemanticConventions.AttributeDbSystem, MicrosoftSqlServerDatabaseSystemName),
Aspire.Microsoft.Data.SqlClient.Tests (8)
AspireSqlServerSqlClientExtensionsTests.cs (7)
23new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString) 50new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", "unused") 82new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Microsoft:Data:SqlClient", key, "ConnectionString"), "unused"), 83new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString) 110new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection1", "Data Source=fake1;Database=master"), 111new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection2", "Data Source=fake2;Database=master"), 112new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection3", "Data Source=fake3;Database=master"),
ConformanceTests.cs (1)
63new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Microsoft:Data:SqlClient", key, "ConnectionString"),
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (14)
AspireAzureEfCoreCosmosDBExtensionsTests.cs (11)
23new KeyValuePair<string, string?>("ConnectionStrings:cosmosConnection", ConnectionString), 24new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:Cosmos:Region", "westus"), 59new KeyValuePair<string, string?>("ConnectionStrings:cosmosConnection", ConnectionString), 64new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:Cosmos:RequestTimeout", "00:10:08"), 93new KeyValuePair<string, string?>("ConnectionStrings:cosmosConnection", ConnectionString), 98new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:Cosmos:RequestTimeout", "400"), 136new KeyValuePair<string, string?>("ConnectionStrings:cosmos", ConnectionString), 137new KeyValuePair<string, string?>("ConnectionStrings:cosmos2", connectionString2), 161new KeyValuePair<string, string?>("ConnectionStrings:cosmos", ConnectionString) 184new KeyValuePair<string, string?>("ConnectionStrings:cosmos", ConnectionString) 251new KeyValuePair<string, string?>("ConnectionStrings:cosmos", connectionString)
ConformanceTests.cs (1)
32new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:Cosmos:ConnectionString",
EnrichCosmosDbTests.cs (2)
144new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:Cosmos:DisableTracing", "false"), 145new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:Cosmos:TestDbContext:DisableTracing", "true")
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Implementation\SqlActivitySourceHelper.cs (1)
27new KeyValuePair<string, object>(SemanticConventions.AttributeDbSystem, MicrosoftSqlServerDatabaseSystemName),
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (22)
AspireSqlServerEFCoreSqlClientExtensionsTests.cs (17)
25new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString) 41new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", "unused") 60new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:SqlServer:ConnectionString", "unused"), 61new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString) 80new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString), 81new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:SqlServer:DisableRetry", "false"), 82new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:SqlServer:CommandTimeout", "608") 125new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString), 126new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:SqlServer:DisableRetry", "true"), 165new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString) 170new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:SqlServer:CommandTimeout", "608") 199new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString) 204new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:SqlServer:CommandTimeout", "400") 237new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString), 238new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection2", connectionString2), 262new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString) 285new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString)
ConformanceTests.cs (1)
76new ("Aspire:Microsoft:EntityFrameworkCore:SqlServer:ConnectionString", ConnectionString)
ConformanceTests_TypeSpecificConfig.cs (1)
20new($"Aspire:Microsoft:EntityFrameworkCore:SqlServer:{typeof(TestDbContext).Name}:ConnectionString", ConnectionString)
EnrichSqlServerTests.cs (3)
60new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:SqlServer:DisableRetry", "false") 150new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:SqlServer:DisableRetry", "true") 193new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:SqlServer:DisableRetry", "false")
Aspire.Milvus.Client.Tests (10)
AspireMilvusExtensionTests.cs (5)
36new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultKeyName}", ConnectionString) 89new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Milvus:Client", key, "Endpoint"), "unused"), 90new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultKeyName}", ConnectionString) 120new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Milvus:Client", key, "Endpoint"), "unused"), 121new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultKeyName}", ConnectionString)
ConformanceTests.cs (5)
55new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Milvus:Client", key, "Endpoint"), GetConnectionStringKeyValue(ConnectionString, "Endpoint")), 56new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Milvus:Client", key, "Key"), GetConnectionStringKeyValue(ConnectionString, "Key")) 109new KeyValuePair<string, string?>("ConnectionStrings:milvus1", "Endpoint=http://localhost1:19530;Key=pass"), 110new KeyValuePair<string, string?>("ConnectionStrings:milvus2", "Endpoint=http://localhost2:19531;Key=pass"), 111new KeyValuePair<string, string?>("ConnectionStrings:milvus3", "Endpoint=http://localhost3:19532;Key=pass"),
Aspire.MongoDB.Driver.Tests (5)
AspireMongoDBDriverExtensionsTests.cs (4)
208new KeyValuePair<string, string?>("ConnectionStrings:mongodb1", "mongodb://localhost:27011/mydatabase1"), 209new KeyValuePair<string, string?>("ConnectionStrings:mongodb2", "mongodb://localhost:27012/mydatabase2"), 210new KeyValuePair<string, string?>("ConnectionStrings:mongodb3", "mongodb://localhost:27013/mydatabase3"), 237new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultConnectionName}", connectionString)
ConformanceTests.cs (1)
69new KeyValuePair<string, string?>(
Aspire.MongoDB.Driver.v3.Tests (5)
tests\Aspire.MongoDB.Driver.Tests\AspireMongoDBDriverExtensionsTests.cs (4)
208new KeyValuePair<string, string?>("ConnectionStrings:mongodb1", "mongodb://localhost:27011/mydatabase1"), 209new KeyValuePair<string, string?>("ConnectionStrings:mongodb2", "mongodb://localhost:27012/mydatabase2"), 210new KeyValuePair<string, string?>("ConnectionStrings:mongodb3", "mongodb://localhost:27013/mydatabase3"), 237new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultConnectionName}", connectionString)
tests\Aspire.MongoDB.Driver.Tests\ConformanceTests.cs (1)
69new KeyValuePair<string, string?>(
Aspire.MySqlConnector.Tests (8)
AspireMySqlConnectorExtensionsTests.cs (7)
31new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString) 58new KeyValuePair<string, string?>("ConnectionStrings:mysql", "unused") 90new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:MySqlConnector", key, "ConnectionString"), "unused"), 91new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString) 118new KeyValuePair<string, string?>("ConnectionStrings:mysql1", "Server=localhost1;Database=test_aspire_mysql"), 119new KeyValuePair<string, string?>("ConnectionStrings:mysql2", "Server=localhost2;Database=test_aspire_mysql"), 120new KeyValuePair<string, string?>("ConnectionStrings:mysql3", "Server=localhost3;Database=test_aspire_mysql"),
ConformanceTests.cs (1)
69new KeyValuePair<string, string?>(CreateConfigKey("Aspire:MySqlConnector", key, "ConnectionString"), ConnectionString)
Aspire.NATS.Net.Tests (11)
AspireNatsClientExtensionsTests.cs (9)
38new KeyValuePair<string, string?>("ConnectionStrings:nats", _connectionString) 65new KeyValuePair<string, string?>("ConnectionStrings:nats", "nats://nats:password@aspire-host:4222") 94new KeyValuePair<string, string?>("ConnectionStrings:nats", "unused") 127new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Nats:Client", key, "ConnectionString"), "unused"), 128new KeyValuePair<string, string?>("ConnectionStrings:nats", _connectionString) 240new KeyValuePair<string, string?>("ConnectionStrings:nats1", "nats://aspire-host1:4222"), 241new KeyValuePair<string, string?>("ConnectionStrings:nats2", "nats://aspire-host2:4222"), 242new KeyValuePair<string, string?>("ConnectionStrings:nats3", "nats://aspire-host3:4222"), 269new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultConnectionName}", connectionString)
ConformanceTests.cs (1)
54new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Nats:Net", key, "ConnectionString"), _connectionString)
NatsClientPublicApiTests.cs (1)
120new KeyValuePair<string, string?>("ConnectionStrings:Nats", "nats")
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (23)
AspireEFPostgreSqlExtensionsTests.cs (16)
33new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString) 49new KeyValuePair<string, string?>("ConnectionStrings:npgsql", "unused") 70new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:ConnectionString", "unused"), 71new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString) 90new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString), 91new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:Retry", "true") 132new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString), 133new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:DisableRetry", "true") 173new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString) 178new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:CommandTimeout", "123") 207new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString) 212new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:CommandTimeout", "400") 244new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString), 245new KeyValuePair<string, string?>("ConnectionStrings:npgsql2", connectionString2), 269new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString) 292new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
ConformanceTests.cs (1)
90new("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:ConnectionString", ConnectionString)
ConformanceTests_TypeSpecificConfig.cs (1)
19new($"Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:{typeof(TestDbContext).Name}:ConnectionString", ConnectionString)
EnrichNpgsqlTests.cs (5)
61new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:Retry", "true") 154new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:DisableRetry", "true") 198new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:DisableRetry", "false") 353new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:DisableTracing", "false"), 354new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:TestDbContext:DisableTracing", "true")
Aspire.Npgsql.Tests (9)
AspirePostgreSqlNpgsqlExtensionsTests.cs (8)
23new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString) 50new KeyValuePair<string, string?>("ConnectionStrings:npgsql", "unused") 82new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Npgsql", key, "ConnectionString"), "unused"), 83new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString) 112new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString) 140new KeyValuePair<string, string?>("ConnectionStrings:npgsql1", "Host=localhost1;Database=test_aspire_npgsql"), 141new KeyValuePair<string, string?>("ConnectionStrings:npgsql2", "Host=localhost2;Database=test_aspire_npgsql"), 142new KeyValuePair<string, string?>("ConnectionStrings:npgsql3", "Host=localhost3;Database=test_aspire_npgsql"),
ConformanceTests.cs (1)
71new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Npgsql", key, "ConnectionString"), ConnectionString)
Aspire.OpenAI.Tests (13)
AspireOpenAIExtensionsTests.cs (12)
24new KeyValuePair<string, string?>("ConnectionStrings:openai", ConnectionString) 78new KeyValuePair<string, string?>("ConnectionStrings:openai", connectionString) 96new KeyValuePair<string, string?>("ConnectionStrings:openai", connectionString) 116new KeyValuePair<string, string?>("ConnectionStrings:openai1", ConnectionString), 117new KeyValuePair<string, string?>("ConnectionStrings:openai2", ConnectionString + "2"), 118new KeyValuePair<string, string?>("ConnectionStrings:openai3", ConnectionString + "3") 141new KeyValuePair<string, string?>("ConnectionStrings:openai", ConnectionString), 142new KeyValuePair<string, string?>("Aspire:OpenAI:DisableTracing", "true") 163new KeyValuePair<string, string?>("ConnectionStrings:openai", ConnectionString), 164new KeyValuePair<string, string?>("Aspire:OpenAI:ClientOptions:ProjectId", "myproject") 186new KeyValuePair<string, string?>("Aspire:OpenAI:ClientOptions:ProjectId", "myproject"), 187new KeyValuePair<string, string?>("Aspire:OpenAI:openai:ClientOptions:ProjectId", "myproject2")
ConformanceTests.cs (1)
52new KeyValuePair<string, string?>(CreateConfigKey("Aspire:OpenAI", key, "Key"), "fake")
Aspire.Oracle.EntityFrameworkCore.Tests (26)
AspireOracleEFCoreDatabaseExtensionsTests.cs (19)
26new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString) 42new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", "unused") 61new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:ConnectionString", "unused"), 62new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString) 81new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString), 82new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:DisableRetry", "false"), 83new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:CommandTimeout", "608") 126new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString), 127new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:DisableRetry", "true"), 166new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString), 171new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:CommandTimeout", "608") 200new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString), 205new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:CommandTimeout", "400") 238new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString), 239new KeyValuePair<string, string?>("ConnectionStrings:orclconnection2", connectionString2), 263new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString) 286new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString) 308new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString) 324new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString)
ConformanceTests.cs (1)
72new ("Aspire:Oracle:EntityFrameworkCore:ConnectionString", ConnectionString)
ConformanceTests_TypeSpecificConfig.cs (1)
19new($"Aspire:Oracle:EntityFrameworkCore:{typeof(TestDbContext).Name}:ConnectionString", ConnectionString)
EnrichOracleDatabaseTests.cs (5)
61new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:DisableRetry", "false") 151new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:DisableRetry", "true") 194new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:DisableRetry", "false") 342new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:DisableTracing", "false"), 343new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:TestDbContext:DisableTracing", "true")
Aspire.Playground.Tests (3)
tests\Aspire.Components.Common.Tests\RequiresDockerDiscoverer.cs (1)
16yield return new KeyValuePair<string, string>(XunitConstants.Category, "failing");
tests\Aspire.Components.Common.Tests\RequiresToolsDiscoverer.cs (1)
17yield return new KeyValuePair<string, string>(XunitConstants.Category, "failing");
tests\Shared\Logging\LogValuesAssert.cs (1)
21Contains(new[] { new KeyValuePair<string, object>(key, value) }, actualValues);
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (30)
AspireEFMySqlExtensionsTests.cs (21)
37new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:ServerVersion", s_serverVersionString), 38new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString) 56new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:ServerVersion", s_serverVersionString), 57new KeyValuePair<string, string?>("ConnectionStrings:mysql", "unused") 77new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:ServerVersion", s_serverVersionString), 78new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:ConnectionString", "unused"), 79new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString) 99new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:ServerVersion", s_serverVersionString), 100new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString), 101new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:DisableRetry", "false") 142new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:ServerVersion", s_serverVersionString), 143new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString), 144new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:DisableRetry", "true") 184new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:ServerVersion", "8.2.0-mysql"), 185new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString), 190new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:CommandTimeout", "123"), 219new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:ServerVersion", "8.2.0-mysql"), 220new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString), 225new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:CommandTimeout", "400"), 257new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString) 280new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString)
ConformanceTests.cs (2)
86new("Aspire:Pomelo:EntityFrameworkCore:MySql:ConnectionString", ConnectionString), 87new("Aspire:Pomelo:EntityFrameworkCore:MySql:ServerVersion", ServerVersion)
ConformanceTests_TypeSpecificConfig.cs (2)
19new($"Aspire:Pomelo:EntityFrameworkCore:MySql:{typeof(TestDbContext).Name}:ConnectionString", ConnectionString), 20new($"Aspire:Pomelo:EntityFrameworkCore:MySql:{typeof(TestDbContext).Name}:ServerVersion", ServerVersion)
EnrichMySqlTests.cs (5)
74new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:DisableRetry", "false") 164new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:DisableRetry", "true") 207new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:DisableRetry", "false") 355new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:DisableTracing", "false"), 356new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:TestDbContext:DisableTracing", "true")
Aspire.Qdrant.Client.Tests (6)
AspireQdrantClientExtensionsTest.cs (4)
92new KeyValuePair<string, string?>("ConnectionStrings:qdrant1", "Endpoint=http://localhost1:6331;Key=pass"), 93new KeyValuePair<string, string?>("ConnectionStrings:qdrant2", "Endpoint=http://localhost2:6332;Key=pass"), 94new KeyValuePair<string, string?>("ConnectionStrings:qdrant3", "Endpoint=http://localhost3:6333;Key=pass"), 117new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultConnectionName}", connectionString)
ConformanceTests.cs (2)
58new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Qdrant:Client", key, "Endpoint"), GetConnectionStringKeyValue(_connectionString,"Endpoint")), 59new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Qdrant:Client", key, "Key"), GetConnectionStringKeyValue(_connectionString,"Key")),
Aspire.RabbitMQ.Client (4)
src\Components\Aspire.RabbitMQ.Client\RabbitMQEventSourceLogForwarder.cs (4)
1150 => new("exception.type", exData["Type"]), 1161 => new("exception.message", exData["Message"]), 1172 => new("exception.stacktrace", exData["StackTrace"]), 1183 => new("exception.innerexception", exData["InnerException"]),
Aspire.RabbitMQ.Client.Tests (8)
AspireRabbitMQExtensionsTests.cs (7)
33new KeyValuePair<string, string?>("ConnectionStrings:messaging", _containerFixture.GetConnectionString()) 61new KeyValuePair<string, string?>("ConnectionStrings:messaging", "unused") 92new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:RabbitMQ:Client", key, "ConnectionString"), "unused"), 93new KeyValuePair<string, string?>("ConnectionStrings:messaging", _containerFixture.GetConnectionString()) 171new KeyValuePair<string, string?>("ConnectionStrings:messaging1", _containerFixture.GetConnectionString()), 172new KeyValuePair<string, string?>("ConnectionStrings:messaging2", container2.GetConnectionString()), 173new KeyValuePair<string, string?>("ConnectionStrings:messaging3", container3.GetConnectionString())
AspireRabbitMQLoggingTests.cs (1)
43new KeyValuePair<string, string?>("ConnectionStrings:messaging", rabbitMqContainer.GetConnectionString())
Aspire.RabbitMQ.Client.v7.Tests (8)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQExtensionsTests.cs (7)
33new KeyValuePair<string, string?>("ConnectionStrings:messaging", _containerFixture.GetConnectionString()) 61new KeyValuePair<string, string?>("ConnectionStrings:messaging", "unused") 92new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:RabbitMQ:Client", key, "ConnectionString"), "unused"), 93new KeyValuePair<string, string?>("ConnectionStrings:messaging", _containerFixture.GetConnectionString()) 171new KeyValuePair<string, string?>("ConnectionStrings:messaging1", _containerFixture.GetConnectionString()), 172new KeyValuePair<string, string?>("ConnectionStrings:messaging2", container2.GetConnectionString()), 173new KeyValuePair<string, string?>("ConnectionStrings:messaging3", container3.GetConnectionString())
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (1)
43new KeyValuePair<string, string?>("ConnectionStrings:messaging", rabbitMqContainer.GetConnectionString())
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisConnectionInstrumentation.cs (1)
27new KeyValuePair<string, object?>(SemanticConventions.AttributeDbSystem, "redis"),
Aspire.StackExchange.Redis.DistributedCaching.Tests (1)
DistributedCacheConformanceTests.cs (1)
47new KeyValuePair<string, string?>("ConnectionStrings:redis", connectionString)
Aspire.StackExchange.Redis.OutputCaching.Tests (1)
OutputCacheConformanceTests.cs (1)
47new KeyValuePair<string, string?>("ConnectionStrings:redis", connectionString)
Aspire.StackExchange.Redis.Tests (15)
AspireRedisExtensionsTests.cs (14)
62new KeyValuePair<string, string?>("ConnectionStrings:myredis", ConnectionString) 90new KeyValuePair<string, string?>("ConnectionStrings:redis", "unused") 123new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:StackExchange:Redis", key, "ConnectionString"), "unused"), 124new KeyValuePair<string, string?>("ConnectionStrings:redis", ConnectionString) 162new KeyValuePair<string, string?>("ConnectionStrings:redis", TestingEndpoint) 167new KeyValuePair<string, string?>("ConnectionStrings:redis", TestingEndpoint), 168new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:StackExchange:Redis", useKeyed ? "redis" : null, "ConfigurationOptions:AbortOnConnectFail"), "true") 173new KeyValuePair<string, string?>("ConnectionStrings:redis", $"{TestingEndpoint},abortConnect={(abortConnect ? "true" : "false")}") 270new KeyValuePair<string, string?>("ConnectionStrings:redis", connectionString) 309new KeyValuePair<string, string?>("ConnectionStrings:redis2", container2.GetConnectionString()), 310new KeyValuePair<string, string?>("ConnectionStrings:redis3", container3.GetConnectionString()) 345new KeyValuePair<string, string?>("ConnectionStrings:redis1", container1.GetConnectionString()), 346new KeyValuePair<string, string?>("ConnectionStrings:redis2", container2.GetConnectionString()), 347new KeyValuePair<string, string?>("ConnectionStrings:redis3", container3.GetConnectionString())
ConformanceTests.cs (1)
73new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:StackExchange:Redis", key, "ConnectionString"), connectionString)
Diagnostics.EFCore.FunctionalTests (5)
DatabaseErrorPageMiddlewareTest.cs (1)
297new KeyValuePair<string, string>("context", expectedContextType)
MigrationsEndPointMiddlewareTest.cs (4)
122new KeyValuePair<string, string>("context", typeof(BloggingContextWithMigrations).AssemblyQualifiedName) 190new KeyValuePair<string, string>("context", typeName) 219new KeyValuePair<string, string>("context", typeof(BloggingContext).AssemblyQualifiedName) 258new KeyValuePair<string, string>("context", typeof(BloggingContextWithSnapshotThatThrows).AssemblyQualifiedName)
dotnet-svcutil-lib (17)
CommandProcessorOptions.cs (1)
653this.NamespaceMappings.Add(new KeyValuePair<string, string>("*", clrNamespace));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (1)
60return new KeyValuePair<K, T>(_kvpKey, _kvpValue);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (10)
734array[index++] = new KeyValuePair<string, object>(ViaKey, _via); 737array[index++] = new KeyValuePair<string, object>(AllowOutputBatchingKey, _allowOutputBatching); 740array[index++] = new KeyValuePair<string, object>(SecurityKey, _security.CreateCopy()); 743array[index++] = new KeyValuePair<string, object>(EncoderKey, _encoder); 756array[index++] = new KeyValuePair<string, object>(propertyName, CreateCopyOfPropertyValue(_properties[i].Value)); 804pairs.Add(new KeyValuePair<string, object>(ViaKey, _via)); 807pairs.Add(new KeyValuePair<string, object>(AllowOutputBatchingKey, _allowOutputBatching)); 810pairs.Add(new KeyValuePair<string, object>(SecurityKey, _security)); 813pairs.Add(new KeyValuePair<string, object>(EncoderKey, _encoder)); 826pairs.Add(new KeyValuePair<string, object>(propertyName, _properties[i].Value));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ImportedPolicyConversionContext.cs (2)
261digits[i] = new KeyValuePair<K, IEnumerator<V>>(kvp.Key, kvp.Value.GetEnumerator()); 285digits[currentDigit] = new KeyValuePair<K, IEnumerator<V>>(digits[currentDigit].Key, newDigit);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
285multipleHeaderValues[headerDescription.Index] = new KeyValuePair<System.Type, System.Collections.ArrayList>(headerDescription.TypedHeader ? TypedHeaderManager.GetMessageHeaderType(headerDescription.Type) : headerDescription.Type, new ArrayList());
Shared\Options\OptionValueParser.cs (1)
217var value = new KeyValuePair<string, string>(parts[0].Trim(), parts[1].Trim());
Shared\Options\WCFCSUpdateOptions.cs (1)
173var value = new KeyValuePair<string, string>(valueKey.Trim(), valueVal.Trim());
dotnet-svcutil-lib.Tests (4)
E2ETests.cs (1)
357wcfcsoptions.NamespaceMappings.Add(new KeyValuePair<string, string>("*", $"{testCaseName}_NS"));
GlobalToolTests.cs (1)
193options.NamespaceMappings.Add(new System.Collections.Generic.KeyValuePair<string, string>("*", ns));
TestInit.cs (2)
488diffLines = new KeyValuePair<string, string>($"Line count file1: {fileLines1.Count}", $"Line count file2: {fileLines2.Count}"); 500diffLines = new KeyValuePair<string, string>(fileLines1[i], fileLines2[i]);
http2cat (52)
src\Shared\Http2cat\Http2Utilities.cs (52)
38new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 39new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 40new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 41new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 42new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 43new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 44new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 45new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 46new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 51new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 52new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 53new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 54new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 55new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 56new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 57new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 58new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 59new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 64new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 65new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 66new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 67new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 72new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 73new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 74new KeyValuePair<string, string>(InternalHeaderNames.Authority, "127.0.0.1"), 75new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 76new KeyValuePair<string, string>("expect", "100-continue"), 81new KeyValuePair<string, string>("trailer-one", "1"), 82new KeyValuePair<string, string>("trailer-two", "2"), 87new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 88new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 89new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 90new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 91new KeyValuePair<string, string>("a", FourKHeaderValue), 92new KeyValuePair<string, string>("b", FourKHeaderValue), 93new KeyValuePair<string, string>("c", FourKHeaderValue), 94new KeyValuePair<string, string>("d", FourKHeaderValue) 99new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 100new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 101new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 102new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 103new KeyValuePair<string, string>("a", FourKHeaderValue), 104new KeyValuePair<string, string>("b", FourKHeaderValue), 105new KeyValuePair<string, string>("c", FourKHeaderValue), 106new KeyValuePair<string, string>("d", FourKHeaderValue), 107new KeyValuePair<string, string>("e", FourKHeaderValue), 108new KeyValuePair<string, string>("f", FourKHeaderValue), 109new KeyValuePair<string, string>("g", FourKHeaderValue), 114new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 115new KeyValuePair<string, string>(InternalHeaderNames.Path, "/" + expectedBytes), 116new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 117new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"),
IIS.FunctionalTests (91)
Http2TrailersResetTests.cs (13)
489var kvp = new KeyValuePair<string, string>(InternalHeaderNames.Path, path); 498var kvp = new KeyValuePair<string, string>(InternalHeaderNames.Path, path); 524new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 525new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 526new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 527new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 528new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 529new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 530new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 531new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 536new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 537new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 538new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"),
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (26)
73new KeyValuePair<string, string>(InternalHeaderNames.Method, method), 74new KeyValuePair<string, string>(InternalHeaderNames.Path, "/Http2_MethodsRequestWithoutData_Success"), 75new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 76new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 110new KeyValuePair<string, string>(InternalHeaderNames.Method, method), 111new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 112new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 113new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 153new KeyValuePair<string, string>(InternalHeaderNames.Method, method), 154new KeyValuePair<string, string>(InternalHeaderNames.Path, "/Http2_RequestWithDataAndContentLength_Success"), 155new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 156new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 157new KeyValuePair<string, string>(HeaderNames.ContentLength, "11"), 223new KeyValuePair<string, string>(InternalHeaderNames.Method, method), 224new KeyValuePair<string, string>(InternalHeaderNames.Path, "/Http2_RequestWithDataAndNoContentLength_Success"), 225new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 226new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 384var kvp = new KeyValuePair<string, string>(InternalHeaderNames.Path, path); 401new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 402new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 403new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 404new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 405new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 406new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 407new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 408new KeyValuePair<string, string>("upgrade-insecure-requests", "1"),
src\Shared\Http2cat\Http2Utilities.cs (52)
38new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 39new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 40new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 41new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 42new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 43new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 44new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 45new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 46new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 51new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 52new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 53new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 54new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 55new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 56new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 57new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 58new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 59new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 64new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 65new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 66new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 67new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 72new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 73new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 74new KeyValuePair<string, string>(InternalHeaderNames.Authority, "127.0.0.1"), 75new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 76new KeyValuePair<string, string>("expect", "100-continue"), 81new KeyValuePair<string, string>("trailer-one", "1"), 82new KeyValuePair<string, string>("trailer-two", "2"), 87new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 88new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 89new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 90new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 91new KeyValuePair<string, string>("a", FourKHeaderValue), 92new KeyValuePair<string, string>("b", FourKHeaderValue), 93new KeyValuePair<string, string>("c", FourKHeaderValue), 94new KeyValuePair<string, string>("d", FourKHeaderValue) 99new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 100new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 101new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 102new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 103new KeyValuePair<string, string>("a", FourKHeaderValue), 104new KeyValuePair<string, string>("b", FourKHeaderValue), 105new KeyValuePair<string, string>("c", FourKHeaderValue), 106new KeyValuePair<string, string>("d", FourKHeaderValue), 107new KeyValuePair<string, string>("e", FourKHeaderValue), 108new KeyValuePair<string, string>("f", FourKHeaderValue), 109new KeyValuePair<string, string>("g", FourKHeaderValue), 114new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 115new KeyValuePair<string, string>(InternalHeaderNames.Path, "/" + expectedBytes), 116new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 117new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"),
IIS.LongTests (52)
src\Shared\Http2cat\Http2Utilities.cs (52)
38new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 39new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 40new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 41new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 42new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 43new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 44new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 45new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 46new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 51new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 52new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 53new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 54new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 55new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 56new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 57new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 58new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 59new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 64new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 65new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 66new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 67new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 72new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 73new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 74new KeyValuePair<string, string>(InternalHeaderNames.Authority, "127.0.0.1"), 75new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 76new KeyValuePair<string, string>("expect", "100-continue"), 81new KeyValuePair<string, string>("trailer-one", "1"), 82new KeyValuePair<string, string>("trailer-two", "2"), 87new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 88new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 89new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 90new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 91new KeyValuePair<string, string>("a", FourKHeaderValue), 92new KeyValuePair<string, string>("b", FourKHeaderValue), 93new KeyValuePair<string, string>("c", FourKHeaderValue), 94new KeyValuePair<string, string>("d", FourKHeaderValue) 99new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 100new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 101new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 102new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 103new KeyValuePair<string, string>("a", FourKHeaderValue), 104new KeyValuePair<string, string>("b", FourKHeaderValue), 105new KeyValuePair<string, string>("c", FourKHeaderValue), 106new KeyValuePair<string, string>("d", FourKHeaderValue), 107new KeyValuePair<string, string>("e", FourKHeaderValue), 108new KeyValuePair<string, string>("f", FourKHeaderValue), 109new KeyValuePair<string, string>("g", FourKHeaderValue), 114new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 115new KeyValuePair<string, string>(InternalHeaderNames.Path, "/" + expectedBytes), 116new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 117new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"),
IIS.NewHandler.FunctionalTests (52)
src\Shared\Http2cat\Http2Utilities.cs (52)
38new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 39new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 40new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 41new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 42new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 43new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 44new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 45new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 46new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 51new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 52new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 53new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 54new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 55new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 56new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 57new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 58new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 59new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 64new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 65new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 66new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 67new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 72new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 73new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 74new KeyValuePair<string, string>(InternalHeaderNames.Authority, "127.0.0.1"), 75new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 76new KeyValuePair<string, string>("expect", "100-continue"), 81new KeyValuePair<string, string>("trailer-one", "1"), 82new KeyValuePair<string, string>("trailer-two", "2"), 87new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 88new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 89new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 90new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 91new KeyValuePair<string, string>("a", FourKHeaderValue), 92new KeyValuePair<string, string>("b", FourKHeaderValue), 93new KeyValuePair<string, string>("c", FourKHeaderValue), 94new KeyValuePair<string, string>("d", FourKHeaderValue) 99new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 100new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 101new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 102new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 103new KeyValuePair<string, string>("a", FourKHeaderValue), 104new KeyValuePair<string, string>("b", FourKHeaderValue), 105new KeyValuePair<string, string>("c", FourKHeaderValue), 106new KeyValuePair<string, string>("d", FourKHeaderValue), 107new KeyValuePair<string, string>("e", FourKHeaderValue), 108new KeyValuePair<string, string>("f", FourKHeaderValue), 109new KeyValuePair<string, string>("g", FourKHeaderValue), 114new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 115new KeyValuePair<string, string>(InternalHeaderNames.Path, "/" + expectedBytes), 116new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 117new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"),
IIS.NewShim.FunctionalTests (52)
src\Shared\Http2cat\Http2Utilities.cs (52)
38new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 39new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 40new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 41new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 42new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 43new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 44new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 45new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 46new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 51new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 52new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 53new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 54new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 55new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 56new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 57new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 58new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 59new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 64new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 65new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 66new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 67new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 72new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 73new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 74new KeyValuePair<string, string>(InternalHeaderNames.Authority, "127.0.0.1"), 75new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 76new KeyValuePair<string, string>("expect", "100-continue"), 81new KeyValuePair<string, string>("trailer-one", "1"), 82new KeyValuePair<string, string>("trailer-two", "2"), 87new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 88new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 89new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 90new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 91new KeyValuePair<string, string>("a", FourKHeaderValue), 92new KeyValuePair<string, string>("b", FourKHeaderValue), 93new KeyValuePair<string, string>("c", FourKHeaderValue), 94new KeyValuePair<string, string>("d", FourKHeaderValue) 99new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 100new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 101new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 102new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 103new KeyValuePair<string, string>("a", FourKHeaderValue), 104new KeyValuePair<string, string>("b", FourKHeaderValue), 105new KeyValuePair<string, string>("c", FourKHeaderValue), 106new KeyValuePair<string, string>("d", FourKHeaderValue), 107new KeyValuePair<string, string>("e", FourKHeaderValue), 108new KeyValuePair<string, string>("f", FourKHeaderValue), 109new KeyValuePair<string, string>("g", FourKHeaderValue), 114new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 115new KeyValuePair<string, string>(InternalHeaderNames.Path, "/" + expectedBytes), 116new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 117new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"),
IISExpress.FunctionalTests (78)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (26)
73new KeyValuePair<string, string>(InternalHeaderNames.Method, method), 74new KeyValuePair<string, string>(InternalHeaderNames.Path, "/Http2_MethodsRequestWithoutData_Success"), 75new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 76new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 110new KeyValuePair<string, string>(InternalHeaderNames.Method, method), 111new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 112new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 113new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 153new KeyValuePair<string, string>(InternalHeaderNames.Method, method), 154new KeyValuePair<string, string>(InternalHeaderNames.Path, "/Http2_RequestWithDataAndContentLength_Success"), 155new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 156new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 157new KeyValuePair<string, string>(HeaderNames.ContentLength, "11"), 223new KeyValuePair<string, string>(InternalHeaderNames.Method, method), 224new KeyValuePair<string, string>(InternalHeaderNames.Path, "/Http2_RequestWithDataAndNoContentLength_Success"), 225new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 226new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 384var kvp = new KeyValuePair<string, string>(InternalHeaderNames.Path, path); 401new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 402new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 403new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 404new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 405new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 406new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 407new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 408new KeyValuePair<string, string>("upgrade-insecure-requests", "1"),
src\Shared\Http2cat\Http2Utilities.cs (52)
38new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 39new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 40new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 41new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 42new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 43new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 44new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 45new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 46new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 51new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 52new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 53new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 54new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 55new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 56new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 57new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 58new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 59new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 64new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 65new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 66new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 67new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 72new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 73new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 74new KeyValuePair<string, string>(InternalHeaderNames.Authority, "127.0.0.1"), 75new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 76new KeyValuePair<string, string>("expect", "100-continue"), 81new KeyValuePair<string, string>("trailer-one", "1"), 82new KeyValuePair<string, string>("trailer-two", "2"), 87new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 88new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 89new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 90new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 91new KeyValuePair<string, string>("a", FourKHeaderValue), 92new KeyValuePair<string, string>("b", FourKHeaderValue), 93new KeyValuePair<string, string>("c", FourKHeaderValue), 94new KeyValuePair<string, string>("d", FourKHeaderValue) 99new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 100new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 101new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 102new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 103new KeyValuePair<string, string>("a", FourKHeaderValue), 104new KeyValuePair<string, string>("b", FourKHeaderValue), 105new KeyValuePair<string, string>("c", FourKHeaderValue), 106new KeyValuePair<string, string>("d", FourKHeaderValue), 107new KeyValuePair<string, string>("e", FourKHeaderValue), 108new KeyValuePair<string, string>("f", FourKHeaderValue), 109new KeyValuePair<string, string>("g", FourKHeaderValue), 114new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 115new KeyValuePair<string, string>(InternalHeaderNames.Path, "/" + expectedBytes), 116new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 117new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"),
InMemory.FunctionalTests (1105)
Http2\Http2ConnectionTests.cs (129)
171new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 172new KeyValuePair<string, string>(InternalHeaderNames.Path, "/hello"), 173new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 174new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 175new KeyValuePair<string, string>(HeaderNames.ContentType, "application/json") 223new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 224new KeyValuePair<string, string>(InternalHeaderNames.Path, "/hello"), 225new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 226new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 227new KeyValuePair<string, string>(HeaderNames.ContentType, "application/json") 233new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 234new KeyValuePair<string, string>(InternalHeaderNames.Path, "/hello"), 235new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 236new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80") 317new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 318new KeyValuePair<string, string>(InternalHeaderNames.Path, "/hello"), 319new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 320new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 321new KeyValuePair<string, string>(HeaderNames.ContentType, "application/json") 2818new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2819new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2820new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2821new KeyValuePair<string, string>(":unknown", "0"), 2835new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2836new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2837new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2838new KeyValuePair<string, string>(InternalHeaderNames.Status, "200"), 2927new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2928new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2929new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2930new KeyValuePair<string, string>("a", _4kHeaderValue), 2931new KeyValuePair<string, string>("b", _4kHeaderValue), 2932new KeyValuePair<string, string>("c", _4kHeaderValue), 2933new KeyValuePair<string, string>("d", _4kHeaderValue), 2934new KeyValuePair<string, string>("e", _4kHeaderValue), 2935new KeyValuePair<string, string>("f", _4kHeaderValue), 2936new KeyValuePair<string, string>("g", _4kHeaderValue), 2937new KeyValuePair<string, string>("h", _4kHeaderValue), 2938new KeyValuePair<string, string>("i", _4kHeaderValue), 2939new KeyValuePair<string, string>("j", _4kHeaderValue), 2940new KeyValuePair<string, string>("k", _4kHeaderValue), 2941new KeyValuePair<string, string>("l", _4kHeaderValue), 2942new KeyValuePair<string, string>("m", _4kHeaderValue), 2943new KeyValuePair<string, string>("n", _4kHeaderValue), 2944new KeyValuePair<string, string>("o", _4kHeaderValue), 2945new KeyValuePair<string, string>("p", _4kHeaderValue), 2961new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2962new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2963new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2967headers.Add(new KeyValuePair<string, string>(i.ToString(CultureInfo.InvariantCulture), i.ToString(CultureInfo.InvariantCulture))); 2981new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2982new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2983new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2984new KeyValuePair<string, string>("Custom", "val\0ue"), 2998new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2999new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3000new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 3001new KeyValuePair<string, string>("Cus\0tom", "value"), 3013new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 3014new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3015new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 3016new KeyValuePair<string, string>("connection", "keep-alive") 3030new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 3031new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3032new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 3033new KeyValuePair<string, string>("te", "trailers, deflate") 3047new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 3048new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3049new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 3050new KeyValuePair<string, string>("te", "trailers") 3072new KeyValuePair<string, string>(InternalHeaderNames.Method, new string('A', 8192 / 2)), 3073new KeyValuePair<string, string>(InternalHeaderNames.Path, "/" + new string('A', 8192 / 2)), 3074new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http") 3092new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 3093new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3094new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 3095new KeyValuePair<string, string>(HeaderNames.Cookie, "a=0"), 3096new KeyValuePair<string, string>(HeaderNames.Cookie, "b=1"), 3097new KeyValuePair<string, string>(HeaderNames.Cookie, "c=2"), 3533new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 3534new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3535new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 3559new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 3560new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3561new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 3585new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 3586new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3587new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 3610new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 3611new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3612new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5363new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 5364new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5365new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5416new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 5417new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5418new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5462new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 5463new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5464new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5534new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 5535new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5536new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5616new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 5617new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5618new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5669new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 5670new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5671new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5710new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 5711new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5712new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5787new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 5788new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5789new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 6064new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 6065new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 6066new KeyValuePair<string, string>(InternalHeaderNames.Authority, "127.0.0.1"), 6067new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 6072var headers = requestHeaders.Concat(new[] { new KeyValuePair<string, string>(headerField.Key, headerField.Value) }); 6087new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 6088new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 6089new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 6107var methodHeader = new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT"); 6122new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 6123new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 6124new KeyValuePair<string, string>(InternalHeaderNames.Authority, "127.0.0.1"), 6125new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 6126new KeyValuePair<string, string>("content-length", "0")
Http2\Http2StreamTests.cs (360)
30new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 31new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 32new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 33new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 34new KeyValuePair<string, string>("TestHeader", headerValue), 49new KeyValuePair<string, string>(InternalHeaderNames.Method, ""), 50new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 51new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 52new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 68new KeyValuePair<string, string>(InternalHeaderNames.Method, "Hello,World"), 69new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 70new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 71new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 93new KeyValuePair<string, string>(InternalHeaderNames.Method, method), 94new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 95new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 96new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 144new KeyValuePair<string, string>(InternalHeaderNames.Method, "HEAD"), 145new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 146new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 147new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 177new KeyValuePair<string, string>(InternalHeaderNames.Method, method), 178new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 179new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 180new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 181new KeyValuePair<string, string>(HeaderNames.ContentLength, "11"), 229new KeyValuePair<string, string>(InternalHeaderNames.Method, method), 230new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 231new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 232new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 275var headers = new[] { new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT") }; 301new KeyValuePair<string, string>(InternalHeaderNames.Method, "OPTIONS"), 302new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 303new KeyValuePair<string, string>(InternalHeaderNames.Path, "*") 332new KeyValuePair<string, string>(InternalHeaderNames.Method, "OPTIONS"), 333new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 334new KeyValuePair<string, string>(InternalHeaderNames.Path, "/") 369new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 370new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 371new KeyValuePair<string, string>(InternalHeaderNames.Path, "/a/path?a&que%35ry") 414new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 415new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 416new KeyValuePair<string, string>(InternalHeaderNames.Path, input) 443var headers = new[] { new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT"), 444new KeyValuePair<string, string>(headerName, value) }; 459var headers = new[] { new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 460new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 461new KeyValuePair<string, string>(InternalHeaderNames.Scheme, scheme) }; // Not the expected "http" 486new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 487new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 488new KeyValuePair<string, string>(InternalHeaderNames.Scheme, scheme) 518new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 519new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 520new KeyValuePair<string, string>(InternalHeaderNames.Scheme, scheme) 535new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 536new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 537new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 563new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 564new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 565new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 566new KeyValuePair<string, string>(InternalHeaderNames.Authority, ""), 592new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 593new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 594new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 595new KeyValuePair<string, string>("Host", "abc"), 622new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 623new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 624new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 625new KeyValuePair<string, string>(InternalHeaderNames.Authority, ""), 626new KeyValuePair<string, string>("Host", "abc"), 653new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 654new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 655new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 656new KeyValuePair<string, string>(InternalHeaderNames.Authority, "def"), 657new KeyValuePair<string, string>("Host", "abc"), 684new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 685new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 686new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 687new KeyValuePair<string, string>(InternalHeaderNames.Authority, "def"), 688new KeyValuePair<string, string>("Host", "a=bc"), 715new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 716new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 717new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 718new KeyValuePair<string, string>(InternalHeaderNames.Authority, "local=host:80"), 735new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 736new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 737new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 738new KeyValuePair<string, string>(InternalHeaderNames.Authority, "d=ef"), 739new KeyValuePair<string, string>("Host", "abc"), 756new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 757new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 758new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 759new KeyValuePair<string, string>("Host", "host1"), 760new KeyValuePair<string, string>("Host", "host2"), 780new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET" + new string('a', 1024 * 3)), 781new KeyValuePair<string, string>(InternalHeaderNames.Path, "/Hello/How/Are/You/" + new string('a', 1024 * 3)), 782new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 783new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost" + new string('a', 1024 * 3) + ":80"), 800new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 801new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 802new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 803new KeyValuePair<string, string>("a", _4kHeaderValue), 804new KeyValuePair<string, string>("b", _4kHeaderValue), 805new KeyValuePair<string, string>("c", _4kHeaderValue), 806new KeyValuePair<string, string>("d", _4kHeaderValue), 807new KeyValuePair<string, string>("e", _4kHeaderValue), 808new KeyValuePair<string, string>("f", _4kHeaderValue), 809new KeyValuePair<string, string>("g", _4kHeaderValue), 810new KeyValuePair<string, string>("h", _4kHeaderValue), 837new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 838new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 839new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 844headers.Add(new KeyValuePair<string, string>(text, text)); 870new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 871new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 872new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 873new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 916new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 917new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 918new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 919new KeyValuePair<string, string>("a", _4kHeaderValue), 920new KeyValuePair<string, string>("b", _4kHeaderValue), 921new KeyValuePair<string, string>("c", _4kHeaderValue), 922new KeyValuePair<string, string>("d", _4kHeaderValue), 923new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 948new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 949new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 950new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 951new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 991new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 992new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 993new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 994new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1035new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 1036new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1037new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1038new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1087new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 1088new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1089new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1090new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1116new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 1117new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1118new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1119new KeyValuePair<string, string>("a", _4kHeaderValue), 1120new KeyValuePair<string, string>("b", _4kHeaderValue), 1121new KeyValuePair<string, string>("c", _4kHeaderValue), 1122new KeyValuePair<string, string>("d", _4kHeaderValue), 1123new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1141new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 1142new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1143new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1144new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1176new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 1177new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1178new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1179new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1211new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 1212new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1213new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1214new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1247new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 1248new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1249new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1250new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1297new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 1298new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1299new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1300new KeyValuePair<string, string>("a", _4kHeaderValue), 1301new KeyValuePair<string, string>("b", _4kHeaderValue), 1302new KeyValuePair<string, string>("c", _4kHeaderValue), 1303new KeyValuePair<string, string>("d", _4kHeaderValue), 1304new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1329new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1330new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1331new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1367new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1368new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1369new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1406new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1407new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1408new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1440new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1441new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1442new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1474new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1475new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1476new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1512new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1513new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1514new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1549new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1550new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1551new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1586new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1587new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1588new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1634new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1635new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1636new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1672new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1673new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1674new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1709new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1710new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1711new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1752new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1753new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1754new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1787new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1788new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1789new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1820new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1821new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1822new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1859new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 1860new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1861new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1862new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1900new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 1901new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1902new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1903new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 1946new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 1947new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1948new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1986new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 1987new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1988new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2038new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 2039new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2040new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2046new KeyValuePair<string, string>(HeaderNames.ContentLength, "18"), 2098new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 2099new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2100new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2106new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 2977new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2978new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2979new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 3043new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 3044new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3045new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 3095new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 3096new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3097new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 3128new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 3129new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3130new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 3789new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 3790new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3791new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 3824new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 3825new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3826new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 3870new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 3871new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3872new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 3916new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 3917new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3918new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 3962new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 3963new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 3964new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4014new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4015new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4016new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4067new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4068new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4069new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4113new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4114new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4115new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4163new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4164new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4165new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4208new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4209new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4210new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4250new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4251new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4252new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4290new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4291new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4292new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4325new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4326new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4327new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4367new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4368new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4369new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4431new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4432new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4433new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4482new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4483new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4484new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4528new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4529new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4530new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4568new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4569new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4570new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4632new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4633new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4634new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4664new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4665new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4666new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4698new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4699new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4700new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4735new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4736new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4737new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4788new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4789new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4790new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4854new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4855new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4856new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4909new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4910new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4911new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 4975new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 4976new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 4977new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5031new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 5032new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5033new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5097new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 5098new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5099new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5145new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 5146new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5147new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5224new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 5225new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5226new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5298new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 5299new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5300new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5368new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 5369new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5370new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5439new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 5440new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5441new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5519new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 5520new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5521new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5603new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 5604new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5605new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5685new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 5686new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5687new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 5889new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 5890new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 5891new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"),
Http2\Http2TestBase.cs (43)
40new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 41new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 42new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 43new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 44new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 45new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 46new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 47new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 48new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 53new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 54new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 55new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 56new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 61new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 62new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 63new KeyValuePair<string, string>(InternalHeaderNames.Authority, "127.0.0.1"), 64new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 65new KeyValuePair<string, string>(HeaderNames.Expect, "100-continue"), 70new KeyValuePair<string, string>("trailer-one", "1"), 71new KeyValuePair<string, string>("trailer-two", "2"), 76new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 77new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 78new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 79new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 80new KeyValuePair<string, string>("a", _4kHeaderValue), 81new KeyValuePair<string, string>("b", _4kHeaderValue), 82new KeyValuePair<string, string>("c", _4kHeaderValue), 83new KeyValuePair<string, string>("d", _4kHeaderValue) 88new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 89new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 90new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 91new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 92new KeyValuePair<string, string>("a", _4kHeaderValue), 93new KeyValuePair<string, string>("b", _4kHeaderValue), 94new KeyValuePair<string, string>("c", _4kHeaderValue), 95new KeyValuePair<string, string>("d", _4kHeaderValue), 96new KeyValuePair<string, string>("e", _4kHeaderValue), 97new KeyValuePair<string, string>("f", _4kHeaderValue), 98new KeyValuePair<string, string>("g", _4kHeaderValue), 103new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 104new KeyValuePair<string, string>(InternalHeaderNames.Path, "/" + expectedBytes), 105new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 106new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"),
Http2\Http2TimeoutTests.cs (3)
252new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 253new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 254new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"),
Http2\Http2WebSocketTests.cs (84)
50new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT"), 51new KeyValuePair<string, string>(InternalHeaderNames.Protocol, "websocket"), 52new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 53new KeyValuePair<string, string>(InternalHeaderNames.Path, "/chat"), 54new KeyValuePair<string, string>(InternalHeaderNames.Authority, "server.example.com"), 55new KeyValuePair<string, string>(HeaderNames.WebSocketSubProtocols, "chat, superchat"), 56new KeyValuePair<string, string>(HeaderNames.SecWebSocketExtensions, "permessage-deflate"), 57new KeyValuePair<string, string>(HeaderNames.SecWebSocketVersion, "13"), 58new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 116new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT"), 117new KeyValuePair<string, string>(InternalHeaderNames.Protocol, "websocket"), 118new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 119new KeyValuePair<string, string>(InternalHeaderNames.Path, "/chat"), 120new KeyValuePair<string, string>(InternalHeaderNames.Authority, "server.example.com"), 121new KeyValuePair<string, string>(HeaderNames.WebSocketSubProtocols, "chat, superchat"), 122new KeyValuePair<string, string>(HeaderNames.SecWebSocketExtensions, "permessage-deflate"), 123new KeyValuePair<string, string>(HeaderNames.SecWebSocketVersion, "13"), 124new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 207new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT"), 208new KeyValuePair<string, string>(InternalHeaderNames.Protocol, "websocket"), 209new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 210new KeyValuePair<string, string>(InternalHeaderNames.Path, "/chat"), 211new KeyValuePair<string, string>(InternalHeaderNames.Authority, "server.example.com"), 212new KeyValuePair<string, string>(HeaderNames.WebSocketSubProtocols, "chat, superchat"), 213new KeyValuePair<string, string>(HeaderNames.SecWebSocketExtensions, "permessage-deflate"), 214new KeyValuePair<string, string>(HeaderNames.SecWebSocketVersion, "13"), 215new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 291new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT"), 292new KeyValuePair<string, string>(InternalHeaderNames.Protocol, "WebSocket"), 293new KeyValuePair<string, string>(headerName, value) 309new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 310new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 311new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 312new KeyValuePair<string, string>(InternalHeaderNames.Authority, "example.com"), 313new KeyValuePair<string, string>(InternalHeaderNames.Protocol, "WebSocket") 340new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT"), 341new KeyValuePair<string, string>(InternalHeaderNames.Protocol, "websocket"), 342new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 343new KeyValuePair<string, string>(InternalHeaderNames.Path, "/chat"), 344new KeyValuePair<string, string>(InternalHeaderNames.Authority, "server.example.com"), 345new KeyValuePair<string, string>(HeaderNames.WebSocketSubProtocols, "chat, superchat"), 346new KeyValuePair<string, string>(HeaderNames.SecWebSocketExtensions, "permessage-deflate"), 347new KeyValuePair<string, string>(HeaderNames.SecWebSocketVersion, "13"), 348new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 409new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT"), 410new KeyValuePair<string, string>(InternalHeaderNames.Protocol, "websocket"), 411new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 412new KeyValuePair<string, string>(InternalHeaderNames.Path, "/chat"), 413new KeyValuePair<string, string>(InternalHeaderNames.Authority, "server.example.com"), 414new KeyValuePair<string, string>(HeaderNames.WebSocketSubProtocols, "chat, superchat"), 415new KeyValuePair<string, string>(HeaderNames.SecWebSocketExtensions, "permessage-deflate"), 416new KeyValuePair<string, string>(HeaderNames.SecWebSocketVersion, "13"), 417new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 477new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT"), 478new KeyValuePair<string, string>(InternalHeaderNames.Protocol, "websocket"), 479new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 480new KeyValuePair<string, string>(InternalHeaderNames.Path, "/chat"), 481new KeyValuePair<string, string>(InternalHeaderNames.Authority, "server.example.com"), 482new KeyValuePair<string, string>(HeaderNames.WebSocketSubProtocols, "chat, superchat"), 483new KeyValuePair<string, string>(HeaderNames.SecWebSocketExtensions, "permessage-deflate"), 484new KeyValuePair<string, string>(HeaderNames.SecWebSocketVersion, "13"), 485new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 539new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT"), 540new KeyValuePair<string, string>(InternalHeaderNames.Protocol, "websocket"), 541new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 542new KeyValuePair<string, string>(InternalHeaderNames.Path, "/chat"), 543new KeyValuePair<string, string>(InternalHeaderNames.Authority, "server.example.com"), 544new KeyValuePair<string, string>(HeaderNames.WebSocketSubProtocols, "chat, superchat"), 545new KeyValuePair<string, string>(HeaderNames.SecWebSocketExtensions, "permessage-deflate"), 546new KeyValuePair<string, string>(HeaderNames.SecWebSocketVersion, "13"), 547new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 649new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT"), 650new KeyValuePair<string, string>(InternalHeaderNames.Protocol, "websocket"), 651new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 652new KeyValuePair<string, string>(InternalHeaderNames.Path, "/chat"), 653new KeyValuePair<string, string>(InternalHeaderNames.Authority, "server.example.com"), 654new KeyValuePair<string, string>(HeaderNames.WebSocketSubProtocols, "chat, superchat"), 655new KeyValuePair<string, string>(HeaderNames.SecWebSocketExtensions, "permessage-deflate"), 656new KeyValuePair<string, string>(HeaderNames.SecWebSocketVersion, "13"), 657new KeyValuePair<string, string>(HeaderNames.Origin, "http://www.example.com"), 692new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 693new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 694new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 695new KeyValuePair<string, string>(InternalHeaderNames.Authority, "example.com"),
Http3\Http3ConnectionTests.cs (60)
29new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 30new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 31new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 32new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 57new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 58new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 59new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 60new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 95new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 96new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 97new KeyValuePair<string, string>(InternalHeaderNames.Authority, "127.0.0.1"), 98new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 99new KeyValuePair<string, string>(HeaderNames.Expect, "100-continue"), 129new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 130new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 131new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 132new KeyValuePair<string, string>(HeaderNames.Cookie, "a=0"), 133new KeyValuePair<string, string>(HeaderNames.Cookie, "b=1"), 134new KeyValuePair<string, string>(HeaderNames.Cookie, "c=2"), 396new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 397new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 398new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 399new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 415new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 416new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 417new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 418new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 419new KeyValuePair<string, string>(HeaderNames.ContentType, "application/json"), 453new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 454new KeyValuePair<string, string>(InternalHeaderNames.Path, "/hello"), 455new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 456new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 457new KeyValuePair<string, string>(HeaderNames.ContentType, "application/json") 463new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 464new KeyValuePair<string, string>(InternalHeaderNames.Path, "/hello"), 465new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 466new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80") 497new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 498new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 499new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 500new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 531new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 532new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 533new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 534new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 554new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 555new KeyValuePair<string, string>(InternalHeaderNames.Path, "/hello"), 556new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 557new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 558new KeyValuePair<string, string>(HeaderNames.ContentType, "application/json") 632new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 633new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 634new KeyValuePair<string, string>(InternalHeaderNames.Authority, "127.0.0.1"), 635new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 636new KeyValuePair<string, string>(HeaderNames.Expect, "100-continue"), 686new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 687new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 688new KeyValuePair<string, string>(InternalHeaderNames.Authority, "127.0.0.1"), 689new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 690new KeyValuePair<string, string>(HeaderNames.Expect, "100-continue"),
Http3\Http3StreamTests.cs (357)
27new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 28new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 29new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 30new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 48new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 49new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 50new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 51new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 71new KeyValuePair<string, string>(InternalHeaderNames.Method, ""), 72new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 73new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 74new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 89new KeyValuePair<string, string>(InternalHeaderNames.Method, "Hello,World"), 90new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 91new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 92new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 107new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 108new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 109new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 110new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 129new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 130new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 131new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 132new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 133new KeyValuePair<string, string>("test", new string('a', 1024 * 32 + 1)) 148var headers = new[] { new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT") }; 163var headers = new[] { new KeyValuePair<string, string>(InternalHeaderNames.Method, "OPTIONS"), 164new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 165new KeyValuePair<string, string>(InternalHeaderNames.Path, "*")}; 182var headers = new[] { new KeyValuePair<string, string>(InternalHeaderNames.Method, "OPTIONS"), 183new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 184new KeyValuePair<string, string>(InternalHeaderNames.Path, "/")}; 202var headers = new[] { new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 203new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 204new KeyValuePair<string, string>(InternalHeaderNames.Path, "/a/path?a&que%35ry")}; 237var headers = new[] { new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 238new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 239new KeyValuePair<string, string>(InternalHeaderNames.Path, input)}; 262var headers = new[] { new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT"), 263new KeyValuePair<string, string>(headerName, value) }; 278var headers = new[] { new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 279new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 280new KeyValuePair<string, string>(InternalHeaderNames.Scheme, scheme) }; // Not the expected "http" 297var headers = new[] { new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 298new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 299new KeyValuePair<string, string>(InternalHeaderNames.Scheme, scheme) }; // Not the expected "http" 322var headers = new[] { new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 323new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 324new KeyValuePair<string, string>(InternalHeaderNames.Scheme, scheme) }; // Not the expected "http" 339new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 340new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 341new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 359new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 360new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 361new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 362new KeyValuePair<string, string>(InternalHeaderNames.Authority, ""), 379new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 380new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 381new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 382new KeyValuePair<string, string>("Host", "abc"), 401new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 402new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 403new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 404new KeyValuePair<string, string>(InternalHeaderNames.Authority, ""), 405new KeyValuePair<string, string>("Host", "abc"), 424new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 425new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 426new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 427new KeyValuePair<string, string>(InternalHeaderNames.Authority, "def"), 428new KeyValuePair<string, string>("Host", "abc"), 447new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 448new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 449new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 450new KeyValuePair<string, string>(InternalHeaderNames.Authority, "def"), 451new KeyValuePair<string, string>("Host", "a=bc"), 470new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 471new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 472new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 473new KeyValuePair<string, string>(InternalHeaderNames.Authority, "local=host:80"), 489new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 490new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 491new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 492new KeyValuePair<string, string>(InternalHeaderNames.Authority, "d=ef"), 493new KeyValuePair<string, string>("Host", "abc"), 509new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 510new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 511new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 512new KeyValuePair<string, string>("Host", "host1"), 513new KeyValuePair<string, string>("Host", "host2"), 532new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET" + new string('a', 1024 * 3)), 533new KeyValuePair<string, string>(InternalHeaderNames.Path, "/Hello/How/Are/You/" + new string('a', 1024 * 3)), 534new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 535new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost" + new string('a', 1024 * 3) + ":80"), 550new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 551new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 552new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 553new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 579new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 580new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 581new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 582new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 615new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 616new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 617new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 618new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 650new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 651new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 652new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 653new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 683new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 684new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 685new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 686new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 713new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 714new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 715new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 754new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 755new KeyValuePair<string, string>(InternalHeaderNames.Path, "/hello"), 756new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 757new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 758new KeyValuePair<string, string>(HeaderNames.ContentType, "application/json") 788new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 789new KeyValuePair<string, string>(InternalHeaderNames.Path, "/hello"), 790new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 791new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 792new KeyValuePair<string, string>(HeaderNames.ContentType, "application/json") 822new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 823new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 824new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 825new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 852new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 853new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 854new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 855new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 883new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 884new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 885new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 886new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 919new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 920new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 921new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 922new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 946new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 947new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 948new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 949new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 978new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 979new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 980new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 981new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 1004new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 1005new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1006new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1007new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 1032new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 1033new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1034new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1035new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 1070new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 1071new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1072new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1073new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 1101new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 1102new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1103new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1104new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 1130new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1131new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1132new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1177new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1178new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1179new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1229new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1230new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1231new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1277new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1278new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1279new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1330new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1331new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1332new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1379new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1380new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1381new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1431new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1432new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1433new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1472new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1473new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1474new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1532new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1533new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1534new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1587new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1588new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1589new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1644new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1645new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1646new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1702new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1703new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1704new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1761new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 1762new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1763new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1825new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1826new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1827new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1888new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 1889new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1890new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1973new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 1974new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 1975new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 1979new KeyValuePair<string, string>("TestName", "TestValue"), 2002new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2003new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2004new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2008new KeyValuePair<string, string>("TestName", "TestValue"), 2046new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2047new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2048new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2052new KeyValuePair<string, string>("TestName", "TestValue"), 2121new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2122new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2123new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2162new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2163new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2164new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2165new KeyValuePair<string, string>(":unknown", "0"), 2176new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2177new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2178new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2179new KeyValuePair<string, string>(InternalHeaderNames.Status, "200"), 2192new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2193new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2194new KeyValuePair<string, string>(InternalHeaderNames.Authority, "127.0.0.1"), 2195new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2200var headers = requestHeaders.Concat(new[] { new KeyValuePair<string, string>(headerField.Key, headerField.Value) }); 2213var methodHeader = new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT"); 2228new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2229new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2230new KeyValuePair<string, string>(InternalHeaderNames.Authority, "127.0.0.1"), 2231new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2232new KeyValuePair<string, string>("content-length", "0") 2252new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2253new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2254new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2318new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2319new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2320new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2321new KeyValuePair<string, string>("a", _4kHeaderValue), 2322new KeyValuePair<string, string>("b", _4kHeaderValue), 2323new KeyValuePair<string, string>("c", _4kHeaderValue), 2324new KeyValuePair<string, string>("d", _4kHeaderValue), 2325new KeyValuePair<string, string>("e", _4kHeaderValue), 2326new KeyValuePair<string, string>("f", _4kHeaderValue), 2327new KeyValuePair<string, string>("g", _4kHeaderValue), 2328new KeyValuePair<string, string>("h", _4kHeaderValue), 2349new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2350new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2351new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2352new KeyValuePair<string, string>("a", _4kHeaderValue), 2353new KeyValuePair<string, string>("b", _4kHeaderValue), 2354new KeyValuePair<string, string>("c", _4kHeaderValue), 2355new KeyValuePair<string, string>("d", _4kHeaderValue), 2356new KeyValuePair<string, string>("e", _4kHeaderValue), 2357new KeyValuePair<string, string>("f", _4kHeaderValue), 2358new KeyValuePair<string, string>("g", _4kHeaderValue), 2359new KeyValuePair<string, string>("h", _4kHeaderValue), 2360new KeyValuePair<string, string>("i", _4kHeaderValue), 2361new KeyValuePair<string, string>("j", _4kHeaderValue), 2362new KeyValuePair<string, string>("k", _4kHeaderValue), 2363new KeyValuePair<string, string>("l", _4kHeaderValue), 2364new KeyValuePair<string, string>("m", _4kHeaderValue), 2365new KeyValuePair<string, string>("n", _4kHeaderValue), 2366new KeyValuePair<string, string>("o", _4kHeaderValue), 2367new KeyValuePair<string, string>("p", _4kHeaderValue), 2380new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2381new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2382new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2386headers.Add(new KeyValuePair<string, string>(i.ToString(CultureInfo.InvariantCulture), i.ToString(CultureInfo.InvariantCulture))); 2408new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2409new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2410new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2414headers.Add(new KeyValuePair<string, string>(i.ToString(CultureInfo.InvariantCulture), i.ToString(CultureInfo.InvariantCulture))); 2425new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2426new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2427new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2428new KeyValuePair<string, string>("Custom", "val\0ue"), 2439new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2440new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2441new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2442new KeyValuePair<string, string>("Cus\0tom", "value"), 2453new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2454new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2455new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2456new KeyValuePair<string, string>("connection", "keep-alive") 2467new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2468new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2469new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2470new KeyValuePair<string, string>("te", "trailers, deflate") 2481new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2482new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2483new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2484new KeyValuePair<string, string>("te", "trailers") 2500new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 2501new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2502new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2503new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 2534new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 2535new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2536new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2537new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 2574new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 2575new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2576new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2607new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 2608new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2609new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2651new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 2652new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2653new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2659new KeyValuePair<string, string>(HeaderNames.ContentLength, "18"), 2703new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 2704new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2705new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2711new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"), 2742new KeyValuePair<string, string>(InternalHeaderNames.Method, new string('A', 8192 / 2)), 2743new KeyValuePair<string, string>(InternalHeaderNames.Path, "/" + new string('A', 8192 / 2)), 2744new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http") 2774new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2775new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2776new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2777new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 2806new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2807new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2808new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2809new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 2847new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 2848new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2849new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2883new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2884new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2885new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2886new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 2923new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2924new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2925new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2926new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 2964new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2965new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2966new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 2967new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 2988new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 2989new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 2990new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"),
Http3\Http3TestBase.cs (13)
39new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 40new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 41new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 42new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 43new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 44new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 45new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 46new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 47new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 52new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 53new KeyValuePair<string, string>(InternalHeaderNames.Path, "/" + expectedBytes), 54new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 55new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"),
Http3\Http3TimeoutTests.cs (18)
56new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 57new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 58new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 85new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 86new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 87new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 168new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 169new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 170new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 171new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 250new KeyValuePair<string, string>(InternalHeaderNames.Method, "Custom"), 251new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 252new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 253new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 392new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 393new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 394new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 395new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"),
Http3\WebTransport\WebTransportHandshakeTests.cs (8)
68new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT"), 69new KeyValuePair<string, string>(InternalHeaderNames.Protocol, "webtransport"), 70new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 71new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 72new KeyValuePair<string, string>(InternalHeaderNames.Authority, "server.example.com"), 73new KeyValuePair<string, string>(HeaderNames.Origin, "server.example.com"), 74new KeyValuePair<string, string>(WebTransportSession.CurrentSupportedVersion, "1") 135headersConnectFrame.Add(new KeyValuePair<string, string>(GetHeaderFromName(headers[i]), headers[i + 1]));
Http3\WebTransport\WebTransportTestUtilities.cs (7)
63new KeyValuePair<string, string>(InternalHeaderNames.Method, "CONNECT"), 64new KeyValuePair<string, string>(InternalHeaderNames.Protocol, "webtransport"), 65new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 66new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 67new KeyValuePair<string, string>(InternalHeaderNames.Authority, "server.example.com"), 68new KeyValuePair<string, string>(HeaderNames.Origin, "server.example.com"), 69new KeyValuePair<string, string>(WebTransportSession.CurrentSupportedVersion, "1")
HttpsConnectionMiddlewareTests.cs (2)
62new KeyValuePair<string, string>("content", "Hello World?") 96new KeyValuePair<string, string>("content", "Hello World?")
KestrelMetricsTests.cs (3)
51connectionContext.Features.Get<IConnectionMetricsTagsFeature>().Tags.Add(new KeyValuePair<string, object>("custom", "value!")); 330connectionContext.Features.Get<IConnectionMetricsTagsFeature>().Tags.Add(new KeyValuePair<string, object>("custom", "value!")); 352overridenFeature.Tags.Add(new KeyValuePair<string, object>("test", "Value!"));
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (2)
141Current = result ? new KeyValuePair<string, string>(key, _stringValuesEnumerator.Current!) : default; 151Current = new KeyValuePair<string, string>(name, value.ToString());
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
298new KeyValuePair<Http3SettingType, long>(type, value));
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (15)
114MaybeExtra[i] = new KeyValuePair<Type, object>(key, value); 118MaybeExtra.Add(new KeyValuePair<Type, object>(key, value)); 395yield return new KeyValuePair<Type, object>(typeof(IConnectionIdFeature), _currentIConnectionIdFeature); 399yield return new KeyValuePair<Type, object>(typeof(IConnectionTransportFeature), _currentIConnectionTransportFeature); 403yield return new KeyValuePair<Type, object>(typeof(IConnectionItemsFeature), _currentIConnectionItemsFeature); 407yield return new KeyValuePair<Type, object>(typeof(IPersistentStateFeature), _currentIPersistentStateFeature); 411yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature); 415yield return new KeyValuePair<Type, object>(typeof(IConnectionLifetimeFeature), _currentIConnectionLifetimeFeature); 419yield return new KeyValuePair<Type, object>(typeof(IConnectionSocketFeature), _currentIConnectionSocketFeature); 423yield return new KeyValuePair<Type, object>(typeof(IProtocolErrorCodeFeature), _currentIProtocolErrorCodeFeature); 427yield return new KeyValuePair<Type, object>(typeof(IStreamDirectionFeature), _currentIStreamDirectionFeature); 431yield return new KeyValuePair<Type, object>(typeof(IStreamIdFeature), _currentIStreamIdFeature); 435yield return new KeyValuePair<Type, object>(typeof(IStreamAbortFeature), _currentIStreamAbortFeature); 439yield return new KeyValuePair<Type, object>(typeof(IStreamClosedFeature), _currentIStreamClosedFeature); 443yield return new KeyValuePair<Type, object>(typeof(IConnectionMetricsTagsFeature), _currentIConnectionMetricsTagsFeature);
InProcessWebSite (3)
src\Servers\IIS\IIS\test\testassets\shared\WebSockets\HandshakeHelpers.cs (3)
15yield return new KeyValuePair<string, string>(Constants.Headers.Connection, Constants.Headers.Upgrade); 16yield return new KeyValuePair<string, string>(Constants.Headers.Upgrade, Constants.Headers.UpgradeWebSocket); 17yield return new KeyValuePair<string, string>(Constants.Headers.SecWebSocketAccept, CreateResponseKey(key));
Interop.FunctionalTests (5)
Http3\Http3TlsTests.cs (5)
409new KeyValuePair<string, string>("Endpoints:end1:Url", "https://127.0.0.1:0"), 410new KeyValuePair<string, string>("Endpoints:end1:Protocols", "Http3"), 411new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", "aspnetdevcert.pfx")), 412new KeyValuePair<string, string>("Certificates:Default:Password", "testPassword"), 441new KeyValuePair<string, string>("Certificates:Development:Password", "1234"),
Microsoft.Arcade.Test.Common (1)
DiffUtil.cs (1)
144yield return new KeyValuePair<int, int>(i, j);
Microsoft.AspNetCore (4)
WebApplicationBuilder.cs (4)
54new KeyValuePair<string, string?>(WebHostDefaults.WebRootKey, options.WebRootPath), 117new KeyValuePair<string, string?>(WebHostDefaults.WebRootKey, options.WebRootPath), 170new KeyValuePair<string, string?>(WebHostDefaults.WebRootKey, options.WebRootPath), 261new KeyValuePair<string, string?>(HostDefaults.ContentRootKey, cwd),
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\Infrastructure\ExportProviderExtensions.cs (1)
34var importMany = contract.MetadataConstraints.Contains(new KeyValuePair<string, object>("IsImportMany", true));
Microsoft.AspNetCore.Authentication.OpenIdConnect (5)
OpenIdConnectHandler.cs (5)
112message = new OpenIdConnectMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray()))); 127message = new OpenIdConnectMessage(form.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray()))); 316var message = new OpenIdConnectMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray()))); 639authorizationResponse = new OpenIdConnectMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray()))); 666authorizationResponse = new OpenIdConnectMessage(form.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray())));
Microsoft.AspNetCore.Authentication.Test (39)
AuthenticationMiddlewareTests.cs (2)
162new KeyValuePair<string, string>("Authentication:Schemes:Bearer:ValidIssuer", "SomeIssuer"), 163new KeyValuePair<string, string>("Authentication:Schemes:Bearer:ValidAudiences:0", "https://localhost:5001")
JwtBearerTests_Handler.cs (2)
1006new KeyValuePair<string, string>("Authentication:Schemes:Bearer:ValidAudiences:0", "http://localhost:5000"), 1007new KeyValuePair<string, string>("Authentication:Schemes:Bearer:ValidAudiences:1", "https://localhost:5001")
OpenIdConnect\OpenIdConnectTests.cs (27)
427new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:Authority", "https://authority.com"), 428new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:BackchannelTimeout", "00:05:00"), 429new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:ClientId", "client-id"), 430new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:ClientSecret", "client-secret"), 431new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:RequireHttpsMetadata", "false"), 432new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:CorrelationCookie:Domain", "https://localhost:5000"), 433new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:CorrelationCookie:Name", "CookieName"), 460new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:Authority", "https://authority.com"), 461new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:BackchannelTimeout", ""), 462new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:ClientId", "client-id"), 463new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:ClientSecret", "client-secret"), 464new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:CorrelationCookie:Domain", "https://localhost:5000"), 465new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:CorrelationCookie:IsEssential", "False"), 466new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:CorrelationCookie:SecurePolicy", "always"), 497new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:Authority", "https://authority.com"), 498new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:BackchannelTimeout", "definitelynotatimespan"), 499new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:ClientId", "client-id"), 500new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:ClientSecret", "client-secret"), 501new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:CorrelationCookie:IsEssential", "definitelynotaboolean"), 520new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:Authority", "https://authority.com"), 521new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:ClientId", "client-id"), 522new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:ClientSecret", "client-secret"), 523new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:Scope:0", "given_name"), 524new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:Scope:1", "birthdate"), 547new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:Authority", "https://authority.com"), 548new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:ClientId", "client-id"), 549new KeyValuePair<string, string>("Authentication:Schemes:OpenIdConnect:ClientSecret", "client-secret"),
WsFederation\WsFederationTest.cs (4)
249kvps.Add(new KeyValuePair<string, string>("wa", "wsignin1.0")); 250kvps.Add(new KeyValuePair<string, string>("wresult", File.ReadAllText(tokenFile))); 253kvps.Add(new KeyValuePair<string, string>("wctx", wctx)); 257kvps.Add(new KeyValuePair<string, string>("suppressWctx", "true"));
WsFederation\WsFederationTest_Handler.cs (4)
247kvps.Add(new KeyValuePair<string, string>("wa", "wsignin1.0")); 248kvps.Add(new KeyValuePair<string, string>("wresult", File.ReadAllText(tokenFile))); 251kvps.Add(new KeyValuePair<string, string>("wctx", wctx)); 255kvps.Add(new KeyValuePair<string, string>("suppressWctx", "true"));
Microsoft.AspNetCore.Authentication.WsFederation (2)
WsFederationHandler.cs (2)
164wsFederationMessage = new WsFederationMessage(form.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray()))); 474var message = new WsFederationMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray())));
Microsoft.AspNetCore.Authorization (1)
src\Shared\Debugger\DebuggerHelpers.cs (1)
114private static KeyValuePair<string, object?> Create(string key, object? value) => new KeyValuePair<string, object?>(key, value);
Microsoft.AspNetCore.Components (4)
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (4)
292_arrayStorage[_count++] = new KeyValuePair<string, object?>(key, value); 296_arrayStorage[index] = new KeyValuePair<string, object?>(key, value); 383_arrayStorage[_count] = new KeyValuePair<string, object?>(key, value); 597_arrayStorage[Count] = new KeyValuePair<string, object?>(key, value);
Microsoft.AspNetCore.Components.Endpoints.Tests (6)
Binding\FormDataMapperTests.cs (6)
432.Select(i => new KeyValuePair<string, StringValues>( 463.Select(i => new KeyValuePair<string, StringValues>( 509.Select(i => new KeyValuePair<string, StringValues>( 570.Select(i => new KeyValuePair<string, StringValues>( 1067.Select(i => new KeyValuePair<string, StringValues>( 1659var expected = new KeyValuePair<string, int>("Age", 20);
Microsoft.AspNetCore.Components.Tests (6)
Rendering\RenderTreeBuilderTest.cs (6)
384new KeyValuePair<string, object>("attribute1", "test1"), 385new KeyValuePair<string, object>("attribute2", "123"), 386new KeyValuePair<string, object>("attribute3", true), 398new KeyValuePair<string, object>("attribute1", "test1"), 399new KeyValuePair<string, object>("attribute2", "123"), 400new KeyValuePair<string, object>("attribute3", true),
Microsoft.AspNetCore.Components.Web (1)
Forms\Mapping\FormMappingContext.cs (1)
108pendingErrors.Add(new KeyValuePair<string, FormMappingError>(key, mappingError));
Microsoft.AspNetCore.Components.WebAssembly.Tests (2)
Hosting\WebAssemblyHostBuilderTest.cs (2)
25new KeyValuePair<string, string>("key", "value"), 195new KeyValuePair<string, string>("key", "value"),
Microsoft.AspNetCore.Cors (1)
src\Shared\Debugger\DebuggerHelpers.cs (1)
114private static KeyValuePair<string, object?> Create(string key, object? value) => new KeyValuePair<string, object?>(key, value);
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\XmlKeyManager.cs (1)
718return new KeyValuePair<IXmlRepository, IXmlEncryptor?>(repository, encryptor);
Microsoft.AspNetCore.DataProtection.Tests (6)
Internal\KeyManagementOptionsPostSetupTest.cs (5)
24new KeyValuePair<string, string>(KeyManagementOptionsPostSetup.ReadOnlyDataProtectionKeyDirectoryKey, keyDir), 41new KeyValuePair<string, string>(KeyManagementOptionsPostSetup.ReadOnlyDataProtectionKeyDirectoryKey, keyDir), 60new KeyValuePair<string, string>(KeyManagementOptionsPostSetup.ReadOnlyDataProtectionKeyDirectoryKey, ""), 79new KeyValuePair<string, string>(KeyManagementOptionsPostSetup.ReadOnlyDataProtectionKeyDirectoryKey, keyDir), 109new KeyValuePair<string, string>(KeyManagementOptionsPostSetup.ReadOnlyDataProtectionKeyDirectoryKey, keyDir),
ServiceCollectionTests.cs (1)
78new KeyValuePair<string, string>(KeyManagementOptionsPostSetup.ReadOnlyDataProtectionKeyDirectoryKey, keyDir),
Microsoft.AspNetCore.Diagnostics (4)
src\Shared\Metrics\MetricsExtensions.cs (4)
43list[i] = new KeyValuePair<string, object?>(name, value); 55tags.Add(new KeyValuePair<string, object?>(name, value)); 87tags.Add(new KeyValuePair<string, object?>(name, value)); 101tags.Add(new KeyValuePair<string, object?>(name, value));
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\HeaderReader.cs (1)
44logContext.Add(new(_normalizedHeaders[i], redacted));
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (7)
Logging\AcceptanceTests.Mvc.cs (1)
137x.RouteParameterDataClasses.Add(new(NoDataClassParamName, DataClassification.None));
Logging\HeaderNormalizerTests.cs (2)
17new KeyValuePair<string, DataClassification>("Accept-Charset", DataClassification.Unknown), 18new KeyValuePair<string, DataClassification>("CONTENT-TYPE", DataClassification.Unknown)
Logging\HttpLoggingServiceExtensionsTests.cs (4)
37new KeyValuePair<string, string?>("HttpLogging:RequestPathLoggingMode", "Structured"), 38new KeyValuePair<string, string?>("HttpLogging:RequestPathParameterRedactionMode","None"), 39new KeyValuePair<string, string?>("HttpLogging:ExcludePathStartsWith:[0]","/path0toexclude"), 40new KeyValuePair<string, string?>("HttpLogging:ExcludePathStartsWith:[1]","/path1toexclude"),
Microsoft.AspNetCore.FunctionalTests (2)
WebHostFunctionalTests.cs (2)
229deploymentParameters.EnvironmentVariables.Add(new KeyValuePair<string, string>("aspnetcore_environment", environment)); 230deploymentParameters.EnvironmentVariables.Add(new KeyValuePair<string, string>("envKey", "envValue"));
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\XmlComments\GrpcXmlCommentsDocumentFilter.cs (1)
33.Select(group => new KeyValuePair<string, ActionDescriptor>(group.Key, group.First()));
Microsoft.AspNetCore.Hosting (35)
Internal\HostingApplicationDiagnostics.cs (2)
505return new KeyValuePair<string, object>("RequestId", _traceIdentifier); 509return new KeyValuePair<string, object>("RequestPath", _path);
Internal\HostingRequestFinishedLog.cs (12)
350 => new KeyValuePair<string, object?>("ElapsedMilliseconds", Elapsed.TotalMilliseconds), 361 => new KeyValuePair<string, object?>(nameof(response.StatusCode), response.StatusCode), 372 => new KeyValuePair<string, object?>(nameof(response.ContentType), response.ContentType), 383 => new KeyValuePair<string, object?>(nameof(response.ContentLength), response.ContentLength), 394 => new KeyValuePair<string, object?>(nameof(request.Protocol), request.Protocol), 405 => new KeyValuePair<string, object?>(nameof(request.Method), request.Method), 416 => new KeyValuePair<string, object?>(nameof(request.Scheme), request.Scheme), 427 => new KeyValuePair<string, object?>(nameof(request.Host), request.Host.Value), 438 => new KeyValuePair<string, object?>(nameof(request.PathBase), request.PathBase.Value), 449 => new KeyValuePair<string, object?>(nameof(request.Path), request.Path.Value), 4510 => new KeyValuePair<string, object?>(nameof(request.QueryString), request.QueryString.Value), 4611 => new KeyValuePair<string, object?>("{OriginalFormat}", OriginalFormat),
Internal\HostingRequestStartingLog.cs (10)
250 => new KeyValuePair<string, object?>(nameof(_request.Protocol), _request.Protocol), 261 => new KeyValuePair<string, object?>(nameof(_request.Method), _request.Method), 272 => new KeyValuePair<string, object?>(nameof(_request.ContentType), _request.ContentType), 283 => new KeyValuePair<string, object?>(nameof(_request.ContentLength), _request.ContentLength), 294 => new KeyValuePair<string, object?>(nameof(_request.Scheme), _request.Scheme), 305 => new KeyValuePair<string, object?>(nameof(_request.Host), _request.Host.Value), 316 => new KeyValuePair<string, object?>(nameof(_request.PathBase), _request.PathBase.Value), 327 => new KeyValuePair<string, object?>(nameof(_request.Path), _request.Path.Value), 338 => new KeyValuePair<string, object?>(nameof(_request.QueryString), _request.QueryString.Value), 349 => new KeyValuePair<string, object?>("{OriginalFormat}", OriginalFormat),
Internal\HostingRequestUnhandledLog.cs (7)
230 => new KeyValuePair<string, object?>(nameof(_httpContext.Request.Method), _httpContext.Request.Method), 241 => new KeyValuePair<string, object?>(nameof(_httpContext.Request.Scheme), _httpContext.Request.Scheme), 252 => new KeyValuePair<string, object?>(nameof(_httpContext.Request.Host), _httpContext.Request.Host), 263 => new KeyValuePair<string, object?>(nameof(_httpContext.Request.PathBase), _httpContext.Request.PathBase), 274 => new KeyValuePair<string, object?>(nameof(_httpContext.Request.Path), _httpContext.Request.Path), 285 => new KeyValuePair<string, object?>(nameof(_httpContext.Response.StatusCode), _httpContext.Response.StatusCode), 296 => new KeyValuePair<string, object?>("{OriginalFormat}", OriginalFormat),
src\Shared\Metrics\MetricsExtensions.cs (4)
43list[i] = new KeyValuePair<string, object?>(name, value); 55tags.Add(new KeyValuePair<string, object?>(name, value)); 87tags.Add(new KeyValuePair<string, object?>(name, value)); 101tags.Add(new KeyValuePair<string, object?>(name, value));
Microsoft.AspNetCore.Hosting.Tests (11)
GenericWebHostBuilderTests.cs (3)
113new KeyValuePair<string, string>("urls", urls), 114new KeyValuePair<string, string>("http_ports", httpPorts), 115new KeyValuePair<string, string>("https_ports", httpsPorts),
HostingApplicationDiagnosticsTests.cs (1)
271context.HttpContext.Features.GetRequiredFeature<IHttpMetricsTagsFeature>().Tags.Add(new KeyValuePair<string, object>("custom.tag", "custom.value"));
WebHostBuilderTests.cs (7)
327new KeyValuePair<string, string>("key1", "value1") 347new KeyValuePair<string, string>("key1", "value1") 401new KeyValuePair<string, string>("key1", "value1") 1108new KeyValuePair<string,string>("appconfig", "appvalue") 1323new KeyValuePair<string, string>("key", "value"), 1324new KeyValuePair<string, string>("nested:key", "nestedvalue"), 1698new KeyValuePair<string,string>("testhostingstartup:config", "value")
Microsoft.AspNetCore.Http (5)
Internal\RequestCookieCollection.cs (1)
203return new KeyValuePair<string, string>(current.Key, (string)current.Value!);
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (4)
130_arrayStorage[_count++] = new KeyValuePair<TKey, TValue>(key, value); 134_arrayStorage[index] = new KeyValuePair<TKey, TValue>(key, value); 239_arrayStorage[_count] = new KeyValuePair<TKey, TValue>(key, value); 472_arrayStorage[Count] = new KeyValuePair<TKey, TValue>(key, value);
Microsoft.AspNetCore.Http.Abstractions (7)
Routing\RouteValueDictionary.cs (6)
292_arrayStorage[_count++] = new KeyValuePair<string, object?>(key, value); 296_arrayStorage[index] = new KeyValuePair<string, object?>(key, value); 383_arrayStorage[_count] = new KeyValuePair<string, object?>(key, value); 597_arrayStorage[Count] = new KeyValuePair<string, object?>(key, value); 684array[i] = new KeyValuePair<string, object?>(property.Name, property.GetValue(storage.Value)); 857Current = new KeyValuePair<string, object?>(property.Name, property.GetValue(storage.Value));
src\Shared\Debugger\DebuggerHelpers.cs (1)
114private static KeyValuePair<string, object?> Create(string key, object? value) => new KeyValuePair<string, object?>(key, value);
Microsoft.AspNetCore.Http.Abstractions.Tests (72)
QueryStringTests.cs (10)
68new KeyValuePair<string, string?>("key1", "value1"), 69new KeyValuePair<string, string?>("key2", "value2"), 70new KeyValuePair<string, string?>("key3", "value3"), 71new KeyValuePair<string, string?>("key4", null), 72new KeyValuePair<string, string?>("key5", "") 82new KeyValuePair<string, StringValues>("key1", new StringValues("value1")), 83new KeyValuePair<string, StringValues>("key2", new StringValues("value2")), 84new KeyValuePair<string, StringValues>("key3", new StringValues("value3")), 85new KeyValuePair<string, StringValues>("key4", new StringValues()), 86new KeyValuePair<string, StringValues>("key5", new StringValues("")),
RouteValueDictionaryTests.cs (62)
82new KeyValuePair<string, object?>("Name", "James"), 83new KeyValuePair<string, object?>("Age", 30), 84new KeyValuePair<string, object?>("Address", new Address() { City = "Redmond", State = "WA" }) 101new KeyValuePair<string, string>("First Name", "James"), 102new KeyValuePair<string, string>("Last Name", "Henrik"), 103new KeyValuePair<string, string>("Middle Name", "Bob") 158new KeyValuePair<string, object?>("name", "Billy"), 159new KeyValuePair<string, object?>("Name", "Joey"), 175new("name", "Billy"), 176new("Name", "Joey"), 863kvp => Assert.Equal(new KeyValuePair<string, object?>("age", 30), kvp), 864kvp => Assert.Equal(new KeyValuePair<string, object?>("key", "value"), kvp), 941((ICollection<KeyValuePair<string, object?>>)dict).Add(new KeyValuePair<string, object?>("key", "value")); 1021var input = new KeyValuePair<string, object?>("key", "value"); 1040var input = new KeyValuePair<string, object?>("KEY", "value"); 1059var input = new KeyValuePair<string, object?>("other", "value"); 1079var input = new KeyValuePair<string, object?>("key", "valUE"); 1095var input = new KeyValuePair<string, object?>("key", "value"); 1106kvp => Assert.Equal(new KeyValuePair<string, object?>("key", "value"), kvp)); 1115var input = new KeyValuePair<string, object?>("KEY", "value"); 1126kvp => Assert.Equal(new KeyValuePair<string, object?>("key", "value"), kvp)); 1135var input = new KeyValuePair<string, object?>("other", "value"); 1146kvp => Assert.Equal(new KeyValuePair<string, object?>("key", "value"), kvp)); 1156var input = new KeyValuePair<string, object?>("key", "valUE"); 1167kvp => Assert.Equal(new KeyValuePair<string, object?>("key", "value"), kvp)); 1311new KeyValuePair<string, object?>("key", "value") 1326var input = new KeyValuePair<string, object?>("key", "value"); 1346var input = new KeyValuePair<string, object?>("KEY", "value"); 1366var input = new KeyValuePair<string, object?>("other", "value"); 1387var input = new KeyValuePair<string, object?>("key", "valUE"); 1793kvp => Assert.Equal(new KeyValuePair<string, object?>("key", "value"), kvp), 1794kvp => Assert.Equal(new KeyValuePair<string, object?>("otherKey", "value"), kvp), 1814kvp => Assert.Equal(new KeyValuePair<string, object?>("key", "value"), kvp)); 1830kvp => Assert.Equal(new KeyValuePair<string, object?>("key", "value"), kvp), 1852kvp => Assert.Equal(new KeyValuePair<string, object?>("key0", "value0"), kvp), 1853kvp => Assert.Equal(new KeyValuePair<string, object?>("key1", "value1"), kvp), 1877kvp => Assert.Equal(new KeyValuePair<string, object?>("key0", "value0"), kvp), 1878kvp => Assert.Equal(new KeyValuePair<string, object?>("key1", "value1"), kvp), 1879kvp => Assert.Equal(new KeyValuePair<string, object?>("key2", "value2"), kvp), 1880kvp => Assert.Equal(new KeyValuePair<string, object?>("key3", "value3"), kvp), 1881kvp => Assert.Equal(new KeyValuePair<string, object?>("key4", "value4"), kvp), 1903kvp => Assert.Equal(new KeyValuePair<string, object?>("key0", "value0"), kvp), 2091new KeyValuePair<string, object?>("a", 0), 2092new KeyValuePair<string, object?>("b", 1), 2093new KeyValuePair<string, object?>("c", 2), 2099array[0] = new KeyValuePair<string, object?>("aa", 10); 2125new KeyValuePair<string, object?>(null!, null), 2126new KeyValuePair<string, object?>("a", 0), 2127new KeyValuePair<string, object?>(null!, null), 2128new KeyValuePair<string, object?>(null!, null), 2129new KeyValuePair<string, object?>("b", 1), 2130new KeyValuePair<string, object?>("c", 2), 2131new KeyValuePair<string, object?>("d", 3), 2132new KeyValuePair<string, object?>(null!, null), 2143new KeyValuePair<string, object?>("d", 3), 2144new KeyValuePair<string, object?>("a", 0), 2145new KeyValuePair<string, object?>("c", 2), 2146new KeyValuePair<string, object?>("b", 1), 2147new KeyValuePair<string, object?>(null!, null), 2148new KeyValuePair<string, object?>(null!, null), 2149new KeyValuePair<string, object?>(null!, null), 2150new KeyValuePair<string, object?>(null!, null),
Microsoft.AspNetCore.Http.Connections (5)
Internal\ConnectionLogScope.cs (1)
26return new KeyValuePair<string, object?>("TransportConnectionId", ConnectionId);
Internal\HttpConnectionsMetrics.cs (4)
51new KeyValuePair<string, object?>("signalr.connection.status", ResolveStopStatus(status)), 52new KeyValuePair<string, object?>("signalr.transport", ResolveTransportType(transportType))); 63_currentConnectionsCounter.Add(1, new KeyValuePair<string, object?>("signalr.transport", ResolveTransportType(transportType))); 75_currentConnectionsCounter.Add(-1, new KeyValuePair<string, object?>("signalr.transport", ResolveTransportType(transportType)));
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\ConnectionLogScope.cs (1)
34return new KeyValuePair<string, object?>(ClientConnectionIdKey, ConnectionId);
Microsoft.AspNetCore.Http.Extensions (2)
QueryBuilder.cs (2)
55_params.Add(new KeyValuePair<string, string>(key, value)); 66_params.Add(new KeyValuePair<string, string>(key, value));
Microsoft.AspNetCore.Http.Extensions.Tests (8)
QueryBuilderTests.cs (6)
64new KeyValuePair<string, string>("key1", "value1"), 65new KeyValuePair<string, string>("key2", "value2"), 66new KeyValuePair<string, string>("key3", "value3"), 76new KeyValuePair<string, StringValues>("key1", new StringValues(new [] { "value1", string.Empty, "value3" })), 77new KeyValuePair<string, StringValues>("key2", string.Empty), 78new KeyValuePair<string, StringValues>("key3", StringValues.Empty)
RequestDelegateGenerator\CompileTimeCreationTests.cs (1)
162new SourceFileResolver(ImmutableArray<string>.Empty, currentDirectory, ImmutableArray.Create(new KeyValuePair<string, string>(currentDirectory, mappedDirectory))));
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
38internal static readonly CSharpParseOptions ParseOptions = new CSharpParseOptions(LanguageVersion.Preview).WithFeatures(new[] { new KeyValuePair<string, string>("InterceptorsNamespaces", "Microsoft.AspNetCore.Http.Generated") });
Microsoft.AspNetCore.Http.Microbenchmarks (12)
AdaptiveCapacityDictionaryBenchmark.cs (11)
23_oneValue = new KeyValuePair<string, string>("a", "b"); 27new KeyValuePair<string, string>("a", "b"), 28new KeyValuePair<string, string>("c", "d"), 29new KeyValuePair<string, string>("e", "f"), 30new KeyValuePair<string, string>("g", "h"), 31new KeyValuePair<string, string>("i", "j"), 32new KeyValuePair<string, string>("k", "l"), 33new KeyValuePair<string, string>("m", "n"), 34new KeyValuePair<string, string>("o", "p"), 35new KeyValuePair<string, string>("q", "r"), 36new KeyValuePair<string, string>("s", "t"),
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
38internal static readonly CSharpParseOptions ParseOptions = new CSharpParseOptions(LanguageVersion.Preview).WithFeatures(new[] { new KeyValuePair<string, string>("InterceptorsNamespaces", "Microsoft.AspNetCore.Http.Generated") });
Microsoft.AspNetCore.Http.Results.Tests (6)
ResultsTests.cs (3)
1280var extensions = new List<KeyValuePair<string, object>> { new("test", "value") }; 1430var errors = new List<KeyValuePair<string, string[]>> { new("testField", new[] { "test error" }) }; 1436var extensions = new List<KeyValuePair<string, object>> { new("testField", "test value") };
TypedResultsTests.cs (3)
1096var extensions = new List<KeyValuePair<string, object>> { new("test", "value") }; 1217var errors = new List<KeyValuePair<string, string[]>> { new("testField", new[] { "test error" }) }; 1222var extensions = new List<KeyValuePair<string, object>> { new("testField", "test value") };
Microsoft.AspNetCore.Http.Tests (3)
HeaderDictionaryTests.cs (2)
96Assert.Throws<InvalidOperationException>(() => headers.Add(new KeyValuePair<string, StringValues>("header1", "value1"))); 99Assert.Throws<InvalidOperationException>(() => headers.Remove(new KeyValuePair<string, StringValues>("header1", "value1")));
Internal\ItemsDictionaryTests.cs (1)
26var pairs = new KeyValuePair<object, object>[] { new KeyValuePair<object, object>("first", "value") };
Microsoft.AspNetCore.HttpLogging (1)
HttpLoggingInterceptorContext.cs (1)
90InternalParameters.Add(new(key, value));
Microsoft.AspNetCore.InternalTesting (2)
Logging\LogValuesAssert.cs (1)
25Contains(new[] { new KeyValuePair<string, object>(key, value) }, actualValues);
xunit\QuarantinedTestTraitDiscoverer.cs (1)
18yield return new KeyValuePair<string, string>("Quarantined", "true");
Microsoft.AspNetCore.InternalTesting.Tests (35)
LogValuesAssertTest.cs (35)
32new KeyValuePair<string, object>("RouteValue", "Failure"), 33new KeyValuePair<string, object>("RouteKey", "id") 40new KeyValuePair<string, object>("RouteValue", "Failure"), 41new KeyValuePair<string, object>("RouteKey", "id") 45new KeyValuePair<string, object>("RouteValue", "Failure"), 46new KeyValuePair<string, object>("RouteKey", "id"), 47new KeyValuePair<string, object>("RouteConstraint", "Something") 54new KeyValuePair<string, object>("RouteValue", "Failure"), 55new KeyValuePair<string, object>("RouteKey", "id") 59new KeyValuePair<string, object>("RouteValue", "Failure"), 60new KeyValuePair<string, object>("RouteKey", "id"), 90new KeyValuePair<string, object>("RouteValue", "Failure"), 91new KeyValuePair<string, object>("RouteKey", "id") 98new KeyValuePair<string, object>("RouteValue", "Failure"), 99new KeyValuePair<string, object>("RouteKey", "id"), 100new KeyValuePair<string, object>("RouteConstraint", "Something") 104new KeyValuePair<string, object>("RouteValue", "Failure"), 105new KeyValuePair<string, object>("RouteKey", "id") 132new KeyValuePair<string, object>("RouteConstraint", "Something"), 133new KeyValuePair<string, object>("RouteValue", "Failure"), 134new KeyValuePair<string, object>("RouteKey", "id") 138new KeyValuePair<string, object>("RouteKey", "id"), 139new KeyValuePair<string, object>("RouteConstraint", "Something"), 140new KeyValuePair<string, object>("RouteValue", "Failure"), 153new KeyValuePair<string, object>("RouteConstraint", "Something"), 154new KeyValuePair<string, object>("RouteKey", "id"), 155new KeyValuePair<string, object>("RouteValue", "Failure"), 175new KeyValuePair<string, object>("RouteKey", "id"), 176new KeyValuePair<string, object>("RouteValue", "Failure"), 180new KeyValuePair<string, object>("ROUTEKEY", "id"), 181new KeyValuePair<string, object>("RouteValue", "Failure"), 187new KeyValuePair<string, object>("RouteKey", "id"), 188new KeyValuePair<string, object>("RouteValue", "Failure"), 192new KeyValuePair<string, object>("RouteKey", "id"), 193new KeyValuePair<string, object>("RouteValue", "FAILURE"),
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelStateDictionary.cs (1)
1030new KeyValuePair<string, ModelStateEntry>(_modelStateNode.Key, _modelStateNode);
Microsoft.AspNetCore.Mvc.Core (86)
Diagnostics\MvcDiagnostics.cs (83)
550 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 561 => new KeyValuePair<string, object>(nameof(HttpContext), HttpContext), 572 => new KeyValuePair<string, object>(nameof(RouteData), RouteData), 1060 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 1071 => new KeyValuePair<string, object>(nameof(HttpContext), HttpContext), 1082 => new KeyValuePair<string, object>(nameof(RouteData), RouteData), 1570 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 1581 => new KeyValuePair<string, object>(nameof(AuthorizationContext), AuthorizationContext), 1592 => new KeyValuePair<string, object>(nameof(Filter), Filter), 2080 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 2091 => new KeyValuePair<string, object>(nameof(AuthorizationContext), AuthorizationContext), 2102 => new KeyValuePair<string, object>(nameof(Filter), Filter), 2590 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 2601 => new KeyValuePair<string, object>(nameof(ResourceExecutingContext), ResourceExecutingContext), 2612 => new KeyValuePair<string, object>(nameof(Filter), Filter), 3100 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 3111 => new KeyValuePair<string, object>(nameof(ResourceExecutedContext), ResourceExecutedContext), 3122 => new KeyValuePair<string, object>(nameof(Filter), Filter), 3610 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 3621 => new KeyValuePair<string, object>(nameof(ResourceExecutingContext), ResourceExecutingContext), 3632 => new KeyValuePair<string, object>(nameof(Filter), Filter), 4120 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 4131 => new KeyValuePair<string, object>(nameof(ResourceExecutingContext), ResourceExecutingContext), 4142 => new KeyValuePair<string, object>(nameof(Filter), Filter), 4630 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 4641 => new KeyValuePair<string, object>(nameof(ResourceExecutedContext), ResourceExecutedContext), 4652 => new KeyValuePair<string, object>(nameof(Filter), Filter), 5140 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 5151 => new KeyValuePair<string, object>(nameof(ResourceExecutedContext), ResourceExecutedContext), 5162 => new KeyValuePair<string, object>(nameof(Filter), Filter), 5650 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 5661 => new KeyValuePair<string, object>(nameof(ExceptionContext), ExceptionContext), 5672 => new KeyValuePair<string, object>(nameof(Filter), Filter), 6160 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 6171 => new KeyValuePair<string, object>(nameof(ExceptionContext), ExceptionContext), 6182 => new KeyValuePair<string, object>(nameof(Filter), Filter), 6670 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 6681 => new KeyValuePair<string, object>(nameof(ActionExecutingContext), ActionExecutingContext), 6692 => new KeyValuePair<string, object>(nameof(Filter), Filter), 7180 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 7191 => new KeyValuePair<string, object>(nameof(ActionExecutedContext), ActionExecutedContext), 7202 => new KeyValuePair<string, object>(nameof(Filter), Filter), 7690 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 7701 => new KeyValuePair<string, object>(nameof(ActionExecutingContext), ActionExecutingContext), 7712 => new KeyValuePair<string, object>(nameof(Filter), Filter), 8200 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 8211 => new KeyValuePair<string, object>(nameof(ActionExecutingContext), ActionExecutingContext), 8222 => new KeyValuePair<string, object>(nameof(Filter), Filter), 8710 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 8721 => new KeyValuePair<string, object>(nameof(ActionExecutedContext), ActionExecutedContext), 8732 => new KeyValuePair<string, object>(nameof(Filter), Filter), 9220 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 9231 => new KeyValuePair<string, object>(nameof(ActionExecutedContext), ActionExecutedContext), 9242 => new KeyValuePair<string, object>(nameof(Filter), Filter), 9730 => new KeyValuePair<string, object>(nameof(ActionContext), ActionContext), 9741 => new KeyValuePair<string, object>(nameof(ActionArguments), ActionArguments), 9752 => new KeyValuePair<string, object>(nameof(Controller), Controller), 10310 => new KeyValuePair<string, object>(nameof(ActionContext), ActionContext), 10321 => new KeyValuePair<string, object>(nameof(Controller), Controller), 10332 => new KeyValuePair<string, object>(nameof(Controller), Controller), 10343 => new KeyValuePair<string, object>(nameof(Result), Result), 10830 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 10841 => new KeyValuePair<string, object>(nameof(ResultExecutingContext), ResultExecutingContext), 10852 => new KeyValuePair<string, object>(nameof(Filter), Filter), 11340 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 11351 => new KeyValuePair<string, object>(nameof(ResultExecutedContext), ResultExecutedContext), 11362 => new KeyValuePair<string, object>(nameof(Filter), Filter), 11850 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 11861 => new KeyValuePair<string, object>(nameof(ResultExecutingContext), ResultExecutingContext), 11872 => new KeyValuePair<string, object>(nameof(Filter), Filter), 12360 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 12371 => new KeyValuePair<string, object>(nameof(ResultExecutingContext), ResultExecutingContext), 12382 => new KeyValuePair<string, object>(nameof(Filter), Filter), 12870 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 12881 => new KeyValuePair<string, object>(nameof(ResultExecutedContext), ResultExecutedContext), 12892 => new KeyValuePair<string, object>(nameof(Filter), Filter), 13380 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 13391 => new KeyValuePair<string, object>(nameof(ResultExecutedContext), ResultExecutedContext), 13402 => new KeyValuePair<string, object>(nameof(Filter), Filter), 13820 => new KeyValuePair<string, object>(nameof(ActionContext), ActionContext), 13831 => new KeyValuePair<string, object>(nameof(Result), Result), 14250 => new KeyValuePair<string, object>(nameof(ActionContext), ActionContext), 14261 => new KeyValuePair<string, object>(nameof(Result), Result),
ModelBinding\Binders\KeyValuePairModelBinder.cs (1)
53var model = new KeyValuePair<TKey?, TValue?>(
MvcCoreLoggerExtensions.cs (2)
297return new KeyValuePair<string, object>("ActionId", _action.Id); 301return new KeyValuePair<string, object>("ActionName", _action.DisplayName ?? string.Empty);
Microsoft.AspNetCore.Mvc.Core.Test (40)
ApplicationModels\ActionModelTest.cs (1)
79action.Properties.Add(new KeyValuePair<object, object>("test key", "test value"));
ApplicationModels\ControllerModelTest.cs (1)
79controller.Properties.Add(new KeyValuePair<object, object>("test key", "test value"));
ApplicationModels\ParameterModelTest.cs (1)
25parameter.Properties.Add(new KeyValuePair<object, object>("test key", "test value"));
ApplicationModels\PropertyModelTest.cs (1)
21propertyModel.Properties.Add(new KeyValuePair<object, object>("test key", "test value"));
ModelBinding\Binders\DictionaryModelBinderTest.cs (2)
371new KeyValuePair<string, int>("prefix[23]", 23), 372new KeyValuePair<string, int>("prefix[27]", 27),
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (1)
101Assert.Equal(new KeyValuePair<int, string>(42, "some-value"), bindingContext.Result.Model);
ModelBinding\Metadata\DefaultModelMetadataTest.cs (20)
582new KeyValuePair<string, int>("Property1", 23), 583new KeyValuePair<string, int>("Property2", 23), 584new KeyValuePair<string, int>("Property3", 23), 585new KeyValuePair<string, int>("Property4", 23), 593new KeyValuePair<string, int>("Property4", 23), 594new KeyValuePair<string, int>("Property3", 24), 595new KeyValuePair<string, int>("Property2", 25), 596new KeyValuePair<string, int>("Property1", 26), 604new KeyValuePair<string, int>("Property1", 26), 605new KeyValuePair<string, int>("Property2", 25), 606new KeyValuePair<string, int>("Property3", 24), 607new KeyValuePair<string, int>("Property4", 23), 614new KeyValuePair<string, int>("Alpha", 26), 615new KeyValuePair<string, int>("Bravo", 24), 616new KeyValuePair<string, int>("Charlie", 23), 617new KeyValuePair<string, int>("Delta", 25), 625new KeyValuePair<string, int>("Joan", 1), 626new KeyValuePair<string, int>("Jonathan", 0), 627new KeyValuePair<string, int>("Jon", 0), 628new KeyValuePair<string, int>("John", -1),
ModelBinding\Validation\DefaultCollectionValidationStrategyTest.cs (3)
68Assert.Equal(new KeyValuePair<int, string>(2, "two"), e.Model); 74Assert.Equal(new KeyValuePair<int, string>(3, "three"), e.Model); 80Assert.Equal(new KeyValuePair<int, string>(5, "five"), e.Model);
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategyTest.cs (3)
68Assert.Equal(new KeyValuePair<int, string>(3, "three"), e.Model); 74Assert.Equal(new KeyValuePair<int, string>(5, "five"), e.Model); 80Assert.Equal(new KeyValuePair<int, string>(2, "two"), e.Model);
MvcCoreLoggerExtensionsTest.cs (6)
20new object[]{ "{foo = \"bar\"}", new KeyValuePair<string, string>("foo", "bar") }, 22new KeyValuePair<string, string>("foo", "bar"), 23new KeyValuePair<string, string>("other", "value") }, 28new object[]{ "{page = \"bar\"}", new KeyValuePair<string, string>("page", "bar") }, 30new KeyValuePair<string, string>("page", "bar"), 31new KeyValuePair<string, string>("other", "value") },
Routing\AttributeRouteTest.cs (1)
442kvp => Assert.Equal(new KeyValuePair<string, object>("slug", "hello"), kvp));
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
193groupedDisplayNamesAndValues.Add(new KeyValuePair<EnumGroupAndName, string>(
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (58)
DataAnnotationsMetadataProviderTest.cs (58)
820new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName("Zero", string.Empty), "0"), 821new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayNames.One)), "1"), 822new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "dos value"), "2"), 823new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "tres value"), "3"), 824new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "name from resources"), "-2"), 825new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName("Negatives", "menos uno value"), "-1"), 873new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName("Zero", string.Empty), "0"), 874new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayNames.One)), "1"), 875new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "dos"), "2"), 876new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "tres"), "3"), 877new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "name from resources"), "-2"), 878new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName("Negatives", "menos uno"), "-1"), 885new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName("Zero", string.Empty), "0"), 886new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayNames.One)), "1"), 887new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "dos"), "2"), 888new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "tres"), "3"), 889new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "name from resources"), "-2"), 890new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName("Negatives", "menos uno"), "-1"), 899new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Zero)), "0"), 900new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.None)), "0"), 901new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.One)), "1"), 902new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Two)), "2"), 903new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Duece)), "2"), 904new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Three)), "3"), 905new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.MoreThanTwo)), "3"), 912new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Zero)), "0"), 913new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.None)), "0"), 914new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.One)), "1"), 915new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Two)), "2"), 916new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Duece)), "2"), 917new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Three)), "3"), 918new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.MoreThanTwo)), "3"), 925new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Zero)), "0"), 926new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.One)), "1"), 927new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Two)), "2"), 928new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Four)), "4"), 929new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.All)), "-1"), 936new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Zero)), "0"), 937new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.One)), "1"), 938new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Two)), "2"), 939new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Four)), "4"), 940new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.All)), "-1"), 947new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Zero)), "0"), 948new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.One)), "1"), 949new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Two)), "2"), 950new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Three)), "3"), 951new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusTwo)), "-2"), 952new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusOne)), "-1"), 959new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Zero)), "0"), 960new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.One)), "1"), 961new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Two)), "2"), 962new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Three)), "3"), 963new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusTwo)), "-2"), 964new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusOne)), "-1"), 1000new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayOrder.Three)), "2"), 1001new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayOrder.Two)), "1"), 1002new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayOrder.One)), "0"), 1003new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayOrder.Null)), "3"),
Microsoft.AspNetCore.Mvc.FunctionalTests (133)
AntiforgeryMiddlewareTest.cs (19)
44new("__RequestVerificationToken", tokens.RequestToken), 45new("name", "Test task"), 46new("isComplete", "false"), 47new("dueDate", DateTime.Today.AddDays(1).ToString(CultureInfo.CurrentCulture)), 86new("name", "Test task"), 87new("isComplete", "false"), 88new("dueDate", DateTime.Today.AddDays(1).ToString(CultureInfo.CurrentCulture)), 128new("__RequestVerificationToken", tokens.RequestToken), 129new("name", "Test task"), 130new("isComplete", "false"), 131new("dueDate", DateTime.Today.AddDays(1).ToString(CultureInfo.CurrentCulture)), 160new("__RequestVerificationToken", tokens.RequestToken), 161new("name", "Test task"), 162new("isComplete", "false"), 163new("dueDate", DateTime.Today.AddDays(1).ToString(CultureInfo.CurrentCulture)), 192new("__RequestVerificationToken", tokens.RequestToken), 193new("name", "Test task"), 194new("isComplete", "false"), 195new("dueDate", DateTime.Today.AddDays(1).ToString(CultureInfo.CurrentCulture)),
AntiforgeryTests.cs (9)
71new KeyValuePair<string,string>("__RequestVerificationToken", formToken), 72new KeyValuePair<string,string>("UserName", "abra"), 73new KeyValuePair<string,string>("Password", "cadabra"), 121new KeyValuePair<string,string>("__RequestVerificationToken", formToken), 122new KeyValuePair<string,string>("UserName", "test"), 123new KeyValuePair<string,string>("Password", "password"), 150new KeyValuePair<string,string>("__RequestVerificationToken", formToken), 151new KeyValuePair<string,string>("UserName", "test"), 152new KeyValuePair<string,string>("Password", "password"),
HtmlGenerationTest.cs (11)
327new KeyValuePair<string,string>("Number", string.Empty), 328new KeyValuePair<string,string>("Name", string.Empty), 329new KeyValuePair<string,string>("Email", string.Empty), 330new KeyValuePair<string,string>("PhoneNumber", string.Empty), 331new KeyValuePair<string,string>("Password", string.Empty) 379new KeyValuePair<string,string>("Number", string.Empty), 380new KeyValuePair<string,string>("Name", string.Empty), 381new KeyValuePair<string,string>("Email", string.Empty), 382new KeyValuePair<string,string>("PhoneNumber", string.Empty), 383new KeyValuePair<string,string>("Password", string.Empty), 384new KeyValuePair<string,string>("Address", string.Empty),
InputObjectValidationTests.cs (1)
187new KeyValuePair<string, string>("Alias", "xyz"),
NonNullableReferenceTypesTest.cs (4)
56new KeyValuePair<string, string>("__RequestVerificationToken", formToken), 98new KeyValuePair<string, string>("__RequestVerificationToken", formToken), 99new KeyValuePair<string, string>("Name", "Pranav"), 100new KeyValuePair<string, string>("description", "Meme")
RazorPageModelTest.cs (12)
43new KeyValuePair<string, string>("Name", "Overriden"), 44new KeyValuePair<string, string>("Age", "25"), 68new KeyValuePair<string, string>("Name", "Foo"), 69new KeyValuePair<string, string>("Age", "25"), 93new KeyValuePair<string, string>("Name", "Foo"), 94new KeyValuePair<string, string>("Age", "200"), 119new KeyValuePair<string, string>("Name", "Overriden"), 120new KeyValuePair<string, string>("Age", "25"), 144new KeyValuePair<string, string>("Name", "Foo"), 145new KeyValuePair<string, string>("Age", "25"), 169new KeyValuePair<string, string>("Name", "Foo"), 170new KeyValuePair<string, string>("Age", "200"),
RazorPagesTest.cs (13)
675new KeyValuePair<string, string>("Name", "Foo"), 676new KeyValuePair<string, string>("Age", "25"), 704new KeyValuePair<string, string>("Age", "325"), 730new KeyValuePair<string, string>("Name", "Foo"), 731new KeyValuePair<string, string>("Age", "25"), 761new KeyValuePair<string, string>("Age", "325"), 846new KeyValuePair<string, string>("Name", "Test-Name"), 847new KeyValuePair<string, string>("Age", "32"), 871new KeyValuePair<string, string>("Name", "Test-Name"), 872new KeyValuePair<string, string>("Age", "32"), 987new KeyValuePair<string, string>("value", "37"), 1332new KeyValuePair<string, string>("Property1", "345"), 1333new KeyValuePair<string, string>("Property2", "25"),
RequestFormLimitsTest.cs (19)
42kvps.Add(new KeyValuePair<string, string>("key1", "value1")); 43kvps.Add(new KeyValuePair<string, string>("key2", "value2")); 44kvps.Add(new KeyValuePair<string, string>("key3", "value3")); 45kvps.Add(new KeyValuePair<string, string>("RequestVerificationToken", "invalid-data")); 64kvps.Add(new KeyValuePair<string, string>("key1", "value1")); 65kvps.Add(new KeyValuePair<string, string>("key2", "value2")); 66kvps.Add(new KeyValuePair<string, string>("SampleInt", "10")); 89kvps.Add(new KeyValuePair<string, string>($"key{i}", $"value{i}")); 91kvps.Add(new KeyValuePair<string, string>("SampleInt", "50")); 92kvps.Add(new KeyValuePair<string, string>("RequestVerificationToken", "invalid-data")); 113kvps.Add(new KeyValuePair<string, string>("key1", new string('a', 1024))); 114kvps.Add(new KeyValuePair<string, string>("key2", "value2")); 115kvps.Add(new KeyValuePair<string, string>("RequestVerificationToken", "invalid-data")); 138kvps.Add(new KeyValuePair<string, string>("key1", "value1")); 139kvps.Add(new KeyValuePair<string, string>("key1", "value2")); 140kvps.Add(new KeyValuePair<string, string>("key1", "value3")); 141kvps.Add(new KeyValuePair<string, string>("RequestVerificationToken", "invalid-data")); 161kvps.Add(new KeyValuePair<string, string>("key1", "value1")); 162kvps.Add(new KeyValuePair<string, string>("RequestVerificationToken", "invalid-data"));
RequestSizeLimitTest.cs (4)
42kvps.Add(new KeyValuePair<string, string>("SampleString", new string('p', 1024))); 43kvps.Add(new KeyValuePair<string, string>("RequestVerificationToken", "invalid-data")); 64kvps.Add(new KeyValuePair<string, string>("SampleString", "string")); 65kvps.Add(new KeyValuePair<string, string>("RequestVerificationToken", "invalid-data"));
RoutingEndpointRoutingTest.cs (1)
29new KeyValuePair<string, object>("page", "pagevalue"),
RoutingTestsBase.cs (11)
384new KeyValuePair<string, object>("controller", "Store"), 388new KeyValuePair<string, object>("action", "ListProducts"), 417new KeyValuePair<string, object>("controller", "Friends"), 421new KeyValuePair<string, object>("action", method), 427new KeyValuePair<string, object>("id", "Peter"), 662new KeyValuePair<string, object>("controller", "Blog"), 666new KeyValuePair<string, object>("action", "Edit"), 670new KeyValuePair<string, object>("postId", "5"), 877new KeyValuePair<string, object>("id", "5"), 898new KeyValuePair<string, object>("id", "5"), 919new KeyValuePair<string, object>("teamId", "5"),
RoutingWithoutRazorPagesTestsBase.cs (1)
53new KeyValuePair<string, object>("page", "pagevalue"),
TempDataInCookiesTest.cs (2)
119new KeyValuePair<string, string>("value", "Foo"), 172new KeyValuePair<string, string>("value", "Foo"),
TempDataInCookiesUsingCookieConsentTest.cs (2)
42new KeyValuePair<string, string>("value", "Foo"), 75new KeyValuePair<string, string>("value", "Foo"),
TempDataPropertyTest.cs (8)
38new KeyValuePair<string, string>("FullName", "Bob"), 39new KeyValuePair<string, string>("id", "1"), 66new KeyValuePair<string, string>("FullName", "Bob"), 67new KeyValuePair<string, string>("id", "1"), 94new KeyValuePair<string, string>("FullName", "Bob"), 95new KeyValuePair<string, string>("id", "1"), 131new KeyValuePair<string, string>("FullName", "Bob"), 132new KeyValuePair<string, string>("id", "1"),
TempDataTestBase.cs (13)
41new KeyValuePair<string, string>("value", "Foo"), 72new KeyValuePair<string, string>("value", "Foo"), 91new KeyValuePair<string, string>("value", "Foo"), 122new KeyValuePair<string, string>("value", "Foo"), 156new KeyValuePair<string, string>("value", "Foo"), 157new KeyValuePair<string, string>("intValue", "10"), 158new KeyValuePair<string, string>("listValues", "Foo1"), 159new KeyValuePair<string, string>("listValues", "Foo2"), 160new KeyValuePair<string, string>("listValues", "Foo3"), 161new KeyValuePair<string, string>("datetimeValue", "10/10/2010"), 162new KeyValuePair<string, string>("guidValue", testGuid.ToString()), 187new KeyValuePair<string, string>("Name", "Jordan"), 201new KeyValuePair<string, string>("Name", "Jordan"),
VersioningTestsBase.cs (3)
164new KeyValuePair<string, object>("id", "5"), 191new KeyValuePair<string, object>("id", "5"), 240new KeyValuePair<string, object>("id", "5"),
Microsoft.AspNetCore.Mvc.IntegrationTests (7)
ComplexRecordIntegrationTest.cs (2)
1735Assert.Equal(new KeyValuePair<string, int>("key0", 10), model.ProductId); 1790Assert.Equal(new KeyValuePair<string, int>("key0", 10), model.ProductId);
ComplexTypeIntegrationTestBase.cs (2)
1776Assert.Equal(new KeyValuePair<string, int>("key0", 10), model.ProductId); 1831Assert.Equal(new KeyValuePair<string, int>("key0", 10), model.ProductId);
KeyValuePairModelBinderIntegrationTest.cs (3)
38Assert.Equal(new KeyValuePair<string, int>("key0", 10), model); 256Assert.Equal(new KeyValuePair<string, int>("key0", 10), model); 296Assert.Equal(new KeyValuePair<string, int>("key0", 10), model);
Microsoft.AspNetCore.Mvc.Razor (8)
Diagnostics\MvcDiagnostics.cs (8)
640 => new KeyValuePair<string, object>(nameof(Page), Page), 651 => new KeyValuePair<string, object>(nameof(ViewContext), ViewContext), 662 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 673 => new KeyValuePair<string, object>(nameof(HttpContext), HttpContext), 1250 => new KeyValuePair<string, object>(nameof(Page), Page), 1261 => new KeyValuePair<string, object>(nameof(ViewContext), ViewContext), 1272 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 1283 => new KeyValuePair<string, object>(nameof(HttpContext), HttpContext),
Microsoft.AspNetCore.Mvc.RazorPages (39)
Diagnostics\MvcDiagnostics.cs (39)
610 => new KeyValuePair<string, object>(nameof(ActionContext), ActionContext), 621 => new KeyValuePair<string, object>(nameof(Arguments), Arguments), 632 => new KeyValuePair<string, object>(nameof(HandlerMethodDescriptor), HandlerMethodDescriptor), 643 => new KeyValuePair<string, object>(nameof(Instance), Instance), 1270 => new KeyValuePair<string, object>(nameof(ActionContext), ActionContext), 1281 => new KeyValuePair<string, object>(nameof(Arguments), Arguments), 1292 => new KeyValuePair<string, object>(nameof(HandlerMethodDescriptor), HandlerMethodDescriptor), 1303 => new KeyValuePair<string, object>(nameof(Instance), Instance), 1314 => new KeyValuePair<string, object>(nameof(Result), Result!), 1800 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 1811 => new KeyValuePair<string, object>(nameof(HandlerExecutionContext), HandlerExecutionContext), 1822 => new KeyValuePair<string, object>(nameof(Filter), Filter), 2310 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 2321 => new KeyValuePair<string, object>(nameof(HandlerExecutedContext), HandlerExecutedContext), 2332 => new KeyValuePair<string, object>(nameof(Filter), Filter), 2820 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 2831 => new KeyValuePair<string, object>(nameof(HandlerExecutingContext), HandlerExecutingContext), 2842 => new KeyValuePair<string, object>(nameof(Filter), Filter), 3330 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 3341 => new KeyValuePair<string, object>(nameof(HandlerExecutingContext), HandlerExecutingContext), 3352 => new KeyValuePair<string, object>(nameof(Filter), Filter), 3840 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 3851 => new KeyValuePair<string, object>(nameof(HandlerExecutedContext), HandlerExecutedContext), 3862 => new KeyValuePair<string, object>(nameof(Filter), Filter), 4350 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 4361 => new KeyValuePair<string, object>(nameof(HandlerExecutedContext), HandlerExecutedContext), 4372 => new KeyValuePair<string, object>(nameof(Filter), Filter), 4860 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 4871 => new KeyValuePair<string, object>(nameof(HandlerSelectedContext), HandlerSelectedContext), 4882 => new KeyValuePair<string, object>(nameof(Filter), Filter), 5370 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 5381 => new KeyValuePair<string, object>(nameof(HandlerSelectedContext), HandlerSelectedContext), 5392 => new KeyValuePair<string, object>(nameof(Filter), Filter), 5880 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 5891 => new KeyValuePair<string, object>(nameof(HandlerSelectedContext), HandlerSelectedContext), 5902 => new KeyValuePair<string, object>(nameof(Filter), Filter), 6390 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 6401 => new KeyValuePair<string, object>(nameof(HandlerSelectedContext), HandlerSelectedContext), 6412 => new KeyValuePair<string, object>(nameof(Filter), Filter),
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\CacheTagKey.cs (1)
286result.Add(new KeyValuePair<string, string>(trimmedValue.Value, value ?? string.Empty));
Microsoft.AspNetCore.Mvc.ViewFeatures (31)
AttributeDictionary.cs (2)
43var item = new KeyValuePair<string, string?>(key, value); 185Add(new KeyValuePair<string, string?>(key, value));
Diagnostics\MvcDiagnostics.cs (27)
550 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 561 => new KeyValuePair<string, object>(nameof(ViewComponentContext), ViewComponentContext), 572 => new KeyValuePair<string, object>(nameof(ViewComponent), ViewComponent), 1130 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 1141 => new KeyValuePair<string, object>(nameof(ViewComponentContext), ViewComponentContext), 1152 => new KeyValuePair<string, object>(nameof(ViewComponent), ViewComponent), 1163 => new KeyValuePair<string, object>(nameof(ViewComponentResult), ViewComponentResult), 1640 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 1651 => new KeyValuePair<string, object>(nameof(ViewComponentContext), ViewComponentContext), 1662 => new KeyValuePair<string, object>(nameof(View), View), 2150 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor), 2161 => new KeyValuePair<string, object>(nameof(ViewComponentContext), ViewComponentContext), 2172 => new KeyValuePair<string, object>(nameof(View), View), 2590 => new KeyValuePair<string, object>(nameof(View), View), 2601 => new KeyValuePair<string, object>(nameof(ViewContext), ViewContext), 3020 => new KeyValuePair<string, object>(nameof(View), View), 3031 => new KeyValuePair<string, object>(nameof(ViewContext), ViewContext), 3700 => new KeyValuePair<string, object>(nameof(ActionContext), ActionContext), 3711 => new KeyValuePair<string, object>(nameof(IsMainPage), IsMainPage ? BoxedTrue : BoxedFalse), 3722 => new KeyValuePair<string, object>(nameof(Result), Result), 3733 => new KeyValuePair<string, object>(nameof(ViewName), ViewName), 3744 => new KeyValuePair<string, object>(nameof(View), View), 4410 => new KeyValuePair<string, object>(nameof(ActionContext), ActionContext), 4421 => new KeyValuePair<string, object>(nameof(IsMainPage), IsMainPage ? BoxedTrue : BoxedFalse), 4432 => new KeyValuePair<string, object>(nameof(Result), Result), 4443 => new KeyValuePair<string, object>(nameof(ViewName), ViewName), 4454 => new KeyValuePair<string, object>(nameof(SearchedLocations), SearchedLocations),
ViewComponents\DefaultViewComponentInvoker.cs (2)
299return new KeyValuePair<string, object>("ViewComponentName", _descriptor.DisplayName); 303return new KeyValuePair<string, object>("ViewComponentId", _descriptor.Id);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (99)
AttributeDictionaryTest.cs (93)
23kvp => Assert.Equal(new KeyValuePair<string, string>("one", "1"), kvp), 24kvp => Assert.Equal(new KeyValuePair<string, string>("two", "2"), kvp), 25kvp => Assert.Equal(new KeyValuePair<string, string>("zero", "0"), kvp)); 35attributes.Add(new KeyValuePair<string, string>("zero", "0")); 36attributes.Add(new KeyValuePair<string, string>("one", "1")); 37attributes.Add(new KeyValuePair<string, string>("two", "2")); 43kvp => Assert.Equal(new KeyValuePair<string, string>("one", "1"), kvp), 44kvp => Assert.Equal(new KeyValuePair<string, string>("two", "2"), kvp), 45kvp => Assert.Equal(new KeyValuePair<string, string>("zero", "0"), kvp)); 68attributes.Add(new KeyValuePair<string, string>("zero", "0")); 69attributes.Add(new KeyValuePair<string, string>("one", "1")); 70attributes.Add(new KeyValuePair<string, string>("two", "2")); 86attributes.Add(new KeyValuePair<string, string>("zero", "0")); 87attributes.Add(new KeyValuePair<string, string>("one", "1")); 88attributes.Add(new KeyValuePair<string, string>("two", "2")); 91var result = attributes.Contains(new KeyValuePair<string, string>("zero", "0")); 103attributes.Add(new KeyValuePair<string, string>("zero", "0")); 104attributes.Add(new KeyValuePair<string, string>("one", "1")); 105attributes.Add(new KeyValuePair<string, string>("two", "2")); 108var result = attributes.Contains(new KeyValuePair<string, string>("zero", "nada")); 120attributes.Add(new KeyValuePair<string, string>("zero", "0")); 121attributes.Add(new KeyValuePair<string, string>("one", "1")); 122attributes.Add(new KeyValuePair<string, string>("two", "2")); 137attributes.Add(new KeyValuePair<string, string>("zero", "0")); 138attributes.Add(new KeyValuePair<string, string>("one", "1")); 139attributes.Add(new KeyValuePair<string, string>("two", "2")); 154attributes.Add(new KeyValuePair<string, string>("zero", "0")); 155attributes.Add(new KeyValuePair<string, string>("one", "1")); 156attributes.Add(new KeyValuePair<string, string>("two", "2")); 167kvp => Assert.Equal(new KeyValuePair<string, string>("one", "1"), kvp), 168kvp => Assert.Equal(new KeyValuePair<string, string>("two", "2"), kvp), 169kvp => Assert.Equal(new KeyValuePair<string, string>("zero", "0"), kvp)); 191attributes.Add(new KeyValuePair<string, string>("zero", "0")); 192attributes.Add(new KeyValuePair<string, string>("one", "1")); 193attributes.Add(new KeyValuePair<string, string>("two", "2")); 213attributes.Add(new KeyValuePair<string, string>("zero", "0")); 214attributes.Add(new KeyValuePair<string, string>("one", "1")); 215attributes.Add(new KeyValuePair<string, string>("two", "2")); 225kvp => Assert.Equal(new KeyValuePair<string, string>("two", "2"), kvp), 226kvp => Assert.Equal(new KeyValuePair<string, string>("zero", "0"), kvp)); 235attributes.Add(new KeyValuePair<string, string>("zero", "0")); 236attributes.Add(new KeyValuePair<string, string>("one", "1")); 237attributes.Add(new KeyValuePair<string, string>("two", "2")); 247kvp => Assert.Equal(new KeyValuePair<string, string>("one", "1"), kvp), 248kvp => Assert.Equal(new KeyValuePair<string, string>("two", "2"), kvp), 249kvp => Assert.Equal(new KeyValuePair<string, string>("zero", "0"), kvp)); 258attributes.Add(new KeyValuePair<string, string>("zero", "0")); 259attributes.Add(new KeyValuePair<string, string>("one", "1")); 260attributes.Add(new KeyValuePair<string, string>("two", "2")); 263var result = attributes.Remove(new KeyValuePair<string, string>("one", "1")); 270kvp => Assert.Equal(new KeyValuePair<string, string>("two", "2"), kvp), 271kvp => Assert.Equal(new KeyValuePair<string, string>("zero", "0"), kvp)); 280attributes.Add(new KeyValuePair<string, string>("zero", "0")); 281attributes.Add(new KeyValuePair<string, string>("one", "1")); 282attributes.Add(new KeyValuePair<string, string>("two", "2")); 285var result = attributes.Remove(new KeyValuePair<string, string>("one", "0")); 292kvp => Assert.Equal(new KeyValuePair<string, string>("one", "1"), kvp), 293kvp => Assert.Equal(new KeyValuePair<string, string>("two", "2"), kvp), 294kvp => Assert.Equal(new KeyValuePair<string, string>("zero", "0"), kvp)); 303attributes.Add(new KeyValuePair<string, string>("zero", "0")); 304attributes.Add(new KeyValuePair<string, string>("one", "1")); 305attributes.Add(new KeyValuePair<string, string>("two", "2")); 323attributes.Add(new KeyValuePair<string, string>("zero", "0")); 324attributes.Add(new KeyValuePair<string, string>("one", "1")); 325attributes.Add(new KeyValuePair<string, string>("two", "2")); 343attributes.Add(new KeyValuePair<string, string>("zero", "0")); 344attributes.Add(new KeyValuePair<string, string>("one", "1")); 345attributes.Add(new KeyValuePair<string, string>("two", "2")); 365attributes.Add(new KeyValuePair<string, string>("zero", "0")); 366attributes.Add(new KeyValuePair<string, string>("one", "1")); 367attributes.Add(new KeyValuePair<string, string>("two", "2")); 382attributes.Add(new KeyValuePair<string, string>("zero", "0")); 383attributes.Add(new KeyValuePair<string, string>("one", "1")); 384attributes.Add(new KeyValuePair<string, string>("two", "2")); 396attributes.Add(new KeyValuePair<string, string>("zero", "0")); 397attributes.Add(new KeyValuePair<string, string>("one", "1")); 398attributes.Add(new KeyValuePair<string, string>("two", "2")); 407kvp => Assert.Equal(new KeyValuePair<string, string>("one", "1!"), kvp), 408kvp => Assert.Equal(new KeyValuePair<string, string>("two", "2"), kvp), 409kvp => Assert.Equal(new KeyValuePair<string, string>("zero", "0"), kvp)); 418attributes.Add(new KeyValuePair<string, string>("zero", "0")); 419attributes.Add(new KeyValuePair<string, string>("one", "1")); 420attributes.Add(new KeyValuePair<string, string>("two", "2")); 429kvp => Assert.Equal(new KeyValuePair<string, string>("exciting!", "1!"), kvp), 430kvp => Assert.Equal(new KeyValuePair<string, string>("one", "1"), kvp), 431kvp => Assert.Equal(new KeyValuePair<string, string>("two", "2"), kvp), 432kvp => Assert.Equal(new KeyValuePair<string, string>("zero", "0"), kvp)); 441attributes.Add(new KeyValuePair<string, string>("zero", "0")); 442attributes.Add(new KeyValuePair<string, string>("one", "1")); 443attributes.Add(new KeyValuePair<string, string>("two", "2")); 452kvp => Assert.Equal(new KeyValuePair<string, string>("oNe", "1!"), kvp), 453kvp => Assert.Equal(new KeyValuePair<string, string>("two", "2"), kvp), 454kvp => Assert.Equal(new KeyValuePair<string, string>("zero", "0"), kvp));
Rendering\HtmlHelperTest.cs (3)
22new KeyValuePair<string, object>("selected", false) 30new KeyValuePair<string, object>("SeLeCtEd", true) 38new KeyValuePair<string, object>("SelECTeD", true)
Rendering\TagBuilderTest.cs (3)
38Assert.Equal(new KeyValuePair<string, string>(expectedKey, expectedValue), attribute); 53Assert.Equal(new KeyValuePair<string, string>("class", "btn btn-success"), attribute); 68Assert.Equal(new KeyValuePair<string, string>("ID", "something"), attribute);
Microsoft.AspNetCore.OutputCaching (2)
OutputCacheEntryFormatter.cs (1)
516pairs.Add(new(header, i));
OutputCachePolicyBuilder.cs (1)
217return ValueTask.FromResult(new KeyValuePair<string, string>(key, value));
Microsoft.AspNetCore.OutputCaching.Tests (4)
OutputCachePoliciesTests.cs (2)
291IOutputCachePolicy policy = new VaryByValuePolicy((context, CancellationToken) => ValueTask.FromResult(new KeyValuePair<string, string>(key, value))); 295Assert.Contains(new KeyValuePair<string, string>(key, value), context.CacheVaryByRules.VaryByValues);
OutputCachePolicyBuilderTests.cs (2)
224.VaryByValue(context => new KeyValuePair<string, string>("color", "blue")) 225.VaryByValue((context, cancellationToken) => ValueTask.FromResult(new KeyValuePair<string, string>("size", "1m")))
Microsoft.AspNetCore.Owin (16)
DictionaryStringArrayWrapper.cs (2)
20private static KeyValuePair<string, StringValues> Convert(KeyValuePair<string, string[]> item) => new KeyValuePair<string, StringValues>(item.Key, item.Value); 22private static KeyValuePair<string, string[]> Convert(KeyValuePair<string, StringValues> item) => new KeyValuePair<string, string[]>(item.Key, item.Value);
DictionaryStringValuesWrapper.cs (2)
21private static KeyValuePair<string, StringValues> Convert(KeyValuePair<string, string[]> item) => new KeyValuePair<string, StringValues>(item.Key, item.Value); 23private static KeyValuePair<string, string[]> Convert(KeyValuePair<string, StringValues> item) => new KeyValuePair<string, string[]>(item.Key, item.Value);
OwinEnvironment.cs (2)
294yield return new KeyValuePair<string, object>(entryPair.Key, value); 299yield return new KeyValuePair<string, object>(Convert.ToString(entryPair.Key, CultureInfo.InvariantCulture), entryPair.Value);
OwinFeatureCollection.cs (10)
400yield return new KeyValuePair<Type, object>(typeof(IHttpRequestFeature), this); 401yield return new KeyValuePair<Type, object>(typeof(IHttpResponseFeature), this); 402yield return new KeyValuePair<Type, object>(typeof(IHttpResponseBodyFeature), this); 403yield return new KeyValuePair<Type, object>(typeof(IHttpConnectionFeature), this); 404yield return new KeyValuePair<Type, object>(typeof(IHttpRequestIdentifierFeature), this); 405yield return new KeyValuePair<Type, object>(typeof(IHttpRequestLifetimeFeature), this); 406yield return new KeyValuePair<Type, object>(typeof(IHttpAuthenticationFeature), this); 407yield return new KeyValuePair<Type, object>(typeof(IOwinEnvironmentFeature), this); 412yield return new KeyValuePair<Type, object>(typeof(ITlsConnectionFeature), this); 416yield return new KeyValuePair<Type, object>(typeof(IHttpWebSocketFeature), this);
Microsoft.AspNetCore.Routing (16)
Matching\DfaMatcher.cs (2)
249slots[slotIndex] = new KeyValuePair<string, object?>( 269slots[catchAll.slotIndex] = new KeyValuePair<string, object?>(
Matching\DfaMatcherBuilder.cs (3)
776_slots.Add(new KeyValuePair<string, object>(parameterPart.Name, requiredValue)); 781_slots.Add(hasDefaultValue ? new KeyValuePair<string, object>(parameterPart.Name, parameterPart.Default) : default); 821_constraints.Add(new KeyValuePair<string, IRouteConstraint>(kvp.Key, routeConstraint));
RoutingMetrics.cs (4)
34new KeyValuePair<string, object?>("http.route", route), 35new KeyValuePair<string, object?>("aspnetcore.routing.match_status", "success"), 36new KeyValuePair<string, object?>("aspnetcore.routing.is_fallback", isFallback ? BoxedTrue : BoxedFalse)); 42new KeyValuePair<string, object?>("aspnetcore.routing.match_status", "failure"));
src\Shared\Debugger\DebuggerHelpers.cs (1)
114private static KeyValuePair<string, object?> Create(string key, object? value) => new KeyValuePair<string, object?>(key, value);
Template\TemplateBinder.cs (6)
184slots[i] = new KeyValuePair<string, object?>(key, value); 318slots[i] = new KeyValuePair<string, object?>(key, ambientValue); 331slots[i] = new KeyValuePair<string, object?>(key, ambientValue); 343slots[i] = new KeyValuePair<string, object?>(key, defaultValue); 726slots[i] = new KeyValuePair<string, object?>(pattern.Parameters[i].Name, null); 731slots[i + pattern.Parameters.Count] = new KeyValuePair<string, object?>(filters[i].Key, null);
Microsoft.AspNetCore.Routing.FunctionalTests (52)
MinimalFormTests.cs (52)
57new KeyValuePair<string,string>("__RequestVerificationToken", tokens.RequestToken), 58new KeyValuePair<string,string>("name", "Test task"), 59new KeyValuePair<string,string>("isComplete", "false"), 60new KeyValuePair<string,string>("dueDate", DateTime.Today.AddDays(1).ToString(CultureInfo.InvariantCulture)), 117new KeyValuePair<string,string>("__RequestVerificationToken", tokens.RequestToken), 118new KeyValuePair<string,string>("name", "Test task"), 119new KeyValuePair<string,string>("isComplete", "false"), 120new KeyValuePair<string,string>("dueDate", DateTime.Today.AddDays(1).ToString(CultureInfo.InvariantCulture)), 163new KeyValuePair<string,string>("name", "Test task"), 164new KeyValuePair<string,string>("isComplete", "false"), 165new KeyValuePair<string,string>("dueDate", DateTime.Today.AddDays(1).ToString(CultureInfo.InvariantCulture)), 202new KeyValuePair<string,string>("name", "Test task"), 203new KeyValuePair<string,string>("isComplete", "false"), 204new KeyValuePair<string,string>("dueDate", DateTime.Today.AddDays(1).ToString(CultureInfo.InvariantCulture)), 279new KeyValuePair<string,string>("name", "Test task"), 280new KeyValuePair<string,string>("isComplete", "false"), 281new KeyValuePair<string,string>("dueDate", DateTime.Today.AddDays(1).ToString(CultureInfo.InvariantCulture)), 326new KeyValuePair<string,string>("name", "Test task"), 327new KeyValuePair<string,string>("isComplete", "false"), 328new KeyValuePair<string,string>("dueDate", DateTime.Today.AddDays(1).ToString(CultureInfo.InvariantCulture)), 422new KeyValuePair<string,string>("name", "Test task"), 423new KeyValuePair<string,string>("isComplete", "false"), 424new KeyValuePair<string,string>("dueDate", DateTime.Today.AddDays(1).ToString(CultureInfo.InvariantCulture)), 478new KeyValuePair<string,string>("__RequestVerificationToken", tokens.RequestToken), 479new KeyValuePair<string,string>("name", "Test task"), 480new KeyValuePair<string,string>("isComplete", "false"), 481new KeyValuePair<string,string>("dueDate", DateTime.Today.AddDays(1).ToString(CultureInfo.InvariantCulture)), 537new KeyValuePair<string,string>("__RequestVerificationToken", tokens.RequestToken), 538new KeyValuePair<string,string>("[name]", "Test task"), 539new KeyValuePair<string,string>("[name1]", "Test task"), 540new KeyValuePair<string,string>("[isComplete]", "false"), 541new KeyValuePair<string,string>("[isComplete1]", "false"), 542new KeyValuePair<string,string>("[dueDate]", DateTime.Today.AddDays(1).ToString(CultureInfo.InvariantCulture)), 543new KeyValuePair<string,string>("[dueDate1]", DateTime.Today.AddDays(1).ToString(CultureInfo.InvariantCulture)), 589new KeyValuePair<string,string>("__RequestVerificationToken", tokens.RequestToken), 590new KeyValuePair<string,string>("[name]", "Test task"), 591new KeyValuePair<string,string>("[name1]", "Test task"), 592new KeyValuePair<string,string>("[isComplete]", "false"), 593new KeyValuePair<string,string>("[isComplete1]", "false"), 594new KeyValuePair<string,string>("[dueDate]", DateTime.Today.AddDays(1).ToString(CultureInfo.InvariantCulture)), 595new KeyValuePair<string,string>("[dueDate1]", DateTime.Today.AddDays(1).ToString(CultureInfo.InvariantCulture)), 641new KeyValuePair<string,string>("__RequestVerificationToken", tokens.RequestToken), 642new KeyValuePair<string,string>("[name]", "Test task"), 643new KeyValuePair<string,string>("[name1]", "Test task"), 644new KeyValuePair<string,string>("[isComplete]", "false"), 645new KeyValuePair<string,string>("[isComplete1]", "false"), 646new KeyValuePair<string,string>("[dueDate]", DateTime.Today.AddDays(1).ToString(CultureInfo.InvariantCulture)), 647new KeyValuePair<string,string>("[dueDate1]", DateTime.Today.AddDays(1).ToString(CultureInfo.InvariantCulture)), 690new KeyValuePair<string,string>("__RequestVerificationToken", tokens.RequestToken), 691new KeyValuePair<string,string>("name", "Test task"), 692new KeyValuePair<string,string>("isComplete", "false"), 693new KeyValuePair<string,string>("dueDate", DateTime.Today.AddDays(1).ToString(CultureInfo.InvariantCulture)),
Microsoft.AspNetCore.Routing.Tests (39)
Matching\DfaMatcherBuilderTest.cs (12)
3249s => Assert.Equal(new KeyValuePair<string, object>("a", "aa"), s), 3250s => Assert.Equal(new KeyValuePair<string, object>("b", "bb"), s), 3251s => Assert.Equal(new KeyValuePair<string, object>("c", "cc"), s)); 3281s => Assert.Equal(new KeyValuePair<string, object>("c", "cc"), s), 3282s => Assert.Equal(new KeyValuePair<string, object>(null, null), s), 3283s => Assert.Equal(new KeyValuePair<string, object>(null, null), s)); 3311s => Assert.Equal(new KeyValuePair<string, object>("a", "aa"), s), 3312s => Assert.Equal(new KeyValuePair<string, object>("d", "dd"), s), 3313s => Assert.Equal(new KeyValuePair<string, object>("c", "cc"), s), 3314s => Assert.Equal(new KeyValuePair<string, object>(null, null), s)); 3344s => Assert.Equal(new KeyValuePair<string, object>("b", "bb"), s), 3345s => Assert.Equal(new KeyValuePair<string, object>(null, null), s));
Matching\MatcherAssert.cs (1)
51var zipped = keys.Zip(values, (k, v) => new KeyValuePair<string, object>(k, v));
Patterns\DefaultRoutePatternTransformerTest.cs (26)
39kvp => Assert.Equal(new KeyValuePair<string, object>("a", null), kvp), 40kvp => Assert.Equal(new KeyValuePair<string, object>("b", string.Empty), kvp)); 80kvp => Assert.Equal(new KeyValuePair<string, object>("action", "Index"), kvp), 81kvp => Assert.Equal(new KeyValuePair<string, object>("controller", "Home"), kvp)); // default is preserved 85kvp => Assert.Equal(new KeyValuePair<string, object>("controller", RoutePattern.RequiredValueAny), kvp)); 144kvp => Assert.Equal(new KeyValuePair<string, object>("action", "Index"), kvp), 145kvp => Assert.Equal(new KeyValuePair<string, object>("controller", "Home"), kvp)); 166kvp => Assert.Equal(new KeyValuePair<string, object>("action", "Index"), kvp), 167kvp => Assert.Equal(new KeyValuePair<string, object>("controller", "Home"), kvp)); 193kvp => Assert.Equal(new KeyValuePair<string, object>("action", "Index"), kvp), 194kvp => Assert.Equal(new KeyValuePair<string, object>("area", "Admin"), kvp), 195kvp => Assert.Equal(new KeyValuePair<string, object>("controller", "Home"), kvp)); 203Assert.Equal(new KeyValuePair<string, object>("area", "Admin"), Assert.Single(actual.Defaults)); 228kvp => Assert.Equal(new KeyValuePair<string, object>("action", "Index"), kvp), 229kvp => Assert.Equal(new KeyValuePair<string, object>("controller", "Home"), kvp)); 269kvp => Assert.Equal(new KeyValuePair<string, object>("action", "Index"), kvp), 270kvp => Assert.Equal(new KeyValuePair<string, object>("controller", "Home"), kvp)); 310kvp => Assert.Equal(new KeyValuePair<string, object>("action", null), kvp), 311kvp => Assert.Equal(new KeyValuePair<string, object>("controller", ""), kvp)); 332kvp => Assert.Equal(new KeyValuePair<string, object>("action", "Index"), kvp), 333kvp => Assert.Equal(new KeyValuePair<string, object>("controller", "Home"), kvp)); 354kvp => Assert.Equal(new KeyValuePair<string, object>("action", "Index"), kvp), 355kvp => Assert.Equal(new KeyValuePair<string, object>("controller", "Home"), kvp)); 376kvp => Assert.Equal(new KeyValuePair<string, object>("action", "Index"), kvp), 377kvp => Assert.Equal(new KeyValuePair<string, object>("area", "Admin"), kvp), 378kvp => Assert.Equal(new KeyValuePair<string, object>("controller", "Home"), kvp));
Microsoft.AspNetCore.Server.HttpSys (43)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
300public KeyValuePair<string, string>[] Items => _collection.Select(pair => new KeyValuePair<string, string>(pair.Key, pair.Value.ToString())).ToArray();
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (41)
2539yield return new KeyValuePair<string, StringValues>(HeaderNames.Accept, Accept); 2543yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptCharset, AcceptCharset); 2547yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, AcceptEncoding); 2551yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, AcceptLanguage); 2555yield return new KeyValuePair<string, StringValues>(HeaderNames.Allow, Allow); 2559yield return new KeyValuePair<string, StringValues>(HeaderNames.Authorization, Authorization); 2563yield return new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, CacheControl); 2567yield return new KeyValuePair<string, StringValues>(HeaderNames.Connection, Connection); 2571yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, ContentEncoding); 2575yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLanguage, ContentLanguage); 2579yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, ContentLength); 2583yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLocation, ContentLocation); 2587yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentMD5, ContentMD5); 2591yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentRange, ContentRange); 2595yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentType, ContentType); 2599yield return new KeyValuePair<string, StringValues>(HeaderNames.Cookie, Cookie); 2603yield return new KeyValuePair<string, StringValues>(HeaderNames.Date, Date); 2607yield return new KeyValuePair<string, StringValues>(HeaderNames.Expect, Expect); 2611yield return new KeyValuePair<string, StringValues>(HeaderNames.Expires, Expires); 2615yield return new KeyValuePair<string, StringValues>(HeaderNames.From, From); 2619yield return new KeyValuePair<string, StringValues>(HeaderNames.Host, Host); 2623yield return new KeyValuePair<string, StringValues>(HeaderNames.IfMatch, IfMatch); 2627yield return new KeyValuePair<string, StringValues>(HeaderNames.IfModifiedSince, IfModifiedSince); 2631yield return new KeyValuePair<string, StringValues>(HeaderNames.IfNoneMatch, IfNoneMatch); 2635yield return new KeyValuePair<string, StringValues>(HeaderNames.IfRange, IfRange); 2639yield return new KeyValuePair<string, StringValues>(HeaderNames.IfUnmodifiedSince, IfUnmodifiedSince); 2643yield return new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, KeepAlive); 2647yield return new KeyValuePair<string, StringValues>(HeaderNames.LastModified, LastModified); 2651yield return new KeyValuePair<string, StringValues>(HeaderNames.MaxForwards, MaxForwards); 2655yield return new KeyValuePair<string, StringValues>(HeaderNames.Pragma, Pragma); 2659yield return new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthorization, ProxyAuthorization); 2663yield return new KeyValuePair<string, StringValues>(HeaderNames.Range, Range); 2667yield return new KeyValuePair<string, StringValues>(HeaderNames.Referer, Referer); 2671yield return new KeyValuePair<string, StringValues>(HeaderNames.TE, TE); 2675yield return new KeyValuePair<string, StringValues>(HeaderNames.Trailer, Trailer); 2679yield return new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, TransferEncoding); 2683yield return new KeyValuePair<string, StringValues>(HeaderNames.Translate, Translate); 2687yield return new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, Upgrade); 2691yield return new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, UserAgent); 2695yield return new KeyValuePair<string, StringValues>(HeaderNames.Via, Via); 2699yield return new KeyValuePair<string, StringValues>(HeaderNames.Warning, Warning);
StandardFeatureCollection.cs (1)
101yield return new KeyValuePair<Type, object>(featureFunc.Key, feature);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (71)
Http2Tests.cs (17)
84new KeyValuePair<string, string>(InternalHeaderNames.Method, method), 85new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 86new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 87new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 134new KeyValuePair<string, string>(InternalHeaderNames.Method, method), 135new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 136new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 137new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 184new KeyValuePair<string, string>(InternalHeaderNames.Method, method), 185new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 186new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 187new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 188new KeyValuePair<string, string>(HeaderNames.ContentLength, "11"), 249new KeyValuePair<string, string>(InternalHeaderNames.Method, method), 250new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 251new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 252new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"),
Listener\ResponseHeaderTests.cs (2)
322var kvp = new KeyValuePair<string, StringValues>(key, value); 328var kvp = new KeyValuePair<string, StringValues>(key, value);
src\Shared\Http2cat\Http2Utilities.cs (52)
38new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 39new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 40new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 41new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:443"), 42new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 43new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 44new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 45new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 46new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 51new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 52new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 53new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "http"), 54new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 55new KeyValuePair<string, string>("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"), 56new KeyValuePair<string, string>("accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"), 57new KeyValuePair<string, string>("accept-language", "en-US,en;q=0.5"), 58new KeyValuePair<string, string>("accept-encoding", "gzip, deflate, br"), 59new KeyValuePair<string, string>("upgrade-insecure-requests", "1"), 64new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 65new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 66new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 67new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 72new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 73new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 74new KeyValuePair<string, string>(InternalHeaderNames.Authority, "127.0.0.1"), 75new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 76new KeyValuePair<string, string>("expect", "100-continue"), 81new KeyValuePair<string, string>("trailer-one", "1"), 82new KeyValuePair<string, string>("trailer-two", "2"), 87new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 88new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 89new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 90new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 91new KeyValuePair<string, string>("a", FourKHeaderValue), 92new KeyValuePair<string, string>("b", FourKHeaderValue), 93new KeyValuePair<string, string>("c", FourKHeaderValue), 94new KeyValuePair<string, string>("d", FourKHeaderValue) 99new KeyValuePair<string, string>(InternalHeaderNames.Method, "GET"), 100new KeyValuePair<string, string>(InternalHeaderNames.Path, "/"), 101new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 102new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"), 103new KeyValuePair<string, string>("a", FourKHeaderValue), 104new KeyValuePair<string, string>("b", FourKHeaderValue), 105new KeyValuePair<string, string>("c", FourKHeaderValue), 106new KeyValuePair<string, string>("d", FourKHeaderValue), 107new KeyValuePair<string, string>("e", FourKHeaderValue), 108new KeyValuePair<string, string>("f", FourKHeaderValue), 109new KeyValuePair<string, string>("g", FourKHeaderValue), 114new KeyValuePair<string, string>(InternalHeaderNames.Method, "POST"), 115new KeyValuePair<string, string>(InternalHeaderNames.Path, "/" + expectedBytes), 116new KeyValuePair<string, string>(InternalHeaderNames.Scheme, "https"), 117new KeyValuePair<string, string>(InternalHeaderNames.Authority, "localhost:80"),
Microsoft.AspNetCore.Server.IIS (70)
Core\IISHttpContext.cs (2)
686_onStarting.Push(new KeyValuePair<Func<object, Task>, object>(callback, state)); 698_onCompleted.Push(new KeyValuePair<Func<object, Task>, object>(callback, state));
Core\IISHttpContext.FeatureCollection.cs (2)
100MaybeExtra[i] = new KeyValuePair<Type, object>(key, value); 104MaybeExtra.Add(new KeyValuePair<Type, object>(key, value));
Core\IISHttpContext.Features.cs (24)
357yield return new KeyValuePair<Type, object>(IHttpRequestFeatureType, _currentIHttpRequestFeature); 361yield return new KeyValuePair<Type, object>(IHttpRequestBodyDetectionFeature, _currentIHttpRequestBodyDetectionFeature); 365yield return new KeyValuePair<Type, object>(IHttpResponseFeatureType, _currentIHttpResponseFeature); 369yield return new KeyValuePair<Type, object>(IHttpResponseBodyFeatureType, _currentIHttpResponseBodyFeature); 373yield return new KeyValuePair<Type, object>(IHttpRequestIdentifierFeatureType, _currentIHttpRequestIdentifierFeature); 377yield return new KeyValuePair<Type, object>(IServiceProvidersFeatureType, _currentIServiceProvidersFeature); 381yield return new KeyValuePair<Type, object>(IHttpRequestLifetimeFeatureType, _currentIHttpRequestLifetimeFeature); 385yield return new KeyValuePair<Type, object>(IHttpConnectionFeatureType, _currentIHttpConnectionFeature); 389yield return new KeyValuePair<Type, object>(IHttpAuthenticationFeatureType, _currentIHttpAuthenticationFeature); 393yield return new KeyValuePair<Type, object>(IQueryFeatureType, _currentIQueryFeature); 397yield return new KeyValuePair<Type, object>(IFormFeatureType, _currentIFormFeature); 401yield return new KeyValuePair<Type, object>(IHttpUpgradeFeatureType, _currentIHttpUpgradeFeature); 405yield return new KeyValuePair<Type, object>(IResponseCookiesFeatureType, _currentIResponseCookiesFeature); 409yield return new KeyValuePair<Type, object>(IItemsFeatureType, _currentIItemsFeature); 413yield return new KeyValuePair<Type, object>(ITlsConnectionFeatureType, _currentITlsConnectionFeature); 417yield return new KeyValuePair<Type, object>(ITlsHandshakeFeatureType, _currentITlsHandshakeFeature); 421yield return new KeyValuePair<Type, object>(IHttpWebSocketFeatureType, _currentIHttpWebSocketFeature); 425yield return new KeyValuePair<Type, object>(ISessionFeatureType, _currentISessionFeature); 429yield return new KeyValuePair<Type, object>(IHttpBodyControlFeatureType, _currentIHttpBodyControlFeature); 433yield return new KeyValuePair<Type, object>(IServerVariablesFeature, _currentIServerVariablesFeature); 437yield return new KeyValuePair<Type, object>(IHttpMaxRequestBodySizeFeature, _currentIHttpMaxRequestBodySizeFeature); 441yield return new KeyValuePair<Type, object>(IHttpResponseTrailersFeature, _currentIHttpResponseTrailersFeature); 445yield return new KeyValuePair<Type, object>(IHttpResponseTrailersFeature, _currentIHttpResetFeature); 449yield return new KeyValuePair<Type, object>(IHttpActivityFeature, _currentIHttpActivityFeature);
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
300public KeyValuePair<string, string>[] Items => _collection.Select(pair => new KeyValuePair<string, string>(pair.Key, pair.Value.ToString())).ToArray();
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (41)
2539yield return new KeyValuePair<string, StringValues>(HeaderNames.Accept, Accept); 2543yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptCharset, AcceptCharset); 2547yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, AcceptEncoding); 2551yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, AcceptLanguage); 2555yield return new KeyValuePair<string, StringValues>(HeaderNames.Allow, Allow); 2559yield return new KeyValuePair<string, StringValues>(HeaderNames.Authorization, Authorization); 2563yield return new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, CacheControl); 2567yield return new KeyValuePair<string, StringValues>(HeaderNames.Connection, Connection); 2571yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, ContentEncoding); 2575yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLanguage, ContentLanguage); 2579yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, ContentLength); 2583yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLocation, ContentLocation); 2587yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentMD5, ContentMD5); 2591yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentRange, ContentRange); 2595yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentType, ContentType); 2599yield return new KeyValuePair<string, StringValues>(HeaderNames.Cookie, Cookie); 2603yield return new KeyValuePair<string, StringValues>(HeaderNames.Date, Date); 2607yield return new KeyValuePair<string, StringValues>(HeaderNames.Expect, Expect); 2611yield return new KeyValuePair<string, StringValues>(HeaderNames.Expires, Expires); 2615yield return new KeyValuePair<string, StringValues>(HeaderNames.From, From); 2619yield return new KeyValuePair<string, StringValues>(HeaderNames.Host, Host); 2623yield return new KeyValuePair<string, StringValues>(HeaderNames.IfMatch, IfMatch); 2627yield return new KeyValuePair<string, StringValues>(HeaderNames.IfModifiedSince, IfModifiedSince); 2631yield return new KeyValuePair<string, StringValues>(HeaderNames.IfNoneMatch, IfNoneMatch); 2635yield return new KeyValuePair<string, StringValues>(HeaderNames.IfRange, IfRange); 2639yield return new KeyValuePair<string, StringValues>(HeaderNames.IfUnmodifiedSince, IfUnmodifiedSince); 2643yield return new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, KeepAlive); 2647yield return new KeyValuePair<string, StringValues>(HeaderNames.LastModified, LastModified); 2651yield return new KeyValuePair<string, StringValues>(HeaderNames.MaxForwards, MaxForwards); 2655yield return new KeyValuePair<string, StringValues>(HeaderNames.Pragma, Pragma); 2659yield return new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthorization, ProxyAuthorization); 2663yield return new KeyValuePair<string, StringValues>(HeaderNames.Range, Range); 2667yield return new KeyValuePair<string, StringValues>(HeaderNames.Referer, Referer); 2671yield return new KeyValuePair<string, StringValues>(HeaderNames.TE, TE); 2675yield return new KeyValuePair<string, StringValues>(HeaderNames.Trailer, Trailer); 2679yield return new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, TransferEncoding); 2683yield return new KeyValuePair<string, StringValues>(HeaderNames.Translate, Translate); 2687yield return new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, Upgrade); 2691yield return new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, UserAgent); 2695yield return new KeyValuePair<string, StringValues>(HeaderNames.Via, Via); 2699yield return new KeyValuePair<string, StringValues>(HeaderNames.Warning, Warning);
Microsoft.AspNetCore.Server.Kestrel.Core (239)
Internal\ConnectionLogScope.cs (1)
26return new KeyValuePair<string, object>("ConnectionId", _connectionId);
Internal\Http\HttpHeaders.Generated.cs (185)
7028array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Accept, _headers._Accept); 7037array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Connection, _headers._Connection); 7046array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Host, _headers._Host); 7055array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, _headers._UserAgent); 7064array[arrayIndex] = new KeyValuePair<string, StringValues>(InternalHeaderNames.Authority, _headers._Authority); 7073array[arrayIndex] = new KeyValuePair<string, StringValues>(InternalHeaderNames.Method, _headers._Method); 7082array[arrayIndex] = new KeyValuePair<string, StringValues>(InternalHeaderNames.Path, _headers._Path); 7091array[arrayIndex] = new KeyValuePair<string, StringValues>(InternalHeaderNames.Protocol, _headers._Protocol); 7100array[arrayIndex] = new KeyValuePair<string, StringValues>(InternalHeaderNames.Scheme, _headers._Scheme); 7109array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AcceptCharset, _headers._AcceptCharset); 7118array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, _headers._AcceptEncoding); 7127array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, _headers._AcceptLanguage); 7136array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlRequestHeaders, _headers._AccessControlRequestHeaders); 7145array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlRequestMethod, _headers._AccessControlRequestMethod); 7154array[arrayIndex] = new KeyValuePair<string, StringValues>(InternalHeaderNames.AltUsed, _headers._AltUsed); 7163array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Authorization, _headers._Authorization); 7172array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Baggage, _headers._Baggage); 7181array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, _headers._CacheControl); 7190array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentType, _headers._ContentType); 7199array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Cookie, _headers._Cookie); 7208array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.CorrelationContext, _headers._CorrelationContext); 7217array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Date, _headers._Date); 7226array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Expect, _headers._Expect); 7235array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.From, _headers._From); 7244array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcAcceptEncoding, _headers._GrpcAcceptEncoding); 7253array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcEncoding, _headers._GrpcEncoding); 7262array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcTimeout, _headers._GrpcTimeout); 7271array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.IfMatch, _headers._IfMatch); 7280array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.IfModifiedSince, _headers._IfModifiedSince); 7289array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.IfNoneMatch, _headers._IfNoneMatch); 7298array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.IfRange, _headers._IfRange); 7307array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.IfUnmodifiedSince, _headers._IfUnmodifiedSince); 7316array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, _headers._KeepAlive); 7325array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.MaxForwards, _headers._MaxForwards); 7334array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Origin, _headers._Origin); 7343array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Pragma, _headers._Pragma); 7352array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthorization, _headers._ProxyAuthorization); 7361array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Range, _headers._Range); 7370array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Referer, _headers._Referer); 7379array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.RequestId, _headers._RequestId); 7388array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.TE, _headers._TE); 7397array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.TraceParent, _headers._TraceParent); 7406array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.TraceState, _headers._TraceState); 7415array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, _headers._TransferEncoding); 7424array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Translate, _headers._Translate); 7433array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, _headers._Upgrade); 7442array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.UpgradeInsecureRequests, _headers._UpgradeInsecureRequests); 7451array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Via, _headers._Via); 7460array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Warning, _headers._Warning); 7469array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value)); 8404_current = new KeyValuePair<string, StringValues>(HeaderNames.Accept, _collection._headers._Accept); 8409_current = new KeyValuePair<string, StringValues>(HeaderNames.Connection, _collection._headers._Connection); 8414_current = new KeyValuePair<string, StringValues>(HeaderNames.Host, _collection._headers._Host); 8419_current = new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, _collection._headers._UserAgent); 8424_current = new KeyValuePair<string, StringValues>(InternalHeaderNames.Authority, _collection._headers._Authority); 8429_current = new KeyValuePair<string, StringValues>(InternalHeaderNames.Method, _collection._headers._Method); 8434_current = new KeyValuePair<string, StringValues>(InternalHeaderNames.Path, _collection._headers._Path); 8439_current = new KeyValuePair<string, StringValues>(InternalHeaderNames.Protocol, _collection._headers._Protocol); 8444_current = new KeyValuePair<string, StringValues>(InternalHeaderNames.Scheme, _collection._headers._Scheme); 8449_current = new KeyValuePair<string, StringValues>(HeaderNames.AcceptCharset, _collection._headers._AcceptCharset); 8454_current = new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, _collection._headers._AcceptEncoding); 8459_current = new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, _collection._headers._AcceptLanguage); 8464_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlRequestHeaders, _collection._headers._AccessControlRequestHeaders); 8469_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlRequestMethod, _collection._headers._AccessControlRequestMethod); 8474_current = new KeyValuePair<string, StringValues>(InternalHeaderNames.AltUsed, _collection._headers._AltUsed); 8479_current = new KeyValuePair<string, StringValues>(HeaderNames.Authorization, _collection._headers._Authorization); 8484_current = new KeyValuePair<string, StringValues>(HeaderNames.Baggage, _collection._headers._Baggage); 8489_current = new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, _collection._headers._CacheControl); 8494_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentType, _collection._headers._ContentType); 8499_current = new KeyValuePair<string, StringValues>(HeaderNames.Cookie, _collection._headers._Cookie); 8504_current = new KeyValuePair<string, StringValues>(HeaderNames.CorrelationContext, _collection._headers._CorrelationContext); 8509_current = new KeyValuePair<string, StringValues>(HeaderNames.Date, _collection._headers._Date); 8514_current = new KeyValuePair<string, StringValues>(HeaderNames.Expect, _collection._headers._Expect); 8519_current = new KeyValuePair<string, StringValues>(HeaderNames.From, _collection._headers._From); 8524_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcAcceptEncoding, _collection._headers._GrpcAcceptEncoding); 8529_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcEncoding, _collection._headers._GrpcEncoding); 8534_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcTimeout, _collection._headers._GrpcTimeout); 8539_current = new KeyValuePair<string, StringValues>(HeaderNames.IfMatch, _collection._headers._IfMatch); 8544_current = new KeyValuePair<string, StringValues>(HeaderNames.IfModifiedSince, _collection._headers._IfModifiedSince); 8549_current = new KeyValuePair<string, StringValues>(HeaderNames.IfNoneMatch, _collection._headers._IfNoneMatch); 8554_current = new KeyValuePair<string, StringValues>(HeaderNames.IfRange, _collection._headers._IfRange); 8559_current = new KeyValuePair<string, StringValues>(HeaderNames.IfUnmodifiedSince, _collection._headers._IfUnmodifiedSince); 8564_current = new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, _collection._headers._KeepAlive); 8569_current = new KeyValuePair<string, StringValues>(HeaderNames.MaxForwards, _collection._headers._MaxForwards); 8574_current = new KeyValuePair<string, StringValues>(HeaderNames.Origin, _collection._headers._Origin); 8579_current = new KeyValuePair<string, StringValues>(HeaderNames.Pragma, _collection._headers._Pragma); 8584_current = new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthorization, _collection._headers._ProxyAuthorization); 8589_current = new KeyValuePair<string, StringValues>(HeaderNames.Range, _collection._headers._Range); 8594_current = new KeyValuePair<string, StringValues>(HeaderNames.Referer, _collection._headers._Referer); 8599_current = new KeyValuePair<string, StringValues>(HeaderNames.RequestId, _collection._headers._RequestId); 8604_current = new KeyValuePair<string, StringValues>(HeaderNames.TE, _collection._headers._TE); 8609_current = new KeyValuePair<string, StringValues>(HeaderNames.TraceParent, _collection._headers._TraceParent); 8614_current = new KeyValuePair<string, StringValues>(HeaderNames.TraceState, _collection._headers._TraceState); 8619_current = new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, _collection._headers._TransferEncoding); 8624_current = new KeyValuePair<string, StringValues>(HeaderNames.Translate, _collection._headers._Translate); 8629_current = new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, _collection._headers._Upgrade); 8634_current = new KeyValuePair<string, StringValues>(HeaderNames.UpgradeInsecureRequests, _collection._headers._UpgradeInsecureRequests); 8639_current = new KeyValuePair<string, StringValues>(HeaderNames.Via, _collection._headers._Via); 8644_current = new KeyValuePair<string, StringValues>(HeaderNames.Warning, _collection._headers._Warning); 8649_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_collection._contentLength.GetValueOrDefault())); 14454array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Connection, _headers._Connection); 14463array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentType, _headers._ContentType); 14472array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Date, _headers._Date); 14481array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Server, _headers._Server); 14490array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AcceptRanges, _headers._AcceptRanges); 14499array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowCredentials, _headers._AccessControlAllowCredentials); 14508array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowHeaders, _headers._AccessControlAllowHeaders); 14517array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowMethods, _headers._AccessControlAllowMethods); 14526array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowOrigin, _headers._AccessControlAllowOrigin); 14535array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlExposeHeaders, _headers._AccessControlExposeHeaders); 14544array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlMaxAge, _headers._AccessControlMaxAge); 14553array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Age, _headers._Age); 14562array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Allow, _headers._Allow); 14571array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AltSvc, _headers._AltSvc); 14580array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, _headers._CacheControl); 14589array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, _headers._ContentEncoding); 14598array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLanguage, _headers._ContentLanguage); 14607array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLocation, _headers._ContentLocation); 14616array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentMD5, _headers._ContentMD5); 14625array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentRange, _headers._ContentRange); 14634array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ETag, _headers._ETag); 14643array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Expires, _headers._Expires); 14652array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcEncoding, _headers._GrpcEncoding); 14661array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, _headers._KeepAlive); 14670array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.LastModified, _headers._LastModified); 14679array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Location, _headers._Location); 14688array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Pragma, _headers._Pragma); 14697array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthenticate, _headers._ProxyAuthenticate); 14706array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ProxyConnection, _headers._ProxyConnection); 14715array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.RetryAfter, _headers._RetryAfter); 14724array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.SetCookie, _headers._SetCookie); 14733array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Trailer, _headers._Trailer); 14742array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, _headers._TransferEncoding); 14751array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, _headers._Upgrade); 14760array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Vary, _headers._Vary); 14769array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Via, _headers._Via); 14778array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Warning, _headers._Warning); 14787array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.WWWAuthenticate, _headers._WWWAuthenticate); 14796array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value)); 15254_current = new KeyValuePair<string, StringValues>(HeaderNames.Connection, _collection._headers._Connection); 15260_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentType, _collection._headers._ContentType); 15266_current = new KeyValuePair<string, StringValues>(HeaderNames.Date, _collection._headers._Date); 15272_current = new KeyValuePair<string, StringValues>(HeaderNames.Server, _collection._headers._Server); 15278_current = new KeyValuePair<string, StringValues>(HeaderNames.AcceptRanges, _collection._headers._AcceptRanges); 15284_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowCredentials, _collection._headers._AccessControlAllowCredentials); 15290_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowHeaders, _collection._headers._AccessControlAllowHeaders); 15296_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowMethods, _collection._headers._AccessControlAllowMethods); 15302_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowOrigin, _collection._headers._AccessControlAllowOrigin); 15308_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlExposeHeaders, _collection._headers._AccessControlExposeHeaders); 15314_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlMaxAge, _collection._headers._AccessControlMaxAge); 15320_current = new KeyValuePair<string, StringValues>(HeaderNames.Age, _collection._headers._Age); 15326_current = new KeyValuePair<string, StringValues>(HeaderNames.Allow, _collection._headers._Allow); 15332_current = new KeyValuePair<string, StringValues>(HeaderNames.AltSvc, _collection._headers._AltSvc); 15338_current = new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, _collection._headers._CacheControl); 15344_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, _collection._headers._ContentEncoding); 15350_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLanguage, _collection._headers._ContentLanguage); 15356_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLocation, _collection._headers._ContentLocation); 15362_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentMD5, _collection._headers._ContentMD5); 15368_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentRange, _collection._headers._ContentRange); 15374_current = new KeyValuePair<string, StringValues>(HeaderNames.ETag, _collection._headers._ETag); 15380_current = new KeyValuePair<string, StringValues>(HeaderNames.Expires, _collection._headers._Expires); 15386_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcEncoding, _collection._headers._GrpcEncoding); 15392_current = new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, _collection._headers._KeepAlive); 15398_current = new KeyValuePair<string, StringValues>(HeaderNames.LastModified, _collection._headers._LastModified); 15404_current = new KeyValuePair<string, StringValues>(HeaderNames.Location, _collection._headers._Location); 15410_current = new KeyValuePair<string, StringValues>(HeaderNames.Pragma, _collection._headers._Pragma); 15416_current = new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthenticate, _collection._headers._ProxyAuthenticate); 15422_current = new KeyValuePair<string, StringValues>(HeaderNames.ProxyConnection, _collection._headers._ProxyConnection); 15428_current = new KeyValuePair<string, StringValues>(HeaderNames.RetryAfter, _collection._headers._RetryAfter); 15434_current = new KeyValuePair<string, StringValues>(HeaderNames.SetCookie, _collection._headers._SetCookie); 15440_current = new KeyValuePair<string, StringValues>(HeaderNames.Trailer, _collection._headers._Trailer); 15446_current = new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, _collection._headers._TransferEncoding); 15452_current = new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, _collection._headers._Upgrade); 15458_current = new KeyValuePair<string, StringValues>(HeaderNames.Vary, _collection._headers._Vary); 15464_current = new KeyValuePair<string, StringValues>(HeaderNames.Via, _collection._headers._Via); 15470_current = new KeyValuePair<string, StringValues>(HeaderNames.Warning, _collection._headers._Warning); 15476_current = new KeyValuePair<string, StringValues>(HeaderNames.WWWAuthenticate, _collection._headers._WWWAuthenticate); 15482_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_collection._contentLength.GetValueOrDefault())); 17537array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ETag, _headers._ETag); 17546array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcMessage, _headers._GrpcMessage); 17555array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcStatus, _headers._GrpcStatus); 17564array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value)); 17590_current = new KeyValuePair<string, StringValues>(HeaderNames.ETag, _collection._headers._ETag); 17596_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcMessage, _collection._headers._GrpcMessage); 17602_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcStatus, _collection._headers._GrpcStatus);
Internal\Http\HttpProtocol.cs (2)
793_onStarting.Push(new KeyValuePair<Func<object, Task>, object>(callback, state)); 802_onCompleted.Push(new KeyValuePair<Func<object, Task>, object>(callback, state));
Internal\Http\HttpProtocol.Generated.cs (37)
175MaybeExtra[i] = new KeyValuePair<Type, object>(key, value); 179MaybeExtra.Add(new KeyValuePair<Type, object>(key, value)); 808yield return new KeyValuePair<Type, object>(typeof(IHttpRequestFeature), _currentIHttpRequestFeature); 812yield return new KeyValuePair<Type, object>(typeof(IHttpResponseFeature), _currentIHttpResponseFeature); 816yield return new KeyValuePair<Type, object>(typeof(IHttpResponseBodyFeature), _currentIHttpResponseBodyFeature); 820yield return new KeyValuePair<Type, object>(typeof(IRouteValuesFeature), _currentIRouteValuesFeature); 824yield return new KeyValuePair<Type, object>(typeof(IEndpointFeature), _currentIEndpointFeature); 828yield return new KeyValuePair<Type, object>(typeof(IServiceProvidersFeature), _currentIServiceProvidersFeature); 832yield return new KeyValuePair<Type, object>(typeof(IHttpActivityFeature), _currentIHttpActivityFeature); 836yield return new KeyValuePair<Type, object>(typeof(IHttpMetricsTagsFeature), _currentIHttpMetricsTagsFeature); 840yield return new KeyValuePair<Type, object>(typeof(IItemsFeature), _currentIItemsFeature); 844yield return new KeyValuePair<Type, object>(typeof(IQueryFeature), _currentIQueryFeature); 848yield return new KeyValuePair<Type, object>(typeof(IRequestBodyPipeFeature), _currentIRequestBodyPipeFeature); 852yield return new KeyValuePair<Type, object>(typeof(IFormFeature), _currentIFormFeature); 856yield return new KeyValuePair<Type, object>(typeof(IHttpAuthenticationFeature), _currentIHttpAuthenticationFeature); 860yield return new KeyValuePair<Type, object>(typeof(IHttpRequestIdentifierFeature), _currentIHttpRequestIdentifierFeature); 864yield return new KeyValuePair<Type, object>(typeof(IHttpConnectionFeature), _currentIHttpConnectionFeature); 868yield return new KeyValuePair<Type, object>(typeof(ISessionFeature), _currentISessionFeature); 872yield return new KeyValuePair<Type, object>(typeof(IResponseCookiesFeature), _currentIResponseCookiesFeature); 876yield return new KeyValuePair<Type, object>(typeof(IHttpRequestTrailersFeature), _currentIHttpRequestTrailersFeature); 880yield return new KeyValuePair<Type, object>(typeof(IHttpResponseTrailersFeature), _currentIHttpResponseTrailersFeature); 884yield return new KeyValuePair<Type, object>(typeof(ITlsConnectionFeature), _currentITlsConnectionFeature); 888yield return new KeyValuePair<Type, object>(typeof(IHttpExtendedConnectFeature), _currentIHttpExtendedConnectFeature); 892yield return new KeyValuePair<Type, object>(typeof(IHttpUpgradeFeature), _currentIHttpUpgradeFeature); 896yield return new KeyValuePair<Type, object>(typeof(IHttpWebSocketFeature), _currentIHttpWebSocketFeature); 900yield return new KeyValuePair<Type, object>(typeof(IHttpWebTransportFeature), _currentIHttpWebTransportFeature); 904yield return new KeyValuePair<Type, object>(typeof(IBadRequestExceptionFeature), _currentIBadRequestExceptionFeature); 908yield return new KeyValuePair<Type, object>(typeof(IHttpRequestTimeoutFeature), _currentIHttpRequestTimeoutFeature); 912yield return new KeyValuePair<Type, object>(typeof(IHttp2StreamIdFeature), _currentIHttp2StreamIdFeature); 916yield return new KeyValuePair<Type, object>(typeof(IHttpRequestLifetimeFeature), _currentIHttpRequestLifetimeFeature); 920yield return new KeyValuePair<Type, object>(typeof(IHttpMaxRequestBodySizeFeature), _currentIHttpMaxRequestBodySizeFeature); 924yield return new KeyValuePair<Type, object>(typeof(IHttpMinRequestBodyDataRateFeature), _currentIHttpMinRequestBodyDataRateFeature); 928yield return new KeyValuePair<Type, object>(typeof(IHttpMinResponseDataRateFeature), _currentIHttpMinResponseDataRateFeature); 932yield return new KeyValuePair<Type, object>(typeof(IHttpBodyControlFeature), _currentIHttpBodyControlFeature); 936yield return new KeyValuePair<Type, object>(typeof(IHttpRequestBodyDetectionFeature), _currentIHttpRequestBodyDetectionFeature); 940yield return new KeyValuePair<Type, object>(typeof(IHttpResetFeature), _currentIHttpResetFeature); 944yield return new KeyValuePair<Type, object>(typeof(IPersistentStateFeature), _currentIPersistentStateFeature);
Internal\Http3\Http3HeadersEnumerator.cs (2)
102Current = result ? new KeyValuePair<string, string>(key, _stringValuesEnumerator.Current!) : default; 112Current = new KeyValuePair<string, string>(name, value.ToString());
Internal\HttpConnection.cs (2)
140metricsTags.Tags.Add(new KeyValuePair<string, object?>("network.protocol.name", "http")); 141metricsTags.Tags.Add(new KeyValuePair<string, object?>("network.protocol.version", httpVersion));
Internal\Infrastructure\KestrelConnection.cs (1)
86_onCompleted.Push(new KeyValuePair<Func<object, Task>, object>(callback, state));
Middleware\HttpMultiplexedConnectionMiddleware.cs (1)
50metricsTags.Tags.Add(new KeyValuePair<string, object?>("tls.protocol.version", "1.3"));
Middleware\HttpsConnectionMiddleware.cs (2)
212metricsTagsFeature.Tags.Add(new KeyValuePair<string, object?>("tls.protocol.name", protocolName)); 214metricsTagsFeature.Tags.Add(new KeyValuePair<string, object?>("tls.protocol.version", protocolVersion));
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (2)
141Current = result ? new KeyValuePair<string, string>(key, _stringValuesEnumerator.Current!) : default; 151Current = new KeyValuePair<string, string>(name, value.ToString());
src\Shared\Metrics\MetricsExtensions.cs (4)
43list[i] = new KeyValuePair<string, object?>(name, value); 55tags.Add(new KeyValuePair<string, object?>(name, value)); 87tags.Add(new KeyValuePair<string, object?>(name, value)); 101tags.Add(new KeyValuePair<string, object?>(name, value));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (56)
Http2\Http2HPackEncoderTests.cs (8)
402new KeyValuePair<string, string>("CustomHeader", "CustomValue"), 420new KeyValuePair<string, string>("CustomHeader!#$%&'*+-.^_`|~", "CustomValue"), 442new KeyValuePair<string, string>("date", "Mon, 24 Jul 2017 19:22:30 GMT"), 443new KeyValuePair<string, string>("content-type", "text/html; charset=utf-8"), 444new KeyValuePair<string, string>("server", "Kestrel") 500new KeyValuePair<string, string>("date", "Mon, 24 Jul 2017 19:22:30 GMT"), 501new KeyValuePair<string, string>("content-type", "text/html; charset=utf-8"), 502new KeyValuePair<string, string>("server", "Kestrel")
HttpRequestHeadersTests.cs (12)
185new KeyValuePair<string, StringValues>("Host", v1), 186new KeyValuePair<string, StringValues>("Content-Length", v2), 187new KeyValuePair<string, StringValues>("custom", v3), 203new KeyValuePair<string, StringValues>("Host", v1), 204new KeyValuePair<string, StringValues>("Content-Length", v2), 205new KeyValuePair<string, StringValues>("custom", v3), 234var kv1 = new KeyValuePair<string, StringValues>("host", new[] { "localhost" }); 235var kv2 = new KeyValuePair<string, StringValues>("custom", new[] { "value" }); 236var kv3 = new KeyValuePair<string, StringValues>("Content-Length", new[] { "0" }); 237var kv1b = new KeyValuePair<string, StringValues>("host", new[] { "not-localhost" }); 238var kv2b = new KeyValuePair<string, StringValues>("custom", new[] { "not-value" }); 239var kv3b = new KeyValuePair<string, StringValues>("Content-Length", new[] { "1" });
HttpResponseHeadersTests.cs (6)
127var kvp = new KeyValuePair<string, StringValues>(key, value); 133var kvp = new KeyValuePair<string, StringValues>(key, value); 221var kvp = new KeyValuePair<string, StringValues>("Unknown", value); 227var kvp = new KeyValuePair<string, StringValues>("Unknown", value); 253var kvp = new KeyValuePair<string, StringValues>("Unknown", value); 257kvp = new KeyValuePair<string, StringValues>("Unknown", value);
KestrelServerTests.cs (11)
758new KeyValuePair<string, string>("Endpoints:A:Url", "http://*:5000"), 759new KeyValuePair<string, string>("Endpoints:B:Url", "http://*:5001"), 841new KeyValuePair<string, string>("Endpoints:A:Url", "http://*:5000"), 842new KeyValuePair<string, string>("Endpoints:B:Url", "http://*:5002"), 843new KeyValuePair<string, string>("Endpoints:C:Url", "http://*:5003"), 869new KeyValuePair<string, string>("Endpoints:A:Url", "http://*:5000"), 870new KeyValuePair<string, string>("Endpoints:B:Url", "http://*:5002"), 871new KeyValuePair<string, string>("Endpoints:C:Url", "http://*:5003"), 872new KeyValuePair<string, string>("Endpoints:C:Protocols", "Http1"), 917new KeyValuePair<string, string>("Endpoints:A:Url", "http://*:5000"), 918new KeyValuePair<string, string>("Endpoints:B:Url", "http://*:5001"),
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (2)
141Current = result ? new KeyValuePair<string, string>(key, _stringValuesEnumerator.Current!) : default; 151Current = new KeyValuePair<string, string>(name, value.ToString());
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (2)
977DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(entry.Name), Encoding.ASCII.GetString(entry.Value)); 984DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(name), Encoding.ASCII.GetString(value));
src\Shared\test\Shared.Tests\runtime\Http3\QPackDecoderTest.cs (15)
115new KeyValuePair<string, string>(":method", "GET"), 116new KeyValuePair<string, string>(":scheme", "https"), 117new KeyValuePair<string, string>(":authority", "127.0.0.1:5001"), 118new KeyValuePair<string, string>(":path", "/"), 119new KeyValuePair<string, string>("alt-used", "127.0.0.1:5001"), 132new KeyValuePair<string, string>(":method", "GET"), 133new KeyValuePair<string, string>(":scheme", "http"), 134new KeyValuePair<string, string>(":authority", ""), 135new KeyValuePair<string, string>(":path", "/"), 175new KeyValuePair<string, string>(":method", new string('A', 8192 / 2)), 176new KeyValuePair<string, string>(":path", new string('A', 8192 / 2)), 177new KeyValuePair<string, string>(":scheme", "http") 302KeyValuePair<string, string>[] expectedValues = new[] { new KeyValuePair<string, string>(expectedHeaderName, expectedHeaderValue) }; 389DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(entry.Name), Encoding.ASCII.GetString(entry.Value)); 396DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(name), Encoding.ASCII.GetString(value));
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (18)
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (2)
141Current = result ? new KeyValuePair<string, string>(key, _stringValuesEnumerator.Current!) : default; 151Current = new KeyValuePair<string, string>(name, value.ToString());
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
298new KeyValuePair<Http3SettingType, long>(type, value));
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (15)
114MaybeExtra[i] = new KeyValuePair<Type, object>(key, value); 118MaybeExtra.Add(new KeyValuePair<Type, object>(key, value)); 395yield return new KeyValuePair<Type, object>(typeof(IConnectionIdFeature), _currentIConnectionIdFeature); 399yield return new KeyValuePair<Type, object>(typeof(IConnectionTransportFeature), _currentIConnectionTransportFeature); 403yield return new KeyValuePair<Type, object>(typeof(IConnectionItemsFeature), _currentIConnectionItemsFeature); 407yield return new KeyValuePair<Type, object>(typeof(IPersistentStateFeature), _currentIPersistentStateFeature); 411yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature); 415yield return new KeyValuePair<Type, object>(typeof(IConnectionLifetimeFeature), _currentIConnectionLifetimeFeature); 419yield return new KeyValuePair<Type, object>(typeof(IConnectionSocketFeature), _currentIConnectionSocketFeature); 423yield return new KeyValuePair<Type, object>(typeof(IProtocolErrorCodeFeature), _currentIProtocolErrorCodeFeature); 427yield return new KeyValuePair<Type, object>(typeof(IStreamDirectionFeature), _currentIStreamDirectionFeature); 431yield return new KeyValuePair<Type, object>(typeof(IStreamIdFeature), _currentIStreamIdFeature); 435yield return new KeyValuePair<Type, object>(typeof(IStreamAbortFeature), _currentIStreamAbortFeature); 439yield return new KeyValuePair<Type, object>(typeof(IStreamClosedFeature), _currentIStreamClosedFeature); 443yield return new KeyValuePair<Type, object>(typeof(IConnectionMetricsTagsFeature), _currentIConnectionMetricsTagsFeature);
Microsoft.AspNetCore.Server.Kestrel.Tests (156)
ConfigurationReaderTests.cs (47)
34new KeyValuePair<string, string>("Certificates", ""), 47new KeyValuePair<string, string>("Certificates:FileCert:Path", "/path/cert.pfx"), 48new KeyValuePair<string, string>("Certificates:FileCert:Password", "certpassword"), 49new KeyValuePair<string, string>("Certificates:StoreCert:Subject", "certsubject"), 50new KeyValuePair<string, string>("Certificates:StoreCert:Store", "certstore"), 51new KeyValuePair<string, string>("Certificates:StoreCert:Location", "cetlocation"), 52new KeyValuePair<string, string>("Certificates:StoreCert:AllowInvalid", "true"), 79new KeyValuePair<string, string>("Certificates:filecert:Path", "/path/cert.pfx"), 80new KeyValuePair<string, string>("CERTIFICATES:FILECERT:PASSWORD", "certpassword"), 100new KeyValuePair<string, string>("Certificates:filecert:Password", "certpassword"), 101new KeyValuePair<string, string>("Certificates:FILECERT:Password", "certpassword"), 122new KeyValuePair<string, string>("Endpoints", ""), 135new KeyValuePair<string, string>("Endpoints:End1", ""), 146new KeyValuePair<string, string>("Endpoints:End1:Url", ""), 157new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 158new KeyValuePair<string, string>("Endpoints:End2:Url", "https://*:5002"), 159new KeyValuePair<string, string>("Endpoints:End2:ClientCertificateMode", "AllowCertificate"), 160new KeyValuePair<string, string>("Endpoints:End3:Url", "https://*:5003"), 161new KeyValuePair<string, string>("Endpoints:End3:ClientCertificateMode", "RequireCertificate"), 162new KeyValuePair<string, string>("Endpoints:End3:Certificate:Path", "/path/cert.pfx"), 163new KeyValuePair<string, string>("Endpoints:End3:Certificate:Password", "certpassword"), 164new KeyValuePair<string, string>("Endpoints:End4:Url", "https://*:5004"), 165new KeyValuePair<string, string>("Endpoints:End4:ClientCertificateMode", "NoCertificate"), 166new KeyValuePair<string, string>("Endpoints:End4:Certificate:Subject", "certsubject"), 167new KeyValuePair<string, string>("Endpoints:End4:Certificate:Store", "certstore"), 168new KeyValuePair<string, string>("Endpoints:End4:Certificate:Location", "cetlocation"), 169new KeyValuePair<string, string>("Endpoints:End4:Certificate:AllowInvalid", "true"), 226new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 227new KeyValuePair<string, string>("Endpoints:End1:SslProtocols:0", "Tls11"), 242new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 243new KeyValuePair<string, string>("Endpoints:End1:SslProtocols:0", "Tls11"), 244new KeyValuePair<string, string>("Endpoints:End1:SslProtocols:1", "Tls12"), 259new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 260new KeyValuePair<string, string>("Endpoints:End1:SslProtocols:0", "TLS11"), 275new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 288new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 303new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 304new KeyValuePair<string, string>("Endpoints:End1:Sni::Protocols", "Http1"), 318new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 319new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:Protocols", "Http1"), 320new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:SslProtocols:0", "Tls12"), 321new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:Certificate:Path", "/path/cert.pfx"), 322new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:Certificate:Password", "certpassword"), 323new KeyValuePair<string, string>("Endpoints:End1:SNI:*.example.org:ClientCertificateMode", "AllowCertificate"), 347new KeyValuePair<string, string>("EndpointDefaults:SslProtocols:0", "Tls11"), 372new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 385new KeyValuePair<string, string>("EndpointDefaults:ClientCertificateMode", "AllowCertificate"),
HttpsConfigurationTests.cs (8)
89new KeyValuePair<string, string>("Endpoints:end1:Url", address), 90new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", "aspnetdevcert.pfx")), 91new KeyValuePair<string, string>("Certificates:Default:Password", "testPassword"), 127new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", "aspnetdevcert.pfx")), 128new KeyValuePair<string, string>("Certificates:Default:Password", "testPassword"), 159new KeyValuePair<string, string>("Endpoints:end1:Url", address), 160new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", "aspnetdevcert.pfx")), 161new KeyValuePair<string, string>("Certificates:Default:Password", "testPassword"),
KestrelConfigurationLoaderTests.cs (101)
43new KeyValuePair<string, string>("Endpoints:A:Url", "http://*:5000"), 44new KeyValuePair<string, string>("Endpoints:B:Url", "http://*:5001"), 64new KeyValuePair<string, string>("Endpoints:Found:Url", "http://*:5001"), 125new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 136new KeyValuePair<string, string>("Endpoints:End2:Url", "http://*:5002"), 172new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 218new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 258new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 259new KeyValuePair<string, string>("Certificates:Development:Password", "1234"), 302new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 306new KeyValuePair<string, string>("Certificates:Development:Password", "1234"), 310new KeyValuePair<string, string>("Certificates:Default:path", defaultCertPath), 311new KeyValuePair<string, string>("Certificates:Default:Password", "testPassword"), 372new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 373new KeyValuePair<string, string>("Endpoints:End1:Certificate:Path", TestResources.TestCertificatePath), 374new KeyValuePair<string, string>("Endpoints:End1:Certificate:Password", "testPassword") 424new KeyValuePair<string, string>("Certificates:Development:Password", "1234"), 471new KeyValuePair<string, string>("Certificates:Development:Password", "1234"), 532new KeyValuePair<string, string>("Certificates:Development:Password", "1234"), 567new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 568new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", "https-aspnet.crt")), 569new KeyValuePair<string, string>("Certificates:Default:KeyPath", Path.Combine("shared", "TestCertificates", "https-aspnet.key")) 591new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 592new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", "https-aspnet.crt")), 593new KeyValuePair<string, string>("Certificates:Default:KeyPath", Path.Combine("shared", "TestCertificates", "https-ecdsa.key")), 594new KeyValuePair<string, string>("Certificates:Default:Password", "aspnetcore") 616new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 617new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", "https-aspnet.crt")), 618new KeyValuePair<string, string>("Certificates:Default:KeyPath", Path.Combine("shared", "TestCertificates", "https-aspnet.key")), 619new KeyValuePair<string, string>("Certificates:Default:Password", "abcde"), 641new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 642new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", "https-aspnet.crt")), 643new KeyValuePair<string, string>("Certificates:Default:KeyPath", Path.Combine("shared", "TestCertificates", "https-aspnet.pub")), 680new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 681new KeyValuePair<string, string>("Certificates:Default:Path", Path.Combine("shared", "TestCertificates", certificateFile)), 682new KeyValuePair<string, string>("Certificates:Default:KeyPath", Path.Combine("shared", "TestCertificates", certificateKey)), 684.Concat(password != null ? new[] { new KeyValuePair<string, string>("Certificates:Default:Password", password) } : Array.Empty<KeyValuePair<string, string>>())) 714new KeyValuePair<string, string>("Certificates:Development:Password", "12341234"), 745new KeyValuePair<string, string>("Certificates:Development:Password", "12341234") 770new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 772new KeyValuePair<string, string>("Endpoints:End1:Certificate:Path", "fakecert.pfx"), 780new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 781new KeyValuePair<string, string>("Endpoints:End1:Certificate:Subject", "example.org"), 789new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 790new KeyValuePair<string, string>("Endpoints:End1:ClientCertificateMode", ClientCertificateMode.RequireCertificate.ToString()), 798new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 799new KeyValuePair<string, string>("Endpoints:End1:SslProtocols:0", SslProtocols.Tls13.ToString()), 807new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 808new KeyValuePair<string, string>("Endpoints:End1:Sni:Protocols", HttpProtocols.Http1.ToString()), 822new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 823new KeyValuePair<string, string>("EndpointDefaults:ClientCertificateMode", ClientCertificateMode.RequireCertificate.ToString()), 835new KeyValuePair<string, string>("Endpoints:End1:Url", "http://*:5001"), 836new KeyValuePair<string, string>("EndpointDefaults:SslProtocols:0", SslProtocols.Tls13.ToString()), 871new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 872new KeyValuePair<string, string>("Endpoints:End1:Certificate:Path", certificatePath), 873new KeyValuePair<string, string>("Endpoints:End1:Certificate:Password", certificatePassword), 970new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 971new KeyValuePair<string, string>("Endpoints:End1:Certificate:Path", fileLink.FullName), 972new KeyValuePair<string, string>("Endpoints:End1:Certificate:Password", certificatePassword), 1066new KeyValuePair<string, string>("EndpointDefaults:Protocols", input), 1067new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 1136new KeyValuePair<string, string>("Endpoints:End1:Protocols", input), 1137new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 1187new KeyValuePair<string, string>("Endpoints:End1:SslProtocols:0", "Tls11"), 1188new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 1228new KeyValuePair<string, string>("Endpoints:End1:SslProtocols:0", "Tls11"), 1229new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 1257new KeyValuePair<string, string>("EndpointDefaults:SslProtocols:0", "Tls11"), 1258new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 1291new KeyValuePair<string, string>("EndpointDefaults:SslProtocols:0", "Tls11"), 1292new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 1324new KeyValuePair<string, string>("Endpoints:End1:ClientCertificateMode", "AllowCertificate"), 1325new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 1358new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 1359new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:Protocols", HttpProtocols.None.ToString()), 1360new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:SslProtocols:0", SslProtocols.Tls13.ToString()), 1361new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:ClientCertificateMode", ClientCertificateMode.RequireCertificate.ToString()), 1362new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:Certificate:Path", certPath), 1363new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:Certificate:KeyPath", keyPath), 1392new KeyValuePair<string, string>("Endpoints:End1:ClientCertificateMode", "AllowCertificate"), 1393new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 1419new KeyValuePair<string, string>("EndpointDefaults:ClientCertificateMode", "AllowCertificate"), 1420new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 1449new KeyValuePair<string, string>("EndpointDefaults:ClientCertificateMode", "AllowCertificate"), 1450new KeyValuePair<string, string>("Endpoints:End1:Url", "https://*:5001"), 1470new KeyValuePair<string, string>("Endpoints:A:Url", "http://*:5000"), 1471new KeyValuePair<string, string>("Endpoints:B:Url", "http://*:5001"), 1482new KeyValuePair<string, string>("Endpoints:A:Url", "http://*:5000"), 1483new KeyValuePair<string, string>("Endpoints:B:Url", "http://*:5002"), 1484new KeyValuePair<string, string>("Endpoints:C:Url", "http://*:5003"), 1509new KeyValuePair<string, string>("Endpoints:DefaultProtocol:Url", "http://*:5000"), 1510new KeyValuePair<string, string>("Endpoints:NonDefaultProtocol:Url", "http://*:5001"), 1511new KeyValuePair<string, string>("Endpoints:NonDefaultProtocol:Protocols", "Http1AndHttp2"), 1518new KeyValuePair<string, string>("Endpoints:DefaultProtocol:Url", "http://*:5000"), 1519new KeyValuePair<string, string>("Endpoints:NonDefaultProtocol:Url", "http://*:5001"), 1520new KeyValuePair<string, string>("Endpoints:NonDefaultProtocol:Protocols", "Http1AndHttp2"), 1521new KeyValuePair<string, string>("EndpointDefaults:Protocols", "Http1"), 1546new KeyValuePair<string, string>("Endpoints:Changed:Url", "http://*:5001"), 1547new KeyValuePair<string, string>("Endpoints:Unchanged:Url", "http://*:5000"), 1561new KeyValuePair<string, string>("Endpoints:Changed:Url", "http://*:5002"), 1562new KeyValuePair<string, string>("Endpoints:Unchanged:Url", "http://*:5000"),
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (15)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (15)
114MaybeExtra[i] = new KeyValuePair<Type, object>(key, value); 118MaybeExtra.Add(new KeyValuePair<Type, object>(key, value)); 395yield return new KeyValuePair<Type, object>(typeof(IConnectionIdFeature), _currentIConnectionIdFeature); 399yield return new KeyValuePair<Type, object>(typeof(IConnectionTransportFeature), _currentIConnectionTransportFeature); 403yield return new KeyValuePair<Type, object>(typeof(IConnectionItemsFeature), _currentIConnectionItemsFeature); 407yield return new KeyValuePair<Type, object>(typeof(IPersistentStateFeature), _currentIPersistentStateFeature); 411yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature); 415yield return new KeyValuePair<Type, object>(typeof(IConnectionLifetimeFeature), _currentIConnectionLifetimeFeature); 419yield return new KeyValuePair<Type, object>(typeof(IConnectionSocketFeature), _currentIConnectionSocketFeature); 423yield return new KeyValuePair<Type, object>(typeof(IProtocolErrorCodeFeature), _currentIProtocolErrorCodeFeature); 427yield return new KeyValuePair<Type, object>(typeof(IStreamDirectionFeature), _currentIStreamDirectionFeature); 431yield return new KeyValuePair<Type, object>(typeof(IStreamIdFeature), _currentIStreamIdFeature); 435yield return new KeyValuePair<Type, object>(typeof(IStreamAbortFeature), _currentIStreamAbortFeature); 439yield return new KeyValuePair<Type, object>(typeof(IStreamClosedFeature), _currentIStreamClosedFeature); 443yield return new KeyValuePair<Type, object>(typeof(IConnectionMetricsTagsFeature), _currentIConnectionMetricsTagsFeature);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (24)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (15)
114MaybeExtra[i] = new KeyValuePair<Type, object>(key, value); 118MaybeExtra.Add(new KeyValuePair<Type, object>(key, value)); 395yield return new KeyValuePair<Type, object>(typeof(IConnectionIdFeature), _currentIConnectionIdFeature); 399yield return new KeyValuePair<Type, object>(typeof(IConnectionTransportFeature), _currentIConnectionTransportFeature); 403yield return new KeyValuePair<Type, object>(typeof(IConnectionItemsFeature), _currentIConnectionItemsFeature); 407yield return new KeyValuePair<Type, object>(typeof(IPersistentStateFeature), _currentIPersistentStateFeature); 411yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature); 415yield return new KeyValuePair<Type, object>(typeof(IConnectionLifetimeFeature), _currentIConnectionLifetimeFeature); 419yield return new KeyValuePair<Type, object>(typeof(IConnectionSocketFeature), _currentIConnectionSocketFeature); 423yield return new KeyValuePair<Type, object>(typeof(IProtocolErrorCodeFeature), _currentIProtocolErrorCodeFeature); 427yield return new KeyValuePair<Type, object>(typeof(IStreamDirectionFeature), _currentIStreamDirectionFeature); 431yield return new KeyValuePair<Type, object>(typeof(IStreamIdFeature), _currentIStreamIdFeature); 435yield return new KeyValuePair<Type, object>(typeof(IStreamAbortFeature), _currentIStreamAbortFeature); 439yield return new KeyValuePair<Type, object>(typeof(IStreamClosedFeature), _currentIStreamClosedFeature); 443yield return new KeyValuePair<Type, object>(typeof(IConnectionMetricsTagsFeature), _currentIConnectionMetricsTagsFeature);
src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (9)
101MaybeExtra[i] = new KeyValuePair<Type, object>(key, value); 105MaybeExtra.Add(new KeyValuePair<Type, object>(key, value)); 281yield return new KeyValuePair<Type, object>(typeof(IConnectionIdFeature), _currentIConnectionIdFeature); 285yield return new KeyValuePair<Type, object>(typeof(IConnectionTransportFeature), _currentIConnectionTransportFeature); 289yield return new KeyValuePair<Type, object>(typeof(IConnectionItemsFeature), _currentIConnectionItemsFeature); 293yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature); 297yield return new KeyValuePair<Type, object>(typeof(IConnectionLifetimeFeature), _currentIConnectionLifetimeFeature); 301yield return new KeyValuePair<Type, object>(typeof(IProtocolErrorCodeFeature), _currentIProtocolErrorCodeFeature); 305yield return new KeyValuePair<Type, object>(typeof(ITlsConnectionFeature), _currentITlsConnectionFeature);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (15)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (15)
114MaybeExtra[i] = new KeyValuePair<Type, object>(key, value); 118MaybeExtra.Add(new KeyValuePair<Type, object>(key, value)); 395yield return new KeyValuePair<Type, object>(typeof(IConnectionIdFeature), _currentIConnectionIdFeature); 399yield return new KeyValuePair<Type, object>(typeof(IConnectionTransportFeature), _currentIConnectionTransportFeature); 403yield return new KeyValuePair<Type, object>(typeof(IConnectionItemsFeature), _currentIConnectionItemsFeature); 407yield return new KeyValuePair<Type, object>(typeof(IPersistentStateFeature), _currentIPersistentStateFeature); 411yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature); 415yield return new KeyValuePair<Type, object>(typeof(IConnectionLifetimeFeature), _currentIConnectionLifetimeFeature); 419yield return new KeyValuePair<Type, object>(typeof(IConnectionSocketFeature), _currentIConnectionSocketFeature); 423yield return new KeyValuePair<Type, object>(typeof(IProtocolErrorCodeFeature), _currentIProtocolErrorCodeFeature); 427yield return new KeyValuePair<Type, object>(typeof(IStreamDirectionFeature), _currentIStreamDirectionFeature); 431yield return new KeyValuePair<Type, object>(typeof(IStreamIdFeature), _currentIStreamIdFeature); 435yield return new KeyValuePair<Type, object>(typeof(IStreamAbortFeature), _currentIStreamAbortFeature); 439yield return new KeyValuePair<Type, object>(typeof(IStreamClosedFeature), _currentIStreamClosedFeature); 443yield return new KeyValuePair<Type, object>(typeof(IConnectionMetricsTagsFeature), _currentIConnectionMetricsTagsFeature);
Microsoft.AspNetCore.Shared.Tests (80)
AdaptiveCapacityDictionaryTests.cs (14)
447((ICollection<KeyValuePair<string, object?>>)dict).Add(new KeyValuePair<string, object?>("key", "value")); 497var input = new KeyValuePair<string, object?>("key", "value"); 516var input = new KeyValuePair<string, object?>("KEY", "value"); 535var input = new KeyValuePair<string, object?>("other", "value"); 555var input = new KeyValuePair<string, object?>("key", "valUE"); 661new KeyValuePair<string, object?>("key", "value") 676var input = new KeyValuePair<string, object?>("key", "value"); 696var input = new KeyValuePair<string, object?>("KEY", "value"); 716var input = new KeyValuePair<string, object?>("other", "value"); 737var input = new KeyValuePair<string, object?>("key", "valUE"); 1016kvp => Assert.Equal(new KeyValuePair<string, object?>("key", "value"), kvp), 1044kvp => Assert.Equal(new KeyValuePair<string, object?>("key0", "value0"), kvp), 1045kvp => Assert.Equal(new KeyValuePair<string, object?>("key1", "value1"), kvp), 1072kvp => Assert.Equal(new KeyValuePair<string, object?>("key0", "value0"), kvp),
PropertyHelperTest.cs (3)
593new KeyValuePair<string, object>("selected", false) 601new KeyValuePair<string, object>("SeLeCtEd", true) 609new KeyValuePair<string, object>("SelECTeD", true)
runtime\Http2\HPackDecoderTest.cs (2)
977DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(entry.Name), Encoding.ASCII.GetString(entry.Value)); 984DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(name), Encoding.ASCII.GetString(value));
runtime\Http3\QPackDecoderTest.cs (15)
115new KeyValuePair<string, string>(":method", "GET"), 116new KeyValuePair<string, string>(":scheme", "https"), 117new KeyValuePair<string, string>(":authority", "127.0.0.1:5001"), 118new KeyValuePair<string, string>(":path", "/"), 119new KeyValuePair<string, string>("alt-used", "127.0.0.1:5001"), 132new KeyValuePair<string, string>(":method", "GET"), 133new KeyValuePair<string, string>(":scheme", "http"), 134new KeyValuePair<string, string>(":authority", ""), 135new KeyValuePair<string, string>(":path", "/"), 175new KeyValuePair<string, string>(":method", new string('A', 8192 / 2)), 176new KeyValuePair<string, string>(":path", new string('A', 8192 / 2)), 177new KeyValuePair<string, string>(":scheme", "http") 302KeyValuePair<string, string>[] expectedValues = new[] { new KeyValuePair<string, string>(expectedHeaderName, expectedHeaderValue) }; 389DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(entry.Name), Encoding.ASCII.GetString(entry.Value)); 396DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(name), Encoding.ASCII.GetString(value));
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (4)
130_arrayStorage[_count++] = new KeyValuePair<TKey, TValue>(key, value); 134_arrayStorage[index] = new KeyValuePair<TKey, TValue>(key, value); 239_arrayStorage[_count] = new KeyValuePair<TKey, TValue>(key, value); 472_arrayStorage[Count] = new KeyValuePair<TKey, TValue>(key, value);
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
300public KeyValuePair<string, string>[] Items => _collection.Select(pair => new KeyValuePair<string, string>(pair.Key, pair.Value.ToString())).ToArray();
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (41)
2539yield return new KeyValuePair<string, StringValues>(HeaderNames.Accept, Accept); 2543yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptCharset, AcceptCharset); 2547yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, AcceptEncoding); 2551yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, AcceptLanguage); 2555yield return new KeyValuePair<string, StringValues>(HeaderNames.Allow, Allow); 2559yield return new KeyValuePair<string, StringValues>(HeaderNames.Authorization, Authorization); 2563yield return new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, CacheControl); 2567yield return new KeyValuePair<string, StringValues>(HeaderNames.Connection, Connection); 2571yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, ContentEncoding); 2575yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLanguage, ContentLanguage); 2579yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, ContentLength); 2583yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLocation, ContentLocation); 2587yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentMD5, ContentMD5); 2591yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentRange, ContentRange); 2595yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentType, ContentType); 2599yield return new KeyValuePair<string, StringValues>(HeaderNames.Cookie, Cookie); 2603yield return new KeyValuePair<string, StringValues>(HeaderNames.Date, Date); 2607yield return new KeyValuePair<string, StringValues>(HeaderNames.Expect, Expect); 2611yield return new KeyValuePair<string, StringValues>(HeaderNames.Expires, Expires); 2615yield return new KeyValuePair<string, StringValues>(HeaderNames.From, From); 2619yield return new KeyValuePair<string, StringValues>(HeaderNames.Host, Host); 2623yield return new KeyValuePair<string, StringValues>(HeaderNames.IfMatch, IfMatch); 2627yield return new KeyValuePair<string, StringValues>(HeaderNames.IfModifiedSince, IfModifiedSince); 2631yield return new KeyValuePair<string, StringValues>(HeaderNames.IfNoneMatch, IfNoneMatch); 2635yield return new KeyValuePair<string, StringValues>(HeaderNames.IfRange, IfRange); 2639yield return new KeyValuePair<string, StringValues>(HeaderNames.IfUnmodifiedSince, IfUnmodifiedSince); 2643yield return new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, KeepAlive); 2647yield return new KeyValuePair<string, StringValues>(HeaderNames.LastModified, LastModified); 2651yield return new KeyValuePair<string, StringValues>(HeaderNames.MaxForwards, MaxForwards); 2655yield return new KeyValuePair<string, StringValues>(HeaderNames.Pragma, Pragma); 2659yield return new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthorization, ProxyAuthorization); 2663yield return new KeyValuePair<string, StringValues>(HeaderNames.Range, Range); 2667yield return new KeyValuePair<string, StringValues>(HeaderNames.Referer, Referer); 2671yield return new KeyValuePair<string, StringValues>(HeaderNames.TE, TE); 2675yield return new KeyValuePair<string, StringValues>(HeaderNames.Trailer, Trailer); 2679yield return new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, TransferEncoding); 2683yield return new KeyValuePair<string, StringValues>(HeaderNames.Translate, Translate); 2687yield return new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, Upgrade); 2691yield return new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, UserAgent); 2695yield return new KeyValuePair<string, StringValues>(HeaderNames.Via, Via); 2699yield return new KeyValuePair<string, StringValues>(HeaderNames.Warning, Warning);
Microsoft.AspNetCore.SignalR.Client.Core (1)
Internal\ConnectionLogScope.cs (1)
35return new KeyValuePair<string, object?>(ClientConnectionIdKey, ConnectionId);
Microsoft.AspNetCore.SignalR.Core (1)
Internal\HubGroupList.cs (1)
39var groupToRemove = new KeyValuePair<string, GroupConnectionList>(groupName, EmptyGroupConnectionList);
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFilesTestServer.cs (1)
21new KeyValuePair<string, string>("webroot", ".")
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (1)
2926new KeyValuePair<string,string>("testhostingstartup:config", "value")
WebHostTests.cs (1)
65new KeyValuePair<string, string>("FORWARDEDHEADERS_ENABLED", "true" ),
Microsoft.AspNetCore.WebUtilities (3)
FormReader.cs (2)
130return new KeyValuePair<string, string>(_currentKey, _currentValue); 163return new KeyValuePair<string, string>(_currentKey, _currentValue);
QueryHelpers.cs (1)
33uri, new[] { new KeyValuePair<string, string?>(name, value) });
Microsoft.Build (56)
BackEnd\BuildManager\GlobalPropertiesLookup.cs (1)
37.Select(p => new KeyValuePair<string, string?>(p.Key, ExtractEscapedValue(p.Value)))
BackEnd\Components\Logging\BuildEventArgTransportSink.cs (1)
150LogMessagePacket logPacket = new LogMessagePacket(new KeyValuePair<int, BuildEventArgs>(sinkId, buildEvent));
BackEnd\Components\Logging\LoggingService.cs (1)
1704loggingEventKeyValuePair = new KeyValuePair<int, BuildEventArgs>(loggingEventKeyValuePair.Key, buildEventArgs);
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
221keyValuePairList.Add(new KeyValuePair<string, string>((string)kvp.Key, (string)kvp.Value));
BackEnd\Components\RequestBuilder\Lookup.cs (1)
795var modify = new KeyValuePair<ProjectItemInstance, MetadataModifications>(actualItem, metadataChangeCopy);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1421yield return new KeyValuePair<string, string>((string)de.Key, EscapingUtilities.Escape((string)de.Value));
Collections\ArrayDictionary.cs (2)
151array[arrayIndex + i] = new KeyValuePair<TKey, TValue>(keys[i], values[i]); 237new KeyValuePair<TKey, TValue>(
Collections\CopyOnWritePropertyDictionary.cs (1)
356yield return new(property.Key, property);
Collections\ReadOnlyConvertingDictionary.cs (1)
206return new KeyValuePair<K, N>(original.Key, _converter(original.Value));
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (2)
496yield return new KeyValuePair<string, T>(entry.Key, entry); 646array[i] = new KeyValuePair<string, T>(entry.Key, entry);
Collections\WeakValueDictionary.cs (2)
244yield return new KeyValuePair<K, V>(kvp.Key, null); 248yield return new KeyValuePair<K, V>(kvp.Key, target);
Construction\ProjectTaskElement.cs (1)
182parameterLocations.Add(new KeyValuePair<string, ElementLocation>(entry.Key, entry.Value.Item2));
Definition\Project.cs (1)
2128yield return new KeyValuePair<string, string>(property.Name, ((IProperty)property).EvaluatedValueEscaped);
Definition\ProjectItem.cs (1)
148IEnumerable<KeyValuePair<string, string>> IItemData.EnumerateMetadata() => Metadata.Select(m => new KeyValuePair<string, string>(m.Name, m.EvaluatedValue));
Evaluation\Evaluator.cs (1)
918_usingTaskElements.Add(new KeyValuePair<string, ProjectUsingTaskElement>(currentProjectOrImport.DirectoryPath, usingTask));
Evaluation\Expander.cs (21)
2046itemsFromCapture.Add(new KeyValuePair<string, S>(item.EvaluatedIncludeEscaped, item)); 2069itemsFromCapture.Add(new KeyValuePair<string, S>(joinedItems, null)); 2324yield return new KeyValuePair<string, S>(resultantItem, item); 2329yield return new KeyValuePair<string, S>(item.EvaluatedIncludeEscaped, item); 2339yield return new KeyValuePair<string, S>(Convert.ToString(itemsOfType.Count(), CultureInfo.InvariantCulture), null /* no base item */); 2382yield return new KeyValuePair<string, S>(result, item.Value); 2386yield return new KeyValuePair<string, S>(null, item.Value); 2458yield return new KeyValuePair<string, S>(escapedPath, null); 2533yield return new KeyValuePair<string, S>(escapedDirectoryPath, null); 2596yield return new KeyValuePair<string, S>(directoryName, item.Value); 2600yield return new KeyValuePair<string, S>(null, item.Value); 2641yield return new KeyValuePair<string, S>(itemSpec, item.Value); 2647yield return new KeyValuePair<string, S>(metadataValue, item.Value); 2652yield return new KeyValuePair<string, S>(metadataValue, item.Value); 2735yield return new KeyValuePair<string, S>(include, item.Value); 2739yield return new KeyValuePair<string, S>(null, item.Value); 2779yield return new KeyValuePair<string, S>(include, item.Value); 2783yield return new KeyValuePair<string, S>(null, item.Value); 2799yield return new KeyValuePair<string, S>(item.Key, null); 2937yield return new KeyValuePair<string, S>("true", item.Value); 2948yield return new KeyValuePair<string, S>("false", null);
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (1)
255metadataList.Add(new KeyValuePair<ProjectMetadataElement, string>(metadataElement, evaluatedValue));
Graph\ProjectGraph.cs (1)
774entriesToUpdate.Add(new KeyValuePair<ProjectGraphNode, ImmutableList<string>>(pair.Key, targetList));
Graph\ProjectInterpretation.cs (1)
297directMetadata: [new KeyValuePair<string, string>(ItemMetadataNames.PropertiesMetadataName, $"{globalPropertyName}={globalPropertyValue}")],
Instance\ImmutableProjectCollections\ImmutableElementCollectionConverter.cs (2)
174array[index] = new KeyValuePair<string, T>(itemInstance.Key, itemInstance); 192yield return new KeyValuePair<string, T>(kvp.Key, instance);
Instance\ImmutableProjectCollections\ImmutableGlobalPropertiesCollectionConverter.cs (2)
98array[currentIndex] = new KeyValuePair<string, ProjectPropertyInstance>(itemKey, instance); 155yield return new KeyValuePair<string, ProjectPropertyInstance>(itemKey, instance);
Instance\ProjectItemInstance.cs (3)
1102result.Add(new KeyValuePair<string, string>(projectMetadataInstance.Name, projectMetadataInstance.EvaluatedValue)); 1116yield return new KeyValuePair<string, string>(projectMetadataInstance.Name, projectMetadataInstance.EvaluatedValue); 1452.Select(metadatum => new KeyValuePair<string, string>(metadatum.Name, GetMetadataEscaped(metadatum.Name)));
Logging\BaseConsoleLogger.cs (1)
634IItem<ProjectMetadata> iitem => iitem.Metadata?.Select(m => new KeyValuePair<string, string>(m.Name, m.EvaluatedValue)),
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
1181nameValueIndexListBuffer.Add(new KeyValuePair<int, int>(keyIndex, valueIndex));
Logging\ProfilerLogger.cs (1)
222pair => new KeyValuePair<EvaluationLocation, ProfiledLocation>(pair.Key, pair.Value));
LogMessagePacketBase.cs (1)
381return new KeyValuePair<int, BuildEventArgs>(_sinkId, _buildEvent);
TaskParameter.cs (2)
1013var unescaped = new KeyValuePair<string, string>(kvp.Key, EscapingUtilities.UnescapeAll(kvp.Value)); 1029var unescaped = new KeyValuePair<string, string>(kvp.Key, EscapingUtilities.UnescapeAll(kvp.Value));
Utilities\Utilities.cs (1)
694callback(arg, new KeyValuePair<string, string>(tuple.Name, tuple.Value));
Microsoft.Build.BuildCheck.UnitTests (1)
EditorConfig_Tests.cs (1)
761return new KeyValuePair<K, V>(key, value);
Microsoft.Build.CommandLine.UnitTests (1)
CommandLineSwitches_Tests.cs (1)
1548.Select(i => new KeyValuePair<string, string>((string)i.Key, (string)i.Value)))
Microsoft.Build.Engine.OM.UnitTests (14)
Construction\ProjectFormatting_Tests.cs (1)
537new[] { new KeyValuePair<string, string>("metadata", "value") });
Definition\DefinitionEditing_Tests.cs (3)
207metadata.Add(new KeyValuePair<string, string>("m", "m1")); 1972metadata.Add(new KeyValuePair<string, string>("m", "m1")); 2131metadata.Add(new KeyValuePair<string, string>("m", "m1"));
Instance\ProjectInstance_Tests.cs (3)
129metadata.Add(new KeyValuePair<string, string>("m", "m1")); 130metadata.Add(new KeyValuePair<string, string>("n", "n1")); 131metadata.Add(new KeyValuePair<string, string>("o", "o%40"));
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (5)
73new KeyValuePair<string, string>("m1", "v1"), 74new KeyValuePair<string, string>("m2", "v2"), 75new KeyValuePair<string, string>("m3", "v3"), 702new KeyValuePair<string, string>("igm1", "v1"), 703new KeyValuePair<string, string>("igm2", "v2"),
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (2)
122new KeyValuePair<string, string>("a", "aValue"), 123new KeyValuePair<string, string>("b", "bValue"),
Microsoft.Build.Engine.UnitTests (28)
BackEnd\LoggingService_Tests.cs (1)
703LogMessagePacket packet = new LogMessagePacket(new KeyValuePair<int, BuildEventArgs>(1, messageEvent));
BackEnd\Lookup_Tests.cs (5)
206table1.Add(new ProjectItemInstance(project, "i1", "a1", new KeyValuePair<string, string>[] { new KeyValuePair<string, string>("m1", "m1") }, project.FullPath)); 207table1.Add(new ProjectItemInstance(project, "i1", "a1", new KeyValuePair<string, string>[] { new KeyValuePair<string, string>("m1", "m2") }, project.FullPath)); 216new ProjectItemInstance(project, "i1", "a2", new KeyValuePair<string, string>[] { new KeyValuePair<string, string>( "m1", "m1") }, project.FullPath), // Should get added 217new ProjectItemInstance(project, "i1", "a1", new KeyValuePair<string, string>[] { new KeyValuePair<string, string>( "m1", "m1") }, project.FullPath), // Should not get added 218new ProjectItemInstance(project, "i1", "a1", new KeyValuePair<string, string>[] { new KeyValuePair<string, string>( "m1", "m3") }, project.FullPath), // Should get added
BackEnd\NodePackets_Tests.cs (2)
324LogMessagePacket packet = new LogMessagePacket(new KeyValuePair<int, BuildEventArgs>(0, arg)); 358LogMessagePacket packet = new LogMessagePacket(new KeyValuePair<int, BuildEventArgs>(0, buildEvent));
BackEnd\SdkResolverService_Tests.cs (1)
413metadata.ShouldBeSameIgnoringOrder(new[] { new KeyValuePair<string, string>("MetadataName", "MetadataValue") });
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (2)
158array.SetValue(new KeyValuePair<TKey, TValue>(_keys[i], _values[i]), index + i); 178yield return new KeyValuePair<TKey, TValue>(_keys[i], _values[i]);
BuildEventArgsDataEnumeration.cs (1)
34new KeyValuePair<string, string>("foo","bar")
Construction\SolutionProjectGenerator_Tests.cs (2)
1604globalProperties.Add(new KeyValuePair<string, string>("Configuration", "Debug")); 1605globalProperties.Add(new KeyValuePair<string, string>("Platform", "Mixed Platforms"));
Instance\TaskItem_Tests.cs (4)
202item.EnumerateMetadata().ShouldBeSetEquivalentTo(new KeyValuePair<string, string>[] { new("a", "override"), new("b", "base") }); 204((Dictionary<string, string>)item.CloneCustomMetadata()).ShouldBeSetEquivalentTo(new KeyValuePair<string, string>[] { new("a", "override"), new("b", "base") });
WarningsAsMessagesAndErrors_Tests.cs (10)
101new KeyValuePair<string, string>("MSBuildWarningsAsErrors", "123"), 102new KeyValuePair<string, string>("MSBuildWarningsAsErrors", $@"$(MSBuildWarningsAsErrors); 104new KeyValuePair<string, string>("MSBuildWarningsAsErrors", "$(MSBuildWarningsAsErrors);ABC") 117new KeyValuePair<string, string>("MSBuildWarningsAsErrors", "123"), 118new KeyValuePair<string, string>("MSBuildWarningsAsErrors", "$(MSBuildWarningsAsErrors);ABC") 187new KeyValuePair<string, string>("MSBuildWarningsAsMessages", "123"), 188new KeyValuePair<string, string>("MSBuildWarningsAsMessages", $@"$(MSBuildWarningsAsMessages); 190new KeyValuePair<string, string>("MSBuildWarningsAsMessages", "$(MSBuildWarningsAsMessages);ABC") 203new KeyValuePair<string, string>("MSBuildWarningsAsMessages", "123"), 204new KeyValuePair<string, string>("MSBuildWarningsAsMessages", "$(MSBuildWarningsAsMessages);ABC")
Microsoft.Build.Framework (10)
ImmutableSegmentedDictionary.cs (1)
81.AddRange(source.Select(element => new KeyValuePair<TKey, TValue>(keySelector(element), elementSelector(element))));
ImmutableSegmentedDictionary`2.cs (2)
147if (self.Contains(new KeyValuePair<TKey, TValue>(key, value))) 232if (self.Contains(new KeyValuePair<TKey, TValue>(key, value)))
ImmutableSegmentedDictionary`2+Builder.cs (1)
103if (Contains(new KeyValuePair<TKey, TValue>(key, value)))
ITaskItemExtensions.cs (1)
62list[i++] = new KeyValuePair<string, string>(metadataName, valueOrError);
NativeMethods.cs (1)
1476myChildren.Add(new KeyValuePair<int, SafeProcessHandle>(possibleChildProcess.Id, childHandle));
SegmentedDictionary`2.cs (4)
316array[index++] = new KeyValuePair<TKey, TValue>(entries[i]._key, entries[i]._value); 903objects[index++] = new KeyValuePair<TKey, TValue>(entries[i]._key, entries[i]._value); 1171_current = new KeyValuePair<TKey, TValue>(entry._key, entry._value); 1201return new KeyValuePair<TKey, TValue>(_current.Key, _current.Value);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
IntegrationTests.cs (1)
50list.Add(new KeyValuePair<string, string>(
Microsoft.Build.Tasks.Core (8)
AssemblyDependency\ReferenceTable.cs (7)
1150var newEntry = new KeyValuePair<AssemblyNameExtension, Reference>(unifiedDependency.PostUnified, newReference); 2861yield return new KeyValuePair<string, string>(ItemMetadataNames.resolvedFrom, reference.ResolvedSearchPath); 2864yield return new KeyValuePair<string, string>(ItemMetadataNames.copyLocal, reference.IsCopyLocal ? "true" : "false"); 2869yield return new KeyValuePair<string, string>(ItemMetadataNames.redist, reference.RedistName); 2876yield return new KeyValuePair<string, string>(ItemMetadataNames.frameworkFile, "true"); 2882yield return new KeyValuePair<string, string>(ItemMetadataNames.imageRuntime, reference.ImageRuntime); 2889yield return new KeyValuePair<string, string>(ItemMetadataNames.isRedistRoot, (bool)reference.IsRedistRoot ? "true" : "false");
BootstrapperUtil\BootstrapperBuilder.cs (1)
1534var de = new KeyValuePair<string, string>(configFileKey, eulaAttribute.Value);
Microsoft.Build.Tasks.UnitTests (6)
Copy_Tests.cs (2)
2015filesActuallyCopied.Add(new KeyValuePair<FileState, FileState>(source, dest)); 2082filesActuallyCopied.Add(new KeyValuePair<FileState, FileState>(source, dest));
XslTransformation_Tests.cs (4)
1130xmlInputs.Add(new KeyValuePair<XslTransformation.XmlInput.XmlModes, object>(XslTransformation.XmlInput.XmlModes.Xml, _xmlDocument)); 1131xmlInputs.Add(new KeyValuePair<XslTransformation.XmlInput.XmlModes, object>(XslTransformation.XmlInput.XmlModes.XmlFile, xmlPaths)); 1133xslInputs.Add(new KeyValuePair<XslTransformation.XsltInput.XslModes, object>(XslTransformation.XsltInput.XslModes.Xslt, _xslDocument)); 1134xslInputs.Add(new KeyValuePair<XslTransformation.XsltInput.XslModes, object>(XslTransformation.XsltInput.XslModes.XsltFile, xslPath));
Microsoft.Build.Utilities.Core (4)
TaskItem.cs (3)
508_metadata.SetItems(metadata.Select(kvp => new KeyValuePair<string, string>(kvp.Key, kvp.Value ?? string.Empty))); 523var unescaped = new KeyValuePair<string, string>(kvp.Key, EscapingUtilities.UnescapeAll(kvp.Value)); 539var unescaped = new KeyValuePair<string, string>(kvp.Key, EscapingUtilities.UnescapeAll(kvp.Value));
ToolTask.cs (1)
1373_environmentVariablePairs.Add(new KeyValuePair<string, string>(nameValuePair[0], nameValuePair[1]));
Microsoft.CodeAnalysis (34)
CodeGen\SwitchStringJumpTableEmitter.cs (1)
142jumpTableLabels[i] = new KeyValuePair<ConstantValue, object>(hashConstant, hashBucketLabel);
Collections\SmallDictionary.cs (1)
763public KeyValuePair<K, V> Current => new KeyValuePair<K, V>(_current!.Key, _current!.Value);
CommandLine\CommandLineParser.cs (1)
372pathMapBuilder.Add(new KeyValuePair<string, string>(from, to));
CommandLine\SarifV1ErrorLogger.cs (1)
293list.Add(new KeyValuePair<string, DiagnosticDescriptor>(pair.Value, pair.Key));
CvtRes.cs (11)
621if (_commentsContents != null) yield return new KeyValuePair<string, string>("Comments", _commentsContents); 622if (_companyNameContents != null) yield return new KeyValuePair<string, string>("CompanyName", _companyNameContents); 623if (_fileDescriptionContents != null) yield return new KeyValuePair<string, string>("FileDescription", _fileDescriptionContents); 625yield return new KeyValuePair<string, string>("FileVersion", _fileVersionContents); 627if (_internalNameContents != null) yield return new KeyValuePair<string, string>("InternalName", _internalNameContents); 628if (_legalCopyrightContents != null) yield return new KeyValuePair<string, string>("LegalCopyright", _legalCopyrightContents); 629if (_legalTrademarksContents != null) yield return new KeyValuePair<string, string>("LegalTrademarks", _legalTrademarksContents); 630if (_originalFileNameContents != null) yield return new KeyValuePair<string, string>("OriginalFilename", _originalFileNameContents); 631if (_productNameContents != null) yield return new KeyValuePair<string, string>("ProductName", _productNameContents); 633yield return new KeyValuePair<string, string>("ProductVersion", _productVersionContents); 635if (_assemblyVersionContents != null) yield return new KeyValuePair<string, string>("Assembly Version", _assemblyVersionContents.ToString());
InternalUtilities\ConcurrentLruCache.cs (1)
72copy[index++] = new KeyValuePair<K, V>(key,
InternalUtilities\KeyValuePairUtil.cs (1)
13return new KeyValuePair<K, V>(key, value);
InternalUtilities\OrderedMultiDictionary.cs (1)
64yield return new KeyValuePair<K, SetWithInsertionOrder<V>>(
MetadataReader\MetadataDecoder.cs (1)
1581return (new KeyValuePair<string, TypedConstant>(name, value), kind == CustomAttributeNamedArgumentKind.Property, typeCode, elementTypeCode);
MetadataReader\MetadataHelpers.cs (2)
852new KeyValuePair<string, IEnumerable<IGrouping<string, TypeDefinitionHandle>>>( 870new KeyValuePair<string, IEnumerable<IGrouping<string, TypeDefinitionHandle>>>(
MetadataReader\TypeNameDecoder.cs (1)
230typeArgumentsBuilder.Add(new KeyValuePair<TypeSymbol, ImmutableArray<ModifierInfo<TypeSymbol>>>(GetTypeSymbol(argument, out refersToNoPia), ImmutableArray<ModifierInfo<TypeSymbol>>.Empty));
RuleSet\RuleSetProcessor.cs (1)
183return new KeyValuePair<string, ReportDiagnostic>(ruleId, action);
SourceFileResolver.cs (1)
79pathMapBuilder.Add(new KeyValuePair<string, string>(normalizedKey, normalizedValue));
src\Dependencies\Collections\ImmutableSegmentedDictionary.cs (1)
81.AddRange(source.Select(element => new KeyValuePair<TKey, TValue>(keySelector(element), elementSelector(element))));
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (2)
147if (self.Contains(new KeyValuePair<TKey, TValue>(key, value))) 220if (self.Contains(new KeyValuePair<TKey, TValue>(key, value)))
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110if (Contains(new KeyValuePair<TKey, TValue>(key, value)))
src\Dependencies\Collections\SegmentedDictionary`2.cs (4)
379array[index++] = new KeyValuePair<TKey, TValue>(entries[i]._key, entries[i]._value); 931objects[index++] = new KeyValuePair<TKey, TValue>(entries[i]._key, entries[i]._value); 1205_current = new KeyValuePair<TKey, TValue>(entry._key, entry._value); 1235return new KeyValuePair<TKey, TValue>(_current.Key, _current.Value);
TreeDumper.cs (2)
261stack.Push(new KeyValuePair<TreeDumperNode?, TreeDumperNode>(null, this)); 269stack.Push(new KeyValuePair<TreeDumperNode?, TreeDumperNode>(currentNode, child));
Microsoft.CodeAnalysis.CodeStyle (11)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
217properties = properties.AddRange(tagIndices.Select(kvp => new KeyValuePair<string, string?>(kvp.Key, EncodeIndices(kvp.Value, additionalLocations.Count()))));
src\Compilers\Core\Portable\InternalUtilities\KeyValuePairUtil.cs (1)
13return new KeyValuePair<K, V>(key, value);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
64yield return new KeyValuePair<K, SetWithInsertionOrder<V>>(
src\Dependencies\Collections\ImmutableSegmentedDictionary.cs (1)
81.AddRange(source.Select(element => new KeyValuePair<TKey, TValue>(keySelector(element), elementSelector(element))));
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (2)
147if (self.Contains(new KeyValuePair<TKey, TValue>(key, value))) 220if (self.Contains(new KeyValuePair<TKey, TValue>(key, value)))
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110if (Contains(new KeyValuePair<TKey, TValue>(key, value)))
src\Dependencies\Collections\SegmentedDictionary`2.cs (4)
379array[index++] = new KeyValuePair<TKey, TValue>(entries[i]._key, entries[i]._value); 931objects[index++] = new KeyValuePair<TKey, TValue>(entries[i]._key, entries[i]._value); 1205_current = new KeyValuePair<TKey, TValue>(entry._key, entry._value); 1235return new KeyValuePair<TKey, TValue>(_current.Key, _current.Value);
Microsoft.CodeAnalysis.Collections.Package (8)
ImmutableSegmentedDictionary.cs (1)
81.AddRange(source.Select(element => new KeyValuePair<TKey, TValue>(keySelector(element), elementSelector(element))));
ImmutableSegmentedDictionary`2.cs (2)
147if (self.Contains(new KeyValuePair<TKey, TValue>(key, value))) 220if (self.Contains(new KeyValuePair<TKey, TValue>(key, value)))
ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110if (Contains(new KeyValuePair<TKey, TValue>(key, value)))
SegmentedDictionary`2.cs (4)
379array[index++] = new KeyValuePair<TKey, TValue>(entries[i]._key, entries[i]._value); 931objects[index++] = new KeyValuePair<TKey, TValue>(entries[i]._key, entries[i]._value); 1205_current = new KeyValuePair<TKey, TValue>(entry._key, entry._value); 1235return new KeyValuePair<TKey, TValue>(_current.Key, _current.Value);
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Attributes.cs (2)
816visitedArgument = new KeyValuePair<String, TypedConstant>(fa.FieldSymbol.Name, VisitExpression(assignment.Right, diagnostics, ref attrHasErrors, assignment.HasAnyErrors)); 821visitedArgument = new KeyValuePair<String, TypedConstant>(pa.PropertySymbol.Name, VisitExpression(assignment.Right, diagnostics, ref attrHasErrors, assignment.HasAnyErrors));
CodeGen\EmitStatement.cs (1)
1243dispatch.Cases.Select(p => new KeyValuePair<ConstantValue, object>(p.value, p.label)).ToArray(),
Symbols\Compilation_WellKnownMembers.cs (1)
427builder.Add(new KeyValuePair<string, TypedConstant>(
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1281newArguments.Add(new KeyValuePair<string, TypedConstant>(oldArgument.Key, newConstant));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\StatementMatchingTests.cs (1)
39new KeyValuePair<SyntaxNode, SyntaxNode>(((BlockSyntax)m1.RootNodes.First()).Statements[1], ((BlockSyntax)m2.RootNodes.First()).Statements[0])
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ObjectFormatterTests.cs (1)
602var obj = new KeyValuePair<int, string>(1, "x");
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\InterceptorsTests.cs (12)
5261var resolver = new SourceFileResolver([], null, [new KeyValuePair<string, string>(pathPrefix, "/_/")]); 5316var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, "/_/")); 5352var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, "/_/")); 5386var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, "/_/")); 5456new KeyValuePair<string, string>(pathPrefix1, "/_/"), 5457new KeyValuePair<string, string>(pathPrefix2, "/_/") 5495var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, @"\_\")); 5530var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, @"\_/")); 5572var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, @"\_/")); 6013var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, "/_/")); 6054var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(pathPrefix, "/_/")); 6116var pathMap = ImmutableArray.Create(new KeyValuePair<string, string>(directory2, "./"));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Symbols\IndexerTests.cs (5)
153new KeyValuePair<string, string>("System.Object IC.this[System.String index].get", "System.Object B.this[System.String index].get"), 154new KeyValuePair<string, string>("void IC.this[System.String index].set", "void B.this[System.String index].set"), 164new KeyValuePair<string, string>("System.Object IB.this[System.String index].get", "System.Object C.this[System.String index].get"), 165new KeyValuePair<string, string>("System.Object IC.this[System.String index].get", "System.Object C.this[System.String index].get"), 166new KeyValuePair<string, string>("void IC.this[System.String index].set", "void C.this[System.String index].set"),
Symbols\Metadata\PE\LoadingAttributes.cs (1)
537new AttributeArgs(null, new KeyValuePair<string, string>[]{ new KeyValuePair<string, string>("WrapNonExceptionThrows", "True")} )
Symbols\Source\FileModifierTests.cs (1)
841ImmutableArray.Create(new KeyValuePair<string, string>(root2, root1)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Diagnostics\DiagnosticTest.cs (5)
2911var expected = new KeyValuePair<string, string>(expectedFrom, expectedTo); 2926Assert.Equal(new KeyValuePair<string, string>("C:\\temp/goo" + sep, "/temp\\goo" + sep), parse("/pathmap:C:\\temp/goo=/temp\\goo", "a.cs").PathMap[0]); 2927Assert.Equal(new KeyValuePair<string, string>("noslash" + sep, "withoutslash" + sep), parse("/pathmap:noslash=withoutslash", "a.cs").PathMap[0]); 2929Assert.Equal(new KeyValuePair<string, string>("/temp/", "/goo/"), doublemap[0]); 2930Assert.Equal(new KeyValuePair<string, string>("/temp/", "/bar/"), doublemap[1]);
Parsing\CSharpParseOptionsTests.cs (1)
34var kvp = new KeyValuePair<string, string>("IOperation", "true");
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
TestOptions.cs (3)
108return options.WithFeatures(options.Features.Concat(new[] { new KeyValuePair<string, string>("strict", "true") })); 113return options.WithFeatures(options.Features.Concat(new[] { new KeyValuePair<string, string>("peverify-compat", "true") })); 148return options.WithFeatures(options.Features.Concat(new[] { new KeyValuePair<string, string>(feature, value) }));
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
217properties = properties.AddRange(tagIndices.Select(kvp => new KeyValuePair<string, string?>(kvp.Key, EncodeIndices(kvp.Value, additionalLocations.Count()))));
Microsoft.CodeAnalysis.InteractiveHost (8)
src\Dependencies\Collections\ImmutableSegmentedDictionary.cs (1)
81.AddRange(source.Select(element => new KeyValuePair<TKey, TValue>(keySelector(element), elementSelector(element))));
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (2)
147if (self.Contains(new KeyValuePair<TKey, TValue>(key, value))) 220if (self.Contains(new KeyValuePair<TKey, TValue>(key, value)))
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110if (Contains(new KeyValuePair<TKey, TValue>(key, value)))
src\Dependencies\Collections\SegmentedDictionary`2.cs (4)
379array[index++] = new KeyValuePair<TKey, TValue>(entries[i]._key, entries[i]._value); 931objects[index++] = new KeyValuePair<TKey, TValue>(entries[i]._key, entries[i]._value); 1205_current = new KeyValuePair<TKey, TValue>(entry._key, entry._value); 1235return new KeyValuePair<TKey, TValue>(_current.Key, _current.Value);
Microsoft.CodeAnalysis.LanguageServer (3)
Logging\RoslynLogger.cs (3)
248properties.Add(new(GetPropertyName(id, name), val)); 253properties.Add(new(GetPropertyName(id, "Message"), logMessage.GetMessage())); 258properties.Add(new(GetPropertyName(id, "Delta"), delta.Value));
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Options\SolutionAnalyzerConfigOptionsUpdaterTests.cs (2)
60new KeyValuePair<OptionKey2, object?>(new OptionKey2(FormattingOptions2.IndentationSize, LanguageNames.CSharp), 3), 61new KeyValuePair<OptionKey2, object?>(new OptionKey2(FormattingOptions2.IndentationSize, LanguageNames.VisualBasic), 5)
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
BasicDeterministicKeyBuilderTests.cs (1)
182var parseOptions = VisualBasicParseOptions.Default.WithPreprocessorSymbols(values.Select(x => new KeyValuePair<string, object>(x.Key, x.Value!)));
DeterministicKeyBuilderTests.cs (1)
470.WithFeatures(features.Select(x => new KeyValuePair<string, string>(x.Key, x.Value)));
Microsoft.CodeAnalysis.Test.Utilities (2)
Assert\DiffUtil.cs (1)
147yield return new KeyValuePair<int, int>(i, j);
Traits\CompilerTraitDiscoverer.cs (1)
25yield return new KeyValuePair<string, string>("Compiler", value);
Microsoft.CodeAnalysis.Threading.Package (8)
src\Dependencies\Collections\ImmutableSegmentedDictionary.cs (1)
81.AddRange(source.Select(element => new KeyValuePair<TKey, TValue>(keySelector(element), elementSelector(element))));
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (2)
147if (self.Contains(new KeyValuePair<TKey, TValue>(key, value))) 220if (self.Contains(new KeyValuePair<TKey, TValue>(key, value)))
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110if (Contains(new KeyValuePair<TKey, TValue>(key, value)))
src\Dependencies\Collections\SegmentedDictionary`2.cs (4)
379array[index++] = new KeyValuePair<TKey, TValue>(entries[i]._key, entries[i]._value); 931objects[index++] = new KeyValuePair<TKey, TValue>(entries[i]._key, entries[i]._value); 1205_current = new KeyValuePair<TKey, TValue>(entry._key, entry._value); 1235return new KeyValuePair<TKey, TValue>(_current.Key, _current.Value);
Microsoft.CodeAnalysis.UnitTests (26)
Collections\ImmutableDictionaryBuilderTestBase.cs (6)
27builder.Add(new KeyValuePair<string, int>("six", 6)); 82Assert.True(builder.Contains(new KeyValuePair<string, int>("five", 5))); 90Assert.True(builder.Remove(new KeyValuePair<string, int>("five", 5))); 91Assert.False(builder.Remove(new KeyValuePair<string, int>("foo", 1))); 114Assert.Equal(new KeyValuePair<string, int>("five", 5), array[1]); 248Assert.Equal(new object?[] { null, new KeyValuePair<string, int>("b", 2) }, array);
Collections\ImmutableDictionaryTestBase.cs (9)
81new KeyValuePair<string, int>("Microsoft", 80), 82new KeyValuePair<string, int>("Microsoft", 70), 90new KeyValuePair<string, int>("a", 1), new KeyValuePair<string, int>("b", 2), 91new KeyValuePair<string, int>("a", 3), 247Assert.False(empty.Contains(new KeyValuePair<K, V?>(someKey, default(V)))); 263Assert.True(IsSame(map, map.AddRange(new[] { new KeyValuePair<TKey, TValue>(key, value2) }))); 301Assert.False(map.Contains(new KeyValuePair<TKey, TValue>(key, value))); 303Assert.True(map.Add(key, value).Contains(new KeyValuePair<TKey, TValue>(key, value)));
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (3)
91map = map.AddRange(Enumerable.Range(1, 100).Select(n => new KeyValuePair<int, GenericParameterHelper>(n, new GenericParameterHelper()))); 200var list = new List<KeyValuePair<int, int>> { new KeyValuePair<int, int>(3, 5), new KeyValuePair<int, int>(8, 10) };
Collections\ImmutableSegmentedDictionaryBuilderTest.cs (4)
97.AddRange(Enumerable.Range(1, 10).Select(n => new KeyValuePair<int, string?>(n, null))) 100Enumerable.Range(1, 10).Select(n => new KeyValuePair<int, string?>(n, null)), 109Enumerable.Range(1, 11).Select(n => new KeyValuePair<int, string?>(n, null)), 119Enumerable.Range(1, 11).Select(n => new KeyValuePair<int, string?>(n, null)),
Collections\SegmentedCollectionsMarshalTests.cs (2)
701SegmentedDictionary<int, TValue> dictionary = new SegmentedDictionary<int, TValue>(Enumerable.Range(0, 17).Select(x => new KeyValuePair<int, TValue>(x, createValue()))); 768ImmutableSegmentedDictionary<int, T> immutableDictionary = ImmutableSegmentedDictionary.CreateRange(Enumerable.Range(0, 17).Select(x => new KeyValuePair<int, T>(x, createValue())));
Diagnostics\AnalysisContextInfoTests.cs (1)
27.WithFeatures(new[] { new KeyValuePair<string, string>("IOperation", "true") });
InternalUtilities\ConcurrentLruCacheTests.cs (1)
49_store[_index++] = new KeyValuePair<K, V>(key, value);
Microsoft.CodeAnalysis.VisualBasic (9)
Binding\Binder_XmlLiterals.vb (1)
848importedNamespaces.Add(New KeyValuePair(Of String, String)(prefix, [namespace]))
Symbols\NamedTypeSymbol.vb (2)
334Select New KeyValuePair(Of String, ImmutableArray(Of Symbol))(name, Me.GetMembers(name))) 377Select New KeyValuePair(Of String, ImmutableArray(Of Symbol))(name, Me.GetMembers(name)))
Symbols\ReducedExtensionMethodSymbol.vb (1)
195fixed.Add(New KeyValuePair(Of TypeParameterSymbol, TypeSymbol)(typeParametersToFixArray(i), fixWithArray(i)))
Symbols\TypeSubstitution.vb (5)
450pairs.Add(New KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)(param, arg)) 611pairs(i) = New KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)(typeParametersDefinitions(i), New TypeWithModifiers(alphaRenamedTypeParameters(i))) 680pairs(countOfMeaningfulPairs) = New KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)(typeParametersDefinitions(i), argument) 780pairs.Add(New KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)(oldPairs(i).Key, newValue)) 852pairs(pairIndex) = New KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)(typeParametersDefinitions(i), args(i))
Microsoft.CodeAnalysis.Workspaces (10)
src\Compilers\Core\Portable\InternalUtilities\KeyValuePairUtil.cs (1)
13return new KeyValuePair<K, V>(key, value);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
64yield return new KeyValuePair<K, SetWithInsertionOrder<V>>(
src\Dependencies\Collections\ImmutableSegmentedDictionary.cs (1)
81.AddRange(source.Select(element => new KeyValuePair<TKey, TValue>(keySelector(element), elementSelector(element))));
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (2)
147if (self.Contains(new KeyValuePair<TKey, TValue>(key, value))) 220if (self.Contains(new KeyValuePair<TKey, TValue>(key, value)))
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110if (Contains(new KeyValuePair<TKey, TValue>(key, value)))
src\Dependencies\Collections\SegmentedDictionary`2.cs (4)
379array[index++] = new KeyValuePair<TKey, TValue>(entries[i]._key, entries[i]._value); 931objects[index++] = new KeyValuePair<TKey, TValue>(entries[i]._key, entries[i]._value); 1205_current = new KeyValuePair<TKey, TValue>(entry._key, entry._value); 1235return new KeyValuePair<TKey, TValue>(_current.Key, _current.Value);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
72copy[index++] = new KeyValuePair<K, V>(key,
src\Compilers\Core\Portable\InternalUtilities\KeyValuePairUtil.cs (1)
13return new KeyValuePair<K, V>(key, value);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
64yield return new KeyValuePair<K, SetWithInsertionOrder<V>>(
src\Dependencies\Collections\ImmutableSegmentedDictionary.cs (1)
81.AddRange(source.Select(element => new KeyValuePair<TKey, TValue>(keySelector(element), elementSelector(element))));
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (2)
147if (self.Contains(new KeyValuePair<TKey, TValue>(key, value))) 220if (self.Contains(new KeyValuePair<TKey, TValue>(key, value)))
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
110if (Contains(new KeyValuePair<TKey, TValue>(key, value)))
src\Dependencies\Collections\SegmentedDictionary`2.cs (4)
379array[index++] = new KeyValuePair<TKey, TValue>(entries[i]._key, entries[i]._value); 931objects[index++] = new KeyValuePair<TKey, TValue>(entries[i]._key, entries[i]._value); 1205_current = new KeyValuePair<TKey, TValue>(entry._key, entry._value); 1235return new KeyValuePair<TKey, TValue>(_current.Key, _current.Value);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (12)
VisualStudioMSBuildWorkspaceTests.cs (12)
1875new KeyValuePair<string, object>("_MyType", "Windows"), 1876new KeyValuePair<string, object>("CONFIG", "Debug"), 1877new KeyValuePair<string, object>("DEBUG", -1), 1878new KeyValuePair<string, object>("F", false), 1879new KeyValuePair<string, object>("PLATFORM", "AnyCPU"), 1880new KeyValuePair<string, object>("T", -1), 1881new KeyValuePair<string, object>("TARGET", "library"), 1882new KeyValuePair<string, object>("TRACE", -1), 1883new KeyValuePair<string, object>("VBC_VER", 123), 1884new KeyValuePair<string, object>("X", 1), 1885new KeyValuePair<string, object>("Y", 2), 1886new KeyValuePair<string, object>("Z", true),
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\SourceGeneratorExecutionVersionMapTests.cs (2)
23var project1Kvp = new KeyValuePair<ProjectId, SourceGeneratorExecutionVersion>(projectId1, new(MajorVersion: 1, MinorVersion: 1)); 24var project2Kvp = new KeyValuePair<ProjectId, SourceGeneratorExecutionVersion>(projectId2, new(MajorVersion: 2, MinorVersion: 2));
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (1)
451result.Add(new KeyValuePair<string, object>(name, value));
Microsoft.Data.Analysis (1)
DataFrameRow.cs (1)
42return _dataFrame.Columns.Select(col => new KeyValuePair<string, object>(col.Name, col[_rowIndex]));
Microsoft.DotNet.Arcade.Sdk (2)
src\InstallDotNetCore.cs (1)
227items.Add(new KeyValuePair<string, string>(version.GetString(), architecture));
src\SaveItems.cs (1)
39metadataPairs = metadata.Keys.OfType<string>().Select(key => new KeyValuePair<string, string>(key, metadata[key] as string));
Microsoft.DotNet.Build.Tasks.Packaging (1)
PackageIndex.cs (1)
577yield return new KeyValuePair<NuGetFramework, Version>(fx, assemblyVersion);
Microsoft.DotNet.Helix.Client (2)
generated-code\HelixApi.cs (2)
416Add(new KeyValuePair<string, string>(key, str)); 421Add(new KeyValuePair<string, string>(key, value));
Microsoft.DotNet.NuGetRepack.Tests (1)
TestHelpers\DiffUtil.cs (1)
144yield return new KeyValuePair<int, int>(i, j);
Microsoft.DotNet.SignTool (1)
src\Configuration.cs (1)
219_filesToCopy.Add(new KeyValuePair<string, string>(existingSignInfo.FullPath, file.FullPath));
Microsoft.DotNet.XUnitAssert.Tests (45)
EqualityAssertsTests.cs (32)
1568 var expected = new KeyValuePair<IEnumerable<string>, int>(new List<string> { "Key1", "Key2" }, 42); 1569 var actual = new KeyValuePair<IEnumerable<string>, int>(new string[] { "Key1", "Key2" }, 42); 1578 var expected = new KeyValuePair<IEnumerable<string>, int>(new List<string> { "Key1", "Key2" }, 42); 1579 var actual = new KeyValuePair<IEnumerable<string>, int>(new string[] { "Key1", "Key3" }, 42); 1596 var expected = new KeyValuePair<string, IEnumerable<string>>("Key1", new List<string> { "Value1a", "Value1b" }); 1597 var actual = new KeyValuePair<string, IEnumerable<string>>("Key1", new string[] { "Value1a", "Value1b" }); 1606 var expected = new KeyValuePair<string, IEnumerable<string>>("Key1", new List<string> { "Value1a", "Value1b" }); 1607 var actual = new KeyValuePair<string, IEnumerable<string>>("Key1", new string[] { "Value1a", "Value2a" }); 1627 var expected = new KeyValuePair<EquatableObject, int>(new() { Char = 'a' }, 42); 1628 var actual = new KeyValuePair<EquatableObject, int>(new() { Char = 'a' }, 42); 1636 var expected = new KeyValuePair<EquatableObject, int>(new() { Char = 'a' }, 42); 1637 var actual = new KeyValuePair<EquatableObject, int>(new() { Char = 'b' }, 42); 1657 var expected = new KeyValuePair<string, EquatableObject>("Key1", new() { Char = 'a' }); 1658 var actual = new KeyValuePair<string, EquatableObject>("Key1", new() { Char = 'a' }); 1666 var expected = new KeyValuePair<string, EquatableObject>("Key1", new() { Char = 'a' }); 1667 var actual = new KeyValuePair<string, EquatableObject>("Key1", new() { Char = 'b' }); 3796 var expected = new KeyValuePair<IEnumerable<string>, int>(new List<string> { "Key1", "Key2" }, 42); 3797 var actual = new KeyValuePair<IEnumerable<string>, int>(new string[] { "Key1", "Key2" }, 42); 3814 var expected = new KeyValuePair<IEnumerable<string>, int>(new List<string> { "Key1", "Key2" }, 42); 3815 var actual = new KeyValuePair<IEnumerable<string>, int>(new string[] { "Key1", "Key3" }, 42); 3824 var expected = new KeyValuePair<string, IEnumerable<string>>("Key1", new List<string> { "Value1a", "Value1b" }); 3825 var actual = new KeyValuePair<string, IEnumerable<string>>("Key1", new string[] { "Value1a", "Value1b" }); 3842 var expected = new KeyValuePair<string, IEnumerable<string>>("Key1", new List<string> { "Value1a", "Value1b" }); 3843 var actual = new KeyValuePair<string, IEnumerable<string>>("Key1", new string[] { "Value1a", "Value2a" }); 3855 var expected = new KeyValuePair<EquatableObject, int>(new() { Char = 'a' }, 42); 3856 var actual = new KeyValuePair<EquatableObject, int>(new() { Char = 'a' }, 42); 3872 var expected = new KeyValuePair<EquatableObject, int>(new() { Char = 'a' }, 42); 3873 var actual = new KeyValuePair<EquatableObject, int>(new() { Char = 'b' }, 42); 3885 var expected = new KeyValuePair<string, EquatableObject>("Key1", new() { Char = 'a' }); 3886 var actual = new KeyValuePair<string, EquatableObject>("Key1", new() { Char = 'a' }); 3902 var expected = new KeyValuePair<string, EquatableObject>("Key1", new() { Char = 'a' }); 3903 var actual = new KeyValuePair<string, EquatableObject>("Key1", new() { Char = 'b' });
EquivalenceAssertsTests.cs (12)
1354 var expected = new KeyValuePair<int, int[]>(42, new[] { 1, 4 }); 1355 var actual = new KeyValuePair<int, int[]>(42, new[] { 9, 4, 1 }); 1363 var expected = new KeyValuePair<int, int[]>(42, new[] { 1, 4 }); 1364 var actual = new KeyValuePair<int, int[]>(41, new[] { 9, 4, 1 }); 1380 var expected = new KeyValuePair<int, int[]>(42, new[] { 1, 6 }); 1381 var actual = new KeyValuePair<int, int[]>(42, new[] { 9, 4, 1 }); 1400 var expected = new KeyValuePair<int, int[]>(42, new[] { 1, 4 }); 1401 var actual = new KeyValuePair<int, int[]>(42, new[] { 4, 1 }); 1409 var expected = new KeyValuePair<int, int[]>(42, new[] { 1, 4 }); 1410 var actual = new KeyValuePair<int, int[]>(41, new[] { 4, 1 }); 1426 var expected = new KeyValuePair<int, int[]>(42, new[] { 1, 6 }); 1427 var actual = new KeyValuePair<int, int[]>(42, new[] { 4, 1 });
Sdk\ArgumentFormatterTests.cs (1)
293 var kvp = new KeyValuePair<object, List<object>>(42, new() { 21.12M, "2600" });
Microsoft.DotNet.XUnitExtensions (11)
DiscovererHelpers.cs (2)
103yield return new KeyValuePair<string, string>(XunitConstants.Category, category); 110yield return new KeyValuePair<string, string>(XunitConstants.Category, category);
Discoverers\ConditionalClassDiscoverer.cs (1)
30yield return new KeyValuePair<string, string>(XunitConstants.Category, XunitConstants.Failing);
Discoverers\OuterLoopTestsDiscoverer.cs (1)
27return new[] { new KeyValuePair<string, string>(XunitConstants.Category, XunitConstants.OuterLoop) };
Discoverers\PlatformSpecificDiscoverer.cs (1)
30new[] { new KeyValuePair<string, string>(XunitConstants.Category, XunitConstants.Failing) };
Discoverers\SkipOnCIDiscoverer.cs (1)
23yield return new KeyValuePair<string, string>(XunitConstants.Category, XunitConstants.Failing);
Discoverers\SkipOnCoreClrDiscoverer.cs (1)
53return new[] { new KeyValuePair<string, string>(XunitConstants.Category, XunitConstants.Failing) };
Discoverers\SkipOnMonoDiscoverer.cs (1)
29return new[] { new KeyValuePair<string, string>(XunitConstants.Category, XunitConstants.Failing) };
Discoverers\SkipOnPlatformDiscoverer.cs (1)
27return new[] { new KeyValuePair<string, string>(XunitConstants.Category, XunitConstants.Failing) };
Discoverers\SkipOnTargetFrameworkDiscoverer.cs (1)
29new[] { new KeyValuePair<string, string>(XunitConstants.Category, XunitConstants.Failing) } :
Discoverers\TestCategoryDiscoverer.cs (1)
27yield return new KeyValuePair<string, string>("Category", ctorArgs[0].ToString());
Microsoft.Extensions.AI.Abstractions (3)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (3)
160derivedTypeDiscriminator = new(typeDiscriminatorKey, discriminatorSchema); 328(properties ??= new()).Add(new(property.Name, propertySchema)); 385new(ValuesKeyword,
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
1111public IEnumerator<KeyValuePair<string, int>> GetEnumerator() => Enumerable.Repeat(new KeyValuePair<string, int>(nameof(BaseValue), BaseValue), 1).GetEnumerator();
Microsoft.Extensions.AI.Tests (21)
ChatCompletion\OpenTelemetryChatClientTests.cs (8)
206log => Assert.Equal(new KeyValuePair<string, string?>("event.name", "gen_ai.system.message"), ((IList<KeyValuePair<string, string?>>)log.State!)[0]), 207log => Assert.Equal(new KeyValuePair<string, string?>("event.name", "gen_ai.user.message"), ((IList<KeyValuePair<string, string?>>)log.State!)[0]), 208log => Assert.Equal(new KeyValuePair<string, string?>("event.name", "gen_ai.assistant.message"), ((IList<KeyValuePair<string, string?>>)log.State!)[0]), 209log => Assert.Equal(new KeyValuePair<string, string?>("event.name", "gen_ai.tool.message"), ((IList<KeyValuePair<string, string?>>)log.State!)[0]), 210log => Assert.Equal(new KeyValuePair<string, string?>("event.name", "gen_ai.assistant.message"), ((IList<KeyValuePair<string, string?>>)log.State!)[0]), 211log => Assert.Equal(new KeyValuePair<string, string?>("event.name", "gen_ai.user.message"), ((IList<KeyValuePair<string, string?>>)log.State!)[0]), 212log => Assert.Equal(new KeyValuePair<string, string?>("event.name", "gen_ai.choice"), ((IList<KeyValuePair<string, string?>>)log.State!)[0])); 216Assert.Equal(new KeyValuePair<string, string?>("gen_ai.system", "testservice"), ((IList<KeyValuePair<string, string?>>)log.State!)[1]);
Functions\AIFunctionFactoryTest.cs (13)
31AssertExtensions.EqualFunctionCallResults("test test", await func.InvokeAsync([new KeyValuePair<string, object?>("a", "test")])); 34AssertExtensions.EqualFunctionCallResults("hello world", await func.InvokeAsync([new KeyValuePair<string, object?>("b", "hello"), new KeyValuePair<string, object?>("a", "world")])); 37AssertExtensions.EqualFunctionCallResults(3L, await func.InvokeAsync([new KeyValuePair<string, object?>("a", 1), new KeyValuePair<string, object?>("b", 2L)])); 45AssertExtensions.EqualFunctionCallResults("hello hello", await func.InvokeAsync([new KeyValuePair<string, object?>("a", "hello")])); 92AssertExtensions.EqualFunctionCallResults("test test", await func.InvokeAsync([new KeyValuePair<string, object?>("a", "test")])); 95AssertExtensions.EqualFunctionCallResults("hello world", await func.InvokeAsync([new KeyValuePair<string, object?>("b", "hello"), new KeyValuePair<string, object?>("a", "world")])); 99AssertExtensions.EqualFunctionCallResults(null, await func.InvokeAsync([new KeyValuePair<string, object?>("a", 1), new KeyValuePair<string, object?>("b", 2L)])); 104AssertExtensions.EqualFunctionCallResults(null, await func.InvokeAsync([new KeyValuePair<string, object?>("a", 1), new KeyValuePair<string, object?>("b", 2L)]));
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
727if (StringEntriesCollection.Remove(new KeyValuePair<string, CacheEntry>(s, entry))) 736else if (NonStringEntriesCollection.Remove(new KeyValuePair<object, CacheEntry>(entry.Key, entry)))
Microsoft.Extensions.Configuration.Abstractions (1)
ConfigurationExtensions.cs (1)
65yield return new KeyValuePair<string, string?>(section.Path.Substring(prefixLength), section.Value);
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
ConfigurationProviderTestBase.cs (1)
362values.Add(new KeyValuePair<string, string>(sectionName + tuple.Key, tuple.Value));
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteFactory.cs (1)
351callSitesByIndex.Add(new(index, callSite));
Microsoft.Extensions.Diagnostics.HealthChecks (3)
DefaultHealthCheckService.cs (1)
285_values.Add(new KeyValuePair<string, object>("HealthCheckName", name));
HealthCheckLogScope.cs (2)
22return new KeyValuePair<string, object>(nameof(HealthCheckName), HealthCheckName); 40yield return new KeyValuePair<string, object>(nameof(HealthCheckName), HealthCheckName);
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (3)
DefaultHealthCheckServiceTest.cs (3)
226kvp => Assert.Equal(kvp, new KeyValuePair<string, object>("name", "A"))); 233kvp => Assert.Equal(kvp, new KeyValuePair<string, object>("name", "B"))); 240kvp => Assert.Equal(kvp, new KeyValuePair<string, object>("name", "C")));
Microsoft.Extensions.Diagnostics.ResourceMonitoring (52)
Linux\Network\LinuxNetworkMetrics.cs (25)
26KeyValuePair<string, object?> tcpTag = new("network.transport", "tcp"); 45KeyValuePair<string, object?> tcpVersionFourTag = new(NetworkTypeKey, "ipv4"); 46KeyValuePair<string, object?> tcpVersionSixTag = new(NetworkTypeKey, "ipv6"); 52measurements.Add(new Measurement<long>(stateV4.ClosedCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "close") })); 53measurements.Add(new Measurement<long>(stateV4.ListenCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "listen") })); 54measurements.Add(new Measurement<long>(stateV4.SynSentCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "syn_sent") })); 55measurements.Add(new Measurement<long>(stateV4.SynRcvdCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "syn_recv") })); 56measurements.Add(new Measurement<long>(stateV4.EstabCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "established") })); 57measurements.Add(new Measurement<long>(stateV4.FinWait1Count, new TagList { tcpVersionFourTag, new(NetworkStateKey, "fin_wait_1") })); 58measurements.Add(new Measurement<long>(stateV4.FinWait2Count, new TagList { tcpVersionFourTag, new(NetworkStateKey, "fin_wait_2") })); 59measurements.Add(new Measurement<long>(stateV4.CloseWaitCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "close_wait") })); 60measurements.Add(new Measurement<long>(stateV4.ClosingCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "closing") })); 61measurements.Add(new Measurement<long>(stateV4.LastAckCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "last_ack") })); 62measurements.Add(new Measurement<long>(stateV4.TimeWaitCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "time_wait") })); 66measurements.Add(new Measurement<long>(stateV6.ClosedCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "close") })); 67measurements.Add(new Measurement<long>(stateV6.ListenCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "listen") })); 68measurements.Add(new Measurement<long>(stateV6.SynSentCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "syn_sent") })); 69measurements.Add(new Measurement<long>(stateV6.SynRcvdCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "syn_recv") })); 70measurements.Add(new Measurement<long>(stateV6.EstabCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "established") })); 71measurements.Add(new Measurement<long>(stateV6.FinWait1Count, new TagList { tcpVersionSixTag, new(NetworkStateKey, "fin_wait_1") })); 72measurements.Add(new Measurement<long>(stateV6.FinWait2Count, new TagList { tcpVersionSixTag, new(NetworkStateKey, "fin_wait_2") })); 73measurements.Add(new Measurement<long>(stateV6.CloseWaitCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "close_wait") })); 74measurements.Add(new Measurement<long>(stateV6.ClosingCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "closing") })); 75measurements.Add(new Measurement<long>(stateV6.LastAckCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "last_ack") })); 76measurements.Add(new Measurement<long>(stateV6.TimeWaitCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "time_wait") }));
Windows\Network\WindowsNetworkMetrics.cs (27)
26KeyValuePair<string, object?> tcpTag = new("network.transport", "tcp"); 45KeyValuePair<string, object?> tcpVersionFourTag = new(NetworkTypeKey, "ipv4"); 46KeyValuePair<string, object?> tcpVersionSixTag = new(NetworkTypeKey, "ipv6"); 52measurements.Add(new Measurement<long>(stateV4.ClosedCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "close") })); 53measurements.Add(new Measurement<long>(stateV4.ListenCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "listen") })); 54measurements.Add(new Measurement<long>(stateV4.SynSentCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "syn_sent") })); 55measurements.Add(new Measurement<long>(stateV4.SynRcvdCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "syn_recv") })); 56measurements.Add(new Measurement<long>(stateV4.EstabCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "established") })); 57measurements.Add(new Measurement<long>(stateV4.FinWait1Count, new TagList { tcpVersionFourTag, new(NetworkStateKey, "fin_wait_1") })); 58measurements.Add(new Measurement<long>(stateV4.FinWait2Count, new TagList { tcpVersionFourTag, new(NetworkStateKey, "fin_wait_2") })); 59measurements.Add(new Measurement<long>(stateV4.CloseWaitCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "close_wait") })); 60measurements.Add(new Measurement<long>(stateV4.ClosingCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "closing") })); 61measurements.Add(new Measurement<long>(stateV4.LastAckCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "last_ack") })); 62measurements.Add(new Measurement<long>(stateV4.TimeWaitCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "time_wait") })); 63measurements.Add(new Measurement<long>(stateV4.DeleteTcbCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "delete") })); 67measurements.Add(new Measurement<long>(stateV6.ClosedCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "close") })); 68measurements.Add(new Measurement<long>(stateV6.ListenCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "listen") })); 69measurements.Add(new Measurement<long>(stateV6.SynSentCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "syn_sent") })); 70measurements.Add(new Measurement<long>(stateV6.SynRcvdCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "syn_recv") })); 71measurements.Add(new Measurement<long>(stateV6.EstabCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "established") })); 72measurements.Add(new Measurement<long>(stateV6.FinWait1Count, new TagList { tcpVersionSixTag, new(NetworkStateKey, "fin_wait_1") })); 73measurements.Add(new Measurement<long>(stateV6.FinWait2Count, new TagList { tcpVersionSixTag, new(NetworkStateKey, "fin_wait_2") })); 74measurements.Add(new Measurement<long>(stateV6.CloseWaitCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "close_wait") })); 75measurements.Add(new Measurement<long>(stateV6.ClosingCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "closing") })); 76measurements.Add(new Measurement<long>(stateV6.LastAckCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "last_ack") })); 77measurements.Add(new Measurement<long>(stateV6.TimeWaitCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "time_wait") })); 78measurements.Add(new Measurement<long>(stateV6.DeleteTcbCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "delete") }));
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (6)
Linux\AcceptanceTest.cs (6)
50new($"{nameof(ResourceMonitoringOptions)}:{nameof(ResourceMonitoringOptions.CpuConsumptionRefreshInterval)}", cpuRefresh.ToString()), 51new($"{nameof(ResourceMonitoringOptions)}:{nameof(ResourceMonitoringOptions.MemoryConsumptionRefreshInterval)}", memoryRefresh.ToString()), 102new($"{nameof(ResourceMonitoringOptions)}:{nameof(ResourceMonitoringOptions.CpuConsumptionRefreshInterval)}", cpuRefresh.ToString()), 103new($"{nameof(ResourceMonitoringOptions)}:{nameof(ResourceMonitoringOptions.MemoryConsumptionRefreshInterval)}", memoryRefresh.ToString()), 151new($"{nameof(ResourceMonitoringOptions)}:{nameof(ResourceMonitoringOptions.CpuConsumptionRefreshInterval)}", cpuRefresh.ToString()), 152new($"{nameof(ResourceMonitoringOptions)}:{nameof(ResourceMonitoringOptions.MemoryConsumptionRefreshInterval)}", memoryRefresh.ToString()),
Microsoft.Extensions.Diagnostics.Testing (2)
Logging\FakeLogger.cs (2)
119l.Add(new KeyValuePair<string, string?>(pair.Key, ConvertToString(pair))); 123l.Add(new KeyValuePair<string, string?>(pair.Key, null));
Microsoft.Extensions.Diagnostics.Testing.Tests (39)
Logging\FakeLoggerTests.cs (5)
78new("K0", "V0"), 79new("K1", "V1"), 80new("K2", null), 81new("K3", new[] { 0, 1, 2 }), 134new("K0", dt),
Metrics\MeasurementExtensionsTests.cs (34)
21counter.Add(1, new("A", "a"), new("B", "b")); 22counter.Add(2, new("A", "a"), new("B", "b")); 23counter.Add(3, new("X", "x"), new("Y", "y")); 46counter.Add(1, new("A", "a"), new("B", "b")); 47counter.Add(2, new("A", "a"), new("B", "b")); 48counter.Add(3, new("X", "x"), new("Y", "y")); 52var filtered = fullSnap.ContainsTags(new KeyValuePair<string, object?>("A", "a")).ToList(); 60filtered = fullSnap.ContainsTags(new KeyValuePair<string, object?>("A", "X")).ToList(); 71counter.Add(1, new("A", "a"), new("B", "b")); 72counter.Add(2, new("A", "a"), new("B", "b")); 73counter.Add(3, new("X", "x"), new("Y", "y")); 99counter.Add(1, new("A", "a"), new("B", "b")); 100counter.Add(2, new("A", "a"), new("B", "b")); 101counter.Add(3, new("X", "x"), new("Y", "y")); 105var filtered = fullSnap.MatchesTags(new KeyValuePair<string, object?>("A", "a"), new("B", "b")).ToList(); 113filtered = fullSnap.MatchesTags(new KeyValuePair<string, object?>("A", "a")).ToList(); 116filtered = fullSnap.MatchesTags(new KeyValuePair<string, object?>("A", "a"), new("B", "x")).ToList(); 119filtered = fullSnap.MatchesTags(new KeyValuePair<string, object?>("A", "a"), new("B", "b"), new("C", "c")).ToList();
Microsoft.Extensions.Hosting (6)
HostApplicationBuilder.cs (3)
147optionList.Add(new KeyValuePair<string, string?>(HostDefaults.ApplicationKey, settings.ApplicationName)); 152optionList.Add(new KeyValuePair<string, string?>(HostDefaults.EnvironmentKey, settings.EnvironmentName)); 157optionList.Add(new KeyValuePair<string, string?>(HostDefaults.ContentRootKey, settings.ContentRootPath));
HostingHostBuilderExtensions.cs (3)
42new KeyValuePair<string, string?>(HostDefaults.EnvironmentKey, environment) 62new KeyValuePair<string, string?>(HostDefaults.ContentRootKey, contentRoot) 231new KeyValuePair<string, string?>(HostDefaults.ContentRootKey, cwd),
Microsoft.Extensions.Hosting.Testing (2)
FakeHostingExtensions.cs (2)
182source.InitialData = source.InitialData!.Concat(new[] { new KeyValuePair<string, string?>(key, value) }); 186_ = builder.Add(new FakeConfigurationSource(new KeyValuePair<string, string?>(key, value)));
Microsoft.Extensions.Hosting.Testing.Tests (2)
FakeConfigurationSourceTests.cs (2)
15new KeyValuePair<string, string?>("testKey", "testValue"), 16new KeyValuePair<string, string?>("anotherTestKey", "anotherTestValue"));
Microsoft.Extensions.Http (2)
Logging\HttpHeadersLogValue.cs (2)
43values.Add(new KeyValuePair<string, object>(kvp.Key, kvp.Value)); 50values.Add(new KeyValuePair<string, object>(kvp.Key, kvp.Value));
Microsoft.Extensions.Http.Diagnostics (12)
Logging\Internal\HttpHeadersReader.cs (2)
89destination.Add(new(header.Key, _redactor.Redact(header.Value, classification))); 104destination.Add(new(header, _redactor.Redact(values, classification)));
Logging\Internal\Log.cs (7)
104loggerMessageState.TagArray[index++] = new(HttpClientLoggingTagNames.Method, record.Method); 105loggerMessageState.TagArray[index++] = new(HttpClientLoggingTagNames.Host, record.Host); 106loggerMessageState.TagArray[index++] = new(HttpClientLoggingTagNames.Path, record.Path); 107loggerMessageState.TagArray[index++] = new(HttpClientLoggingTagNames.Duration, record.Duration); 111loggerMessageState.TagArray[index++] = new(HttpClientLoggingTagNames.StatusCode, record.StatusCode.Value); 131loggerMessageState.TagArray[index++] = new(HttpClientLoggingTagNames.RequestBody, record.RequestBody); 136loggerMessageState.TagArray[index] = new(HttpClientLoggingTagNames.ResponseBody, record.ResponseBody);
Logging\Internal\LoggerMessageStateExtensions.cs (3)
32state.TagArray[index++] = new(key, items[i].Value); 51state.TagArray[index++] = new(key, items[i].Value); 67state.TagArray[index++] = new(parameters[i].Name, parameters[i].Value);
Microsoft.Extensions.Http.Diagnostics.Tests (32)
Logging\HttpClientLoggingExtensionsTest.cs (2)
157var paramToRedact = new KeyValuePair<string, DataClassification>("userId", FakeTaxonomy.PrivateData); 266var paramToRedact = new KeyValuePair<string, DataClassification>("userId", FakeTaxonomy.PrivateData);
Logging\HttpHeadersReaderTest.cs (11)
86new KeyValuePair<string, string>("Header1", Redacted), 87new KeyValuePair<string, string>("Header2", Redacted) 92new KeyValuePair<string, string>("Header3", "Value.3"), 93new KeyValuePair<string, string>("Header4", "Value.4"), 94new KeyValuePair<string, string>("hEaDeR7", Redacted) 149List<KeyValuePair<string, string>> expectedRequest = [new KeyValuePair<string, string>("Header1", "Value.1")]; 150List<KeyValuePair<string, string>> expectedResponse = [new KeyValuePair<string, string>("Header3", "Value.3")]; 153expectedRequest.Add(new KeyValuePair<string, string>("Content-Header1", "Content.1")); 154expectedRequest.Add(new KeyValuePair<string, string>("Content-Type", MediaTypeNames.Application.Soap)); 156expectedResponse.Add(new KeyValuePair<string, string>("Content-Header2", "Content.2")); 157expectedResponse.Add(new KeyValuePair<string, string>("Content-Length", "24"));
Logging\HttpRequestReaderTest.cs (15)
44var header1 = new KeyValuePair<string, string>("Header1", "Value1"); 45var header2 = new KeyValuePair<string, string>("Header2", "Value2"); 46var header3 = new KeyValuePair<string, string>("Header3", "Value3"); 170var header1 = new KeyValuePair<string, string>("Header1", "Value1"); 171var header2 = new KeyValuePair<string, string>("Header2", "Value2"); 241var header1 = new KeyValuePair<string, string>("Header1", "Value1"); 242var header2 = new KeyValuePair<string, string>("Header2", "Value2"); 318var header1 = new KeyValuePair<string, string>("Header1", "Value1"); 319var header2 = new KeyValuePair<string, string>("Header2", "Value2"); 375var header1 = new KeyValuePair<string, string>("Header1", "Value1"); 376var header2 = new KeyValuePair<string, string>("Header2", "Value2"); 446var header1 = new KeyValuePair<string, string>("Header1", "Value1"); 447var header2 = new KeyValuePair<string, string>("Header2", "Value2"); 513var header1 = new KeyValuePair<string, string>("Header1", "Value1"); 514var header2 = new KeyValuePair<string, string>("Header2", "Value2");
Logging\Internal\TestEnricher.cs (2)
14internal readonly KeyValuePair<string, object?> KvpRequest = new("test key request", "test value"); 15internal readonly KeyValuePair<string, object?> KvpResponse = new("test key response", "test value");
Logging\LogRecordPoolingTest.cs (2)
20testObject.RequestHeaders!.Add(new KeyValuePair<string, string>("key1", "value1")); 21testObject.ResponseHeaders!.Add(new KeyValuePair<string, string>("key2", "value2"));
Microsoft.Extensions.Http.Resilience (1)
Resilience\Internal\HttpResilienceMetricsEnricher.cs (1)
21context.Tags.Add(new(HttpResilienceTagNames.ErrorType, ((int)response.StatusCode).ToInvariantString()));
Microsoft.Extensions.Http.Resilience.Tests (1)
Routing\RoutingStrategyTest.cs (1)
168return new ConfigurationBuilder().AddInMemoryCollection(values.Select(pair => new KeyValuePair<string, string?>("section:" + pair.Key, pair.Value))).Build().GetSection("section");
Microsoft.Extensions.Logging (6)
LoggerFactoryScopeProvider.cs (6)
145_items[count++] = new KeyValuePair<string, object?>("SpanId", activity.GetSpanId()); 150_items[count++] = new KeyValuePair<string, object?>("TraceId", activity.GetTraceId()); 155_items[count++] = new KeyValuePair<string, object?>("ParentId", activity.GetParentId()); 160_items[count++] = new KeyValuePair<string, object?>("TraceState", activity.TraceStateString); 165_items[count++] = new KeyValuePair<string, object?>("TraceFlags", activity.ActivityTraceFlags); 276public KeyValuePair<string, object?> Current => new KeyValuePair<string, object?>(_enumerator.Current.Key, _enumerator.Current.Value);
Microsoft.Extensions.Logging.Abstractions (33)
FormattedLogValues.cs (1)
71return new KeyValuePair<string, object?>("{OriginalFormat}", _originalMessage);
LoggerMessage.cs (28)
483return new KeyValuePair<string, object?>("{OriginalFormat}", _formatter.OriginalFormat); 524return new KeyValuePair<string, object?>(_formatter.ValueNames[0], _value0); 526return new KeyValuePair<string, object?>("{OriginalFormat}", _formatter.OriginalFormat); 574return new KeyValuePair<string, object?>(_formatter.ValueNames[0], _value0); 576return new KeyValuePair<string, object?>(_formatter.ValueNames[1], _value1); 578return new KeyValuePair<string, object?>("{OriginalFormat}", _formatter.OriginalFormat); 621return new KeyValuePair<string, object?>(_formatter.ValueNames[0], _value0); 623return new KeyValuePair<string, object?>(_formatter.ValueNames[1], _value1); 625return new KeyValuePair<string, object?>(_formatter.ValueNames[2], _value2); 627return new KeyValuePair<string, object?>("{OriginalFormat}", _formatter.OriginalFormat); 677return new KeyValuePair<string, object?>(_formatter.ValueNames[0], _value0); 679return new KeyValuePair<string, object?>(_formatter.ValueNames[1], _value1); 681return new KeyValuePair<string, object?>(_formatter.ValueNames[2], _value2); 683return new KeyValuePair<string, object?>(_formatter.ValueNames[3], _value3); 685return new KeyValuePair<string, object?>("{OriginalFormat}", _formatter.OriginalFormat); 739return new KeyValuePair<string, object?>(_formatter.ValueNames[0], _value0); 741return new KeyValuePair<string, object?>(_formatter.ValueNames[1], _value1); 743return new KeyValuePair<string, object?>(_formatter.ValueNames[2], _value2); 745return new KeyValuePair<string, object?>(_formatter.ValueNames[3], _value3); 747return new KeyValuePair<string, object?>(_formatter.ValueNames[4], _value4); 749return new KeyValuePair<string, object?>("{OriginalFormat}", _formatter.OriginalFormat); 805return new KeyValuePair<string, object?>(_formatter.ValueNames[0], _value0); 807return new KeyValuePair<string, object?>(_formatter.ValueNames[1], _value1); 809return new KeyValuePair<string, object?>(_formatter.ValueNames[2], _value2); 811return new KeyValuePair<string, object?>(_formatter.ValueNames[3], _value3); 813return new KeyValuePair<string, object?>(_formatter.ValueNames[4], _value4); 815return new KeyValuePair<string, object?>(_formatter.ValueNames[5], _value5); 817return new KeyValuePair<string, object?>("{OriginalFormat}", _formatter.OriginalFormat);
LogValuesFormatter.cs (4)
230return new KeyValuePair<string, object?>(_valueNames[index], values[index]); 233return new KeyValuePair<string, object?>("{OriginalFormat}", OriginalFormat); 241valueArray[index] = new KeyValuePair<string, object?>(_valueNames[index], values[index]); 244valueArray[valueArray.Length - 1] = new KeyValuePair<string, object?>("{OriginalFormat}", OriginalFormat);
Microsoft.Extensions.Logging.EventSource (5)
EventSourceLogger.cs (5)
139new KeyValuePair<string, string?>("TypeName", exceptionInfo.TypeName), 140new KeyValuePair<string, string?>("Message", exceptionInfo.Message), 141new KeyValuePair<string, string?>("HResult", exceptionInfo.HResult.ToString()), 142new KeyValuePair<string, string?>("VerboseMessage", exceptionInfo.VerboseMessage), 248arguments[i] = new KeyValuePair<string, string?>(keyValuePair.Key, keyValuePair.Value?.ToString());
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (4)
DependencyInjectionExtensionsTests.cs (4)
29new KeyValuePair<string, string?>($"My:Pools:{typeof(TestClass).FullName!}", "twenty!"), 30new KeyValuePair<string, string?>($"My:Pools:{typeof(TestDependency).FullName!}", "4096"), 47new KeyValuePair<string, string?>($"My:Pools:{typeof(TestClass).FullName!}", "2048"), 48new KeyValuePair<string, string?>($"My:Pools:{typeof(TestDependency).FullName!}", "4096"),
Microsoft.Extensions.Resilience (3)
Resilience\Internal\ResilienceMetricsEnricher.cs (3)
32context.Tags.Add(new(ResilienceTagNames.ErrorType, _exceptionSummarizer.Summarize(e).Description)); 37context.Tags.Add(new(ResilienceTagNames.RequestName, requestMetadata.RequestName)); 38context.Tags.Add(new(ResilienceTagNames.DependencyName, requestMetadata.DependencyName));
Microsoft.Extensions.SecretManager.Tools.Tests (10)
SecretManagerTests.cs (10)
90new KeyValuePair<string, string>("key1", Guid.NewGuid().ToString()), 91new KeyValuePair<string, string>("Facebook:AppId", Guid.NewGuid().ToString()), 92new KeyValuePair<string, string>(@"key-@\/.~123!#$%^&*())-+==", @"key-@\/.~123!#$%^&*())-+=="), 93new KeyValuePair<string, string>("key2", string.Empty), 94new KeyValuePair<string, string>("-oneDashedKey", "-oneDashedValue"), 95new KeyValuePair<string, string>("--twoDashedKey", "--twoDashedValue") 285new KeyValuePair<string, string>("key1", Guid.NewGuid().ToString()), 286new KeyValuePair<string, string>("Facebook:AppId", Guid.NewGuid().ToString()), 287new KeyValuePair<string, string>(@"key-@\/.~123!#$%^&*())-+==", @"key-@\/.~123!#$%^&*())-+=="), 288new KeyValuePair<string, string>("key2", string.Empty)
Microsoft.Extensions.Telemetry (13)
Enrichment\ApplicationLogEnricher.cs (4)
40l.Add(new(ApplicationEnricherTags.ApplicationName, applicationMetadata.ApplicationName)); 45l.Add(new(ApplicationEnricherTags.EnvironmentName, applicationMetadata.EnvironmentName)); 50l.Add(new(ApplicationEnricherTags.DeploymentRing, applicationMetadata.DeploymentRing)); 55l.Add(new(ApplicationEnricherTags.BuildVersion, applicationMetadata.BuildVersion));
Logging\ExtendedLogger.cs (2)
228msgState.RedactedTagArray[i] = new(cp.Name, jr); 232msgState.RedactedTagArray[i] = new(cp.Name, null);
Logging\ExtendedLogger.EnrichmentTagCollector.cs (1)
16public void Add(string key, object value) => extraTags.Add(new KeyValuePair<string, object?>(key, value));
Logging\Import\LoggerFactoryScopeProvider.cs (6)
161_items[count++] = new KeyValuePair<string, object?>("SpanId", activity.GetSpanId()); 166_items[count++] = new KeyValuePair<string, object?>("TraceId", activity.GetTraceId()); 171_items[count++] = new KeyValuePair<string, object?>("ParentId", activity.GetParentId()); 176_items[count++] = new KeyValuePair<string, object?>("TraceState", activity.TraceStateString); 181_items[count++] = new KeyValuePair<string, object?>("TraceFlags", activity.ActivityTraceFlags); 294new KeyValuePair<string, object?>(_enumerator.Current.Key, _enumerator.Current.Value);
Microsoft.Extensions.Telemetry.Abstractions (1)
Logging\LoggerMessageState.cs (1)
87TagArray[index] = new(name, value);
Microsoft.Extensions.Telemetry.Abstractions.Tests (7)
Logging\LoggerMessageHelperTests.cs (2)
43new(null, "Un"), 44new("Two", null),
Logging\LoggerMessageStateTests.cs (5)
24lms.TagArray[index] = new(PropName, Value); 35lms.TagArray[index] = new(PropName, Value); 56lms.TagArray[index] = new(PropName + "X", Value); 140lms.TagArray[index] = new(PropName, Value); 150lms.TagArray[index] = new(PropName, Value);
Microsoft.Extensions.Telemetry.PerformanceTests (12)
ModernCodeGen.cs (12)
17state.TagArray[6] = new("connectionId", connectionId); 18state.TagArray[5] = new("type", type); 19state.TagArray[4] = new("streamId", streamId); 20state.TagArray[3] = new("length", length); 21state.TagArray[2] = new("flags", flags); 22state.TagArray[1] = new("other", other); 23state.TagArray[0] = new("{OriginalFormat}", "Connection id '{connectionId}' received {type} frame for stream ID {streamId} with length {length} and flags {flags} and {other}"); 52state.TagArray[4] = new("start", start); 53state.TagArray[3] = new("end", end); 54state.TagArray[2] = new("options", options); 55state.TagArray[1] = new("guid", guid.ToString()); 56state.TagArray[0] = new("{OriginalFormat}", "Range [{start}..{end}], options {options}, guid {guid}");
Microsoft.Extensions.Telemetry.Tests (10)
Logging\ExtendedLoggerTests.cs (10)
29new KeyValuePair<string, object?>("EK1", "EV1"), 35new KeyValuePair<string, object?>("SEK1", "SEV1"), 62lms.TagArray[index] = new("PK2", "PV2"); 132new KeyValuePair<string, object?>("EK1", "EV1"), 133new KeyValuePair<string, object?>("EK2", "EV2"), 152lms.TagArray[index] = new("PK2", "PV2"); 187new KeyValuePair<string, object?>("EK1", "EV1"), 193new KeyValuePair<string, object?>("SEK1", "SEV1"), 275var a = new[] { new KeyValuePair<string, object?>("K1", "V1") }; 938a[i++] = new(kvp.Key, (string)kvp.Value!);
Microsoft.Gen.Logging.Generated.Tests (20)
LogMethodTests.cs (20)
212AssertLastState(collector, new("p0", "0"), new("p1", "1")); 635new KeyValuePair<string, string?>("A1", "0"), 636new KeyValuePair<string, string?>("{OriginalFormat}", "M0 {A1}")); 643new KeyValuePair<string, string?>("A1", "42"), 644new KeyValuePair<string, string?>("{OriginalFormat}", "M1 {A1} {A1}")); 651new KeyValuePair<string, string?>("A1", "42"), 652new KeyValuePair<string, string?>("a2", "43"), 653new KeyValuePair<string, string?>("A3", "44"), 654new KeyValuePair<string, string?>("a4", "45"), 655new KeyValuePair<string, string?>("A5", "46"), 656new KeyValuePair<string, string?>("a6", "47"), 657new KeyValuePair<string, string?>("A7", "48"), 658new KeyValuePair<string, string?>("{OriginalFormat}", "M2 {A1} {a2} {A3} {a4} {A5} {a6} {A7}")); 665new KeyValuePair<string, string?>("A1", "42"), 666new KeyValuePair<string, string?>("a2", "43"), 667new KeyValuePair<string, string?>("{OriginalFormat}", "M3 {a2} {A1}")); 681new KeyValuePair<string, string?>("{OriginalFormat}", "M0")); 695new KeyValuePair<string, string?>("{OriginalFormat}", "M0")); 947var kvp = new KeyValuePair<string, string?>($"p{i}", i.ToString());
Microsoft.Gen.Metrics.Generated.Tests (4)
MetricTests.cs (2)
99Assert.Equal(new KeyValuePair<string, object?>("s1", "val_1"), tag); 127Assert.Equal(new KeyValuePair<string, object?>("s1", "val1"), tag);
MetricTests.Ext.cs (2)
82Assert.Equal(new KeyValuePair<string, object?>("s1", "val_1"), tag); 109Assert.Equal(new KeyValuePair<string, object?>("s1", "val1"), tag);
Microsoft.Maui (2)
Debugger\DebuggerDisplayHelpers.cs (1)
113 static KeyValuePair<string, object?> Create(string key, object? value) => new KeyValuePair<string, object?>(key, value);
HotReload\HotReloadHelper.cs (1)
167 var views = HandlerService!.Where(x => x.ImplementationType == t).Select(x => new KeyValuePair<Type, Type>(x.ServiceType, x.ImplementationType!)).ToList();
Microsoft.Maui.Controls (9)
Application\Application.cs (1)
263 OnParentResourcesChanged([new KeyValuePair<string, object>(AppThemeBinding.AppThemeResource, newTheme)]);
OrderedDictionary.cs (3)
136 array[arrayIndex++] = new KeyValuePair<TKey, TValue>(key, _dict[key]); 247 yield return new KeyValuePair<TKey, TValue>(key, this[key]); 262 get { return new KeyValuePair<TKey, TValue>(_keyOrder[index], this[index]); }
PlatformBindingHelpers.cs (2)
114 proxy.BindingsBackpack.Add(new KeyValuePair<BindableProperty, BindingBase>(targetProperty, binding)); 125 proxy.ValuesBackpack.Add(new KeyValuePair<BindableProperty, object>(targetProperty, value));
ResourceDictionary.cs (1)
374 OnValuesChanged(new KeyValuePair<string, object>(key, value));
SetterSpecificityList.cs (1)
106 return index < 0 ? default : new KeyValuePair<SetterSpecificity, T>(_keys[index], _values[index]);
VisualElement\VisualElement.cs (1)
1528 changedResources.Add(new KeyValuePair<string, object>(value.Key, mergedClassStyles));
Microsoft.Maui.Controls.Xaml (2)
XamlParser.cs (2)
216 xmlns.Add(new KeyValuePair<string, string>(reader.LocalName, reader.Value)); 234 attributes.Add(new KeyValuePair<XmlName, INode>(propertyName, propertyNode));
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
src\Graphics\src\Graphics\Platforms\Windows\AsyncPump.cs (1)
103 _mQueue.Add(new KeyValuePair<SendOrPostCallback, object>(d, state));
Microsoft.ML.AutoML (2)
SweepableEstimator\SweepableEstimatorPipeline.cs (1)
53var kvPairs = _estimators.Select((e, i) => new KeyValuePair<string, SearchSpace.SearchSpace>(i.ToString(), e.SearchSpace));
SweepableEstimator\SweepablePipeline.cs (1)
52var kvPairs = _estimators.Select((e, i) => new KeyValuePair<string, Parameter>(i.ToString(), e.Value.Parameter));
Microsoft.ML.AutoML.Interactive (4)
NotebookMonitor.cs (4)
51new KeyValuePair<string, object>("Trial",result.TrialSettings.TrialId), 52new KeyValuePair<string, object>("Metric", result.Metric), 53new KeyValuePair<string, object>("Trainer",SweepablePipeline.ToString(result.TrialSettings.Parameter).Replace("Unknown=>","")), 54new KeyValuePair<string, object>("Parameters",activeRunParam),
Microsoft.ML.AutoML.Tests (1)
UserInputValidationTests.cs (1)
359new List<KeyValuePair<float, bool>>() { new KeyValuePair<float, bool>(1, true) });
Microsoft.ML.Core (13)
CommandLine\CmdParser.cs (4)
836yield return new KeyValuePair<string, string>(key, val); 1584comList.Add(new KeyValuePair<string, IComponentFactory>(tag, factory)); 1705val.Values.Add(new KeyValuePair<string, object>(tag, newValue)); 1712Utils.Add(ref val.Values, new KeyValuePair<string, object>("", newValue));
Data\AnnotationUtils.cs (1)
199return new KeyValuePair<string, DataViewType>(kind, type);
Data\Repository.cs (1)
344_closed.Enqueue(new KeyValuePair<string, Stream>(ent.Path, ent.Stream));
Data\RoleMappedSchema.cs (5)
118=> new KeyValuePair<ColumnRole, string>(this, name); 122=> new KeyValuePair<ColumnRole, string>(role, name); 267yield return new KeyValuePair<ColumnRole, DataViewSchema.Column>(roleAndList.Key, info); 279yield return new KeyValuePair<ColumnRole, string>(roleAndList.Key, info.Name); 292yield return new KeyValuePair<ColumnRole, string>(role, info.Name);
Utilities\LruCache.cs (1)
65var node = _lru.AddFirst(new KeyValuePair<TKey, TValue>(key, value));
Utilities\ReservoirSampler.cs (1)
196var tmp = _counts.Select((count, i) => new KeyValuePair<int, int>(count, i)).First(kvp => kvp.Key == 0);
Microsoft.ML.Data (34)
DataDebuggerPreview.cs (1)
76rowInfo.Values[col] = new KeyValuePair<string, object>(column.Name, value);
DataLoadSave\Binary\BinaryLoader.cs (2)
2164var cols = loader._aliveColumns.Select(t => new KeyValuePair<bool, TableOfContentsEntry>(true, t)) 2165.Concat(loader._deadColumns.Select(t => new KeyValuePair<bool, TableOfContentsEntry>(false, t)))
DataLoadSave\LegacyCompositeDataLoader.cs (3)
141.Select(x => new KeyValuePair<string, string>(x.Key, GetTagData(x.Value))) 285var tagData = new[] { new KeyValuePair<string, string>(tag, creationArgs) }; 486tagData.Add(new KeyValuePair<string, string>(tag, argsString));
DataView\Transposer.cs (1)
610heap.Add(new KeyValuePair<int, int>(rbuff.IsDense ? 0 : rbuff.GetIndices()[0], r));
Deprecated\Instances\HeaderSchema.cs (2)
347yield return new KeyValuePair<int, string>(i, _names[i]); 479yield return new KeyValuePair<int, string>(_indices[i], _names[i]);
Deprecated\Vector\VectorUtils.cs (2)
93bottomHeap.Add(new KeyValuePair<int, float>(idx, value)); 106topHeap.Add(new KeyValuePair<int, float>(idx, value));
Evaluators\EvaluatorUtils.cs (2)
343yield return new KeyValuePair<string, double>(schema[i].Name, metricVal); 366yield return new KeyValuePair<string, double>(
Model\Pfa\BoundPfaContext.cs (2)
215vars[i] = new KeyValuePair<string, JToken>(names[i], vars[i].Value); 225return DeclareVar(new KeyValuePair<string, JToken>(name, value))[0];
Model\Pfa\PfaContext.cs (1)
150return new KeyValuePair<string, JToken>(varName, JToken.Parse(token));
Scorers\PredictedLabelScorerBase.cs (1)
186yield return new KeyValuePair<string, DataViewType>(sch[i].Name, sch[i].Type);
Scorers\RowToRowScorerBase.cs (1)
441foreach (var pair in Mapper.OutputSchema[iinfo - DerivedColumnCount].Annotations.Schema.Select(c => new KeyValuePair<string, DataViewType>(c.Name, c.Type)))
Transforms\ColumnBindingsBase.cs (1)
516return Input[index].Annotations.Schema.Select(c => new KeyValuePair<string, DataViewType>(c.Name, c.Type));
Transforms\ColumnConcatenatingTransformer.cs (5)
89taggedColumn.Source = res.Source.Select(s => new KeyValuePair<string, string>(null, s)).ToArray(); 812return new KeyValuePair<string, JToken>(outName, null); 820return new KeyValuePair<string, JToken>(outName, null); 827return new KeyValuePair<string, JToken>(outName, null); 853return new KeyValuePair<string, JToken>(outName, result);
Transforms\Hashing.cs (2)
1731Collector.Add(hashValues[i], new KeyValuePair<int, T>(i, valueValues[i])); 1737Collector.Add(hashValues[i], new KeyValuePair<int, T>(hashIndices[i], valueValues[i]));
Transforms\KeyToValue.cs (1)
206toDeclare.Add(new KeyValuePair<string, JToken>(info.outputColumnName, result));
Transforms\KeyToVector.cs (1)
654toDeclare.Add(new KeyValuePair<string, JToken>(info.Name, result));
Transforms\MetadataDispatcher.cs (2)
226yield return new KeyValuePair<string, DataViewType>(g.Kind, g.Type); 236foreach (var kvp in info.SchemaSrc[info.IndexSrc].Annotations.Schema.Select(c => new KeyValuePair<string, DataViewType>(c.Name, c.Type)))
Transforms\Normalizer.cs (1)
807toDeclare.Add(new KeyValuePair<string, JToken>(info.Name, result));
Transforms\TransformBase.cs (1)
597toDeclare.Add(new KeyValuePair<string, JToken>(info.Name, result));
Transforms\ValueToKeyMappingTransformer.cs (1)
947toDeclare.Add(new KeyValuePair<string, JToken>(info.Name, result));
Utilities\ModelFileUtils.cs (1)
316list.Add(new KeyValuePair<string, string>(roleStr, colStr));
Microsoft.ML.DataView (6)
SchemaDebuggerProxy.cs (1)
46result.Add(new KeyValuePair<string, object>(name, value));
VBuffer.cs (5)
480yield return new KeyValuePair<int, T>(i, values[i]); 485yield return new KeyValuePair<int, T>(indices[i], values[i]); 495yield return new KeyValuePair<int, T>(slotCur, default(T)); 497yield return new KeyValuePair<int, T>(slotCur, values[i]); 501yield return new KeyValuePair<int, T>(slotCur, default(T));
Microsoft.ML.Ensemble (2)
PipelineEnsemble.cs (2)
744list.Add(new KeyValuePair<string, object>(key, listCur)); 749list.Add(new KeyValuePair<string, object>(key, sb.ToString()));
Microsoft.ML.EntryPoints (4)
FeatureCombiner.cs (2)
176concatNames.Add(new KeyValuePair<string, string>(col.Name, colName)); 187concatNames.Add(new KeyValuePair<string, string>(col.Name, colName));
JsonUtils\JsonManifestUtils.cs (2)
273inputs.Add(new KeyValuePair<Double, JObject>(inputAttr.SortOrder, jo)); 302outputs.Add(new KeyValuePair<Double, JObject>(outputAttr.SortOrder, jo));
Microsoft.ML.FastTree (12)
FastTree.cs (11)
1017result.Add(new KeyValuePair<int, int>(indices[i], ge)); 2406_sparse.Add(new KeyValuePair<int, double>(index, value)); 2421_sparse.Add(new KeyValuePair<int, double>(i, _dense[i])); 2579yield return new KeyValuePair<int, int>(kvp.Key, binned); 2590yield return new KeyValuePair<int, int>(last, zeroBin); 2593yield return new KeyValuePair<int, int>(kvp.Key, binned); 2596yield return new KeyValuePair<int, int>(last, zeroBin); 2607yield return new KeyValuePair<int, int>(i, binned); 2612yield return new KeyValuePair<int, int>(i, zeroBin); 3160yield return new KeyValuePair<string, double>(name, Math.Sqrt(pair.Value) * normFactor); 3171results.Add(new KeyValuePair<string, object>(pair.Key, pair.Value));
Training\EnsembleCompression\LassoBasedEnsembleCompressor.cs (1)
98labelFreqList.Add(new KeyValuePair<short, int>(i, perLabelDocCount[i]));
Microsoft.ML.Recommender (2)
MatrixFactorizationPredictor.cs (2)
472roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RecommenderUtils.MatrixColumnIndexKind, MatrixColumnIndexColumnName)); 473roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RecommenderUtils.MatrixRowIndexKind, MatrixRowIndexColumnName));
Microsoft.ML.ResultProcessor (5)
ResultProcessor.cs (5)
968return new KeyValuePair<int, Dictionary<string, float>>(-1, null); 974return new KeyValuePair<int, Dictionary<string, float>>(-1, null); 1000return new KeyValuePair<int, Dictionary<string, float>>(foldIdx, valuesDict); 1072srcFiles.Add(new KeyValuePair<string, string>(null, src)); 1078srcFiles.Add(new KeyValuePair<string, string>(taggedPattern.Key, src));
Microsoft.ML.StandardTrainers (13)
Standard\LinearPredictorUtils.cs (3)
214var list = new List<KeyValuePair<string, Single>>() { new KeyValuePair<string, Single>("(Bias)", bias) }; 219list.Add(new KeyValuePair<string, Single>(name.IsEmpty ? $"f{index}" : name.ToString(), weight.Value)); 237results.Add(new KeyValuePair<string, object>(kvp.Key, kvp.Value));
Standard\LogisticRegression\MulticlassLogisticRegression.cs (2)
842results.Add(new KeyValuePair<string, object>( 859results.Add(new KeyValuePair<string, object>(
Standard\ModelStatistics.cs (6)
175resultCollection.Add(new KeyValuePair<string, object>("Count of training examples", TrainingExampleCount)); 176resultCollection.Add(new KeyValuePair<string, object>("Residual Deviance", Deviance)); 177resultCollection.Add(new KeyValuePair<string, object>("Null Deviance", NullDeviance)); 178resultCollection.Add(new KeyValuePair<string, object>("AIC", 2 * ParametersCount + Deviance)); 543resultCollection.Add(new KeyValuePair<string, object>( 551resultCollection.Add(new KeyValuePair<string, object>(
Standard\MulticlassClassification\OneVersusAllTrainer.cs (1)
213roles[0] = new KeyValuePair<CR, string>(new CR(DefaultColumnNames.Label), LabelColumn.Name);
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (1)
191roles[0] = new KeyValuePair<CR, string>(new CR(DefaultColumnNames.Label), LabelColumn.Name);
Microsoft.ML.Sweeper (5)
Algorithms\NelderMead.cs (5)
166_pendingSweeps.Add(new KeyValuePair<ParameterSet, float[]>(FloatArrayAsParameterSet(nextPoint), nextPoint)); 216_pendingSweeps.Add(new KeyValuePair<ParameterSet, float[]>(FloatArrayAsParameterSet(nextPoint), nextPoint)); 370result.Add(new KeyValuePair<IRunResult, float[]>(run, sweep.Value)); 410_pendingSweeps.Add(new KeyValuePair<ParameterSet, float[]>(newParameterSet, newPoint)); 412_pendingSweepsNotSubmitted.Enqueue(new KeyValuePair<ParameterSet, float[]>(FloatArrayAsParameterSet(newPoint), newPoint));
Microsoft.ML.Tests (42)
Transformers\ValueMappingTests.cs (42)
140new KeyValuePair<string, string>("foo", "a"), 141new KeyValuePair<string, string>("bar", "b"), 142new KeyValuePair<string, string>("test", "c"), 143new KeyValuePair<string, string>("wahoo", "d")}; 365new KeyValuePair<string,int>("foo", 1), 366new KeyValuePair<string,int>("bar", 2), 367new KeyValuePair<string,int>("test", 3), 368new KeyValuePair<string,int>("wahoo", 4)}; 397new KeyValuePair<string, string>("foo", "t"), 398new KeyValuePair<string, string>("bar", "s"), 399new KeyValuePair<string, string>("test", "u"), 400new KeyValuePair<string, string>("wahoo", "v") }; 431new KeyValuePair<string, uint>("foo", 51), 432new KeyValuePair<string, uint>("bar", 25), 433new KeyValuePair<string, uint>("test", 42), 434new KeyValuePair<string, uint>("wahoo", 61)}; 472new KeyValuePair<string, ulong>("foo", 51), 473new KeyValuePair<string, ulong>("bar", Int32.MaxValue + 1L), 474new KeyValuePair<string, ulong>("test", 42), 475new KeyValuePair<string, ulong>("wahoo", 61)}; 513new KeyValuePair<string, string>("foo", "foo1"), 514new KeyValuePair<string, string>("bar", "foo2"), 515new KeyValuePair<string, string>("test", "foo1"), 516new KeyValuePair<string, string>("wahoo", "foo3")}; 553new KeyValuePair<string, string>("foo", "foo1"), 554new KeyValuePair<string, string>("bar", "foo2"), 555new KeyValuePair<string, string>("test", "foo1"), 556new KeyValuePair<string, string>("wahoo", "foo3")}; 595new KeyValuePair<string, int>("foo", 1), 596new KeyValuePair<string, int>("bar", 2), 597new KeyValuePair<string, int>("test", 3), 598new KeyValuePair<string, int>("wahoo", 4)}; 614new KeyValuePair<string,int[]>("foo", new int[] {2, 3, 4 }), 615new KeyValuePair<string,int[]>("bar", new int[] {100, 200 }), 616new KeyValuePair<string,int[]>("test", new int[] {400, 500, 600, 700 }), 634new KeyValuePair<ReadOnlyMemory<char>,int>("foo".AsMemory(), 1), 635new KeyValuePair<ReadOnlyMemory<char>,int>("bar".AsMemory(), 2), 636new KeyValuePair<ReadOnlyMemory<char>,int>("test".AsMemory(), 3), 637new KeyValuePair<ReadOnlyMemory<char>,int>("wahoo".AsMemory(), 4) 688new KeyValuePair<string,int>("foo", 2), 689new KeyValuePair<string,int>("bar", 43), 690new KeyValuePair<string,int>("test", 56)};
Microsoft.ML.TimeSeries (1)
RootCauseAnalyzer.cs (1)
130return new Dictionary<string, object>(keyList.Select(dim => new KeyValuePair<string, object>(dim, dimension[dim])).ToDictionary(kvp => kvp.Key, kvp => kvp.Value));
Microsoft.ML.Tokenizers (2)
Utils\LruCache.cs (2)
103cached.Value = new KeyValuePair<string, TValue>(key, value); 116var node = new LinkedListNode<KeyValuePair<string, TValue>>(new KeyValuePair<string, TValue>(key, value));
Microsoft.ML.Transforms (13)
Text\LdaSingleBox.cs (8)
238topicRet.Add(new KeyValuePair<int, float>(currentTopic, (float)_alpha)); 241topicRet.Add(new KeyValuePair<int, float>(_topics[i], _probabilities[i] + (float)_alpha)); 246topicRet.Add(new KeyValuePair<int, float>(_topics[i], (float)_probabilities[i])); 254topicRet.Add(new KeyValuePair<int, float>(currentTopic, (float)_alpha)); 288topicRet.Add(new KeyValuePair<int, float>(pTopic[i], (float)pProb[i])); 321topicRet.Add(new KeyValuePair<int, float>(pTopic[i], (float)pProb[i])); 342wordTopicVector[i] = new KeyValuePair<int, int>(_topics[i], _probabilities[i]); 353topicSummary[i] = new KeyValuePair<int, float>(_summaryTerm[i], _summaryTermProb[i]);
Text\TextFeaturizingEstimator.cs (4)
584srcTaggedCols.Add(new KeyValuePair<string, string>("Char", charFeatureCol)); 585srcTaggedCols.Add(new KeyValuePair<string, string>("Word", wordFeatureCol)); 594srcTaggedCols.Add(new KeyValuePair<string, string>(charFeatureCol, charFeatureCol)); 596srcTaggedCols.Add(new KeyValuePair<string, string>(wordFeatureCol, wordFeatureCol));
Text\WordTokenizing.cs (1)
356toDeclare.Add(new KeyValuePair<string, JToken>(info.Name, result));
Microsoft.VisualStudio.LanguageServices (1)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
72copy[index++] = new KeyValuePair<K, V>(key,
MSBuild (8)
LogMessagePacketBase.cs (1)
381return new KeyValuePair<int, BuildEventArgs>(_sinkId, _buildEvent);
OutOfProcTaskHostNode.cs (5)
1148s_mismatchedEnvironmentValues[variable.Key] = new KeyValuePair<string, string>(null, oldValue); 1154s_mismatchedEnvironmentValues[variable.Key] = new KeyValuePair<string, string>(newValue, oldValue); 1165s_mismatchedEnvironmentValues[variable.Key] = new KeyValuePair<string, string>(newValue, null); 1171s_mismatchedEnvironmentValues[variable.Key] = new KeyValuePair<string, string>(newValue, oldValue); 1197LogMessagePacket logMessage = new LogMessagePacket(new KeyValuePair<int, BuildEventArgs>(_currentConfiguration.NodeId, e));
TaskParameter.cs (2)
1013var unescaped = new KeyValuePair<string, string>(kvp.Key, EscapingUtilities.UnescapeAll(kvp.Value)); 1029var unescaped = new KeyValuePair<string, string>(kvp.Key, EscapingUtilities.UnescapeAll(kvp.Value));
MSBuildTaskHost (9)
LogMessagePacketBase.cs (1)
381return new KeyValuePair<int, BuildEventArgs>(_sinkId, _buildEvent);
NativeMethods.cs (1)
1476myChildren.Add(new KeyValuePair<int, SafeProcessHandle>(possibleChildProcess.Id, childHandle));
OutOfProcTaskHostNode.cs (5)
1148s_mismatchedEnvironmentValues[variable.Key] = new KeyValuePair<string, string>(null, oldValue); 1154s_mismatchedEnvironmentValues[variable.Key] = new KeyValuePair<string, string>(newValue, oldValue); 1165s_mismatchedEnvironmentValues[variable.Key] = new KeyValuePair<string, string>(newValue, null); 1171s_mismatchedEnvironmentValues[variable.Key] = new KeyValuePair<string, string>(newValue, oldValue); 1197LogMessagePacket logMessage = new LogMessagePacket(new KeyValuePair<int, BuildEventArgs>(_currentConfiguration.NodeId, e));
TaskParameter.cs (2)
1013var unescaped = new KeyValuePair<string, string>(kvp.Key, EscapingUtilities.UnescapeAll(kvp.Value)); 1029var unescaped = new KeyValuePair<string, string>(kvp.Key, EscapingUtilities.UnescapeAll(kvp.Value));
OutputCachingSample (1)
Startup.cs (1)
46app.MapGet("/vary", Gravatar.WriteGravatar).CacheOutput(c => c.VaryByValue((context) => new KeyValuePair<string, string>("time", (DateTime.Now.Second % 2).ToString(CultureInfo.InvariantCulture))));
PresentationCore (5)
System\Windows\Media\CharacterMetricsDictionary.cs (3)
142array[k++] = new KeyValuePair<int, CharacterMetrics>( 568return new KeyValuePair<int, CharacterMetrics>(_unicodeScalar, _value); 575return new KeyValuePair<int, CharacterMetrics>(_unicodeScalar, _value);
System\Windows\Media\GlyphTypeface.cs (2)
1825array[arrayIndex + i] = new KeyValuePair<ushort, double>(i, this[i]); 1850yield return new KeyValuePair<ushort, double>(i, this[i]);
PresentationFramework (12)
MS\Internal\Helper.cs (1)
783KeyValuePair<int, object> keyValue = new KeyValuePair<int, object>(dpIndex, value);
MS\Internal\WeakDictionary.cs (1)
340yield return new KeyValuePair<TKey, TValue>(key, (TValue)_hashTable[obj]);
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
627_list.Add(new KeyValuePair<object, T>(item, value));
System\Windows\Shell\WindowChromeWorker.cs (9)
63new HANDLE_MESSAGE(WM.SETTEXT, _HandleSetTextOrIcon), 64new HANDLE_MESSAGE(WM.SETICON, _HandleSetTextOrIcon), 65new HANDLE_MESSAGE(WM.NCACTIVATE, _HandleNCActivate), 66new HANDLE_MESSAGE(WM.NCCALCSIZE, _HandleNCCalcSize), 67new HANDLE_MESSAGE(WM.NCHITTEST, _HandleNCHitTest), 68new HANDLE_MESSAGE(WM.NCRBUTTONUP, _HandleNCRButtonUp), 69new HANDLE_MESSAGE(WM.SIZE, _HandleSize), 70new HANDLE_MESSAGE(WM.WINDOWPOSCHANGED, _HandleWindowPosChanged), 71new HANDLE_MESSAGE(WM.DWMCOMPOSITIONCHANGED, _HandleDwmCompositionChanged),
PresentationUI (1)
MS\Internal\Documents\RightsManagementProvider.cs (1)
1541new KeyValuePair<string, string>("NOLICCACHE", "1");
ScenarioTests.Common.Tests (2)
ScenarioTestTypes.cs (2)
191_queue.Add(new KeyValuePair<SendOrPostCallback, object>(d, state)); 196_queue.Add(new KeyValuePair<SendOrPostCallback, object>(RunOnCapturedState, (d, state, ec)));
Shared (3)
JsonSchemaExporter\JsonSchemaExporter.cs (3)
160derivedTypeDiscriminator = new(typeDiscriminatorKey, discriminatorSchema); 328(properties ??= new()).Add(new(property.Name, propertySchema)); 385new(ValuesKeyword,
Shared.Tests (5)
EmptyCollections\EmptyReadonlyDictionaryTests.cs (4)
39Assert.False(dict.Contains(new KeyValuePair<int, string>(1, "One"))); 60Assert.Throws<NotSupportedException>(() => coll.Add(new KeyValuePair<int, string>(1, "One"))); 61Assert.False(coll.Remove(new KeyValuePair<int, string>(1, "One"))); 62Assert.False(coll.Contains(new KeyValuePair<int, string>(1, "One")));
JsonSchemaExporter\TestTypes.cs (1)
1111public IEnumerator<KeyValuePair<string, int>> GetEnumerator() => Enumerable.Repeat(new KeyValuePair<string, int>(nameof(BaseValue), BaseValue), 1).GetEnumerator();
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
906new KeyValuePair<string, string>("EndpointDefaults:Protocols", input),
Stress.ApiService (9)
Program.cs (7)
51metrics.IncrementCounter(1, new TagList([new KeyValuePair<string, object?>("add-tag", "1")])); 52metrics.IncrementCounter(2, new TagList([new KeyValuePair<string, object?>("add-tag", "")])); 124new KeyValuePair<string, object?>("Message", message), 125new KeyValuePair<string, object?>("ActivityId", 123), 126new KeyValuePair<string, object?>("Level", (int) 10), 127new KeyValuePair<string, object?>("Tid", Environment.CurrentManagedThreadId), 128new KeyValuePair<string, object?>("Pid", Environment.ProcessId),
TestMetrics.cs (2)
20new KeyValuePair<string, object?>("meter-tag", Guid.NewGuid().ToString()) 25new KeyValuePair<string, object?>("instrument-tag", Guid.NewGuid().ToString())
Stress.TelemetryService (1)
GaugeMetrics.cs (1)
28measurements.Add(new Measurement<long>(workingSet, new KeyValuePair<string, object?>("process.id", process.Id)));
System.Collections (17)
System\Collections\Generic\OrderedDictionary.cs (3)
604return new(e.Key, e.Value); 1213array[arrayIndex++] = new(entry.Key, entry.Value); 1436Current = new KeyValuePair<TKey, TValue>(entry.Key, entry.Value);
System\Collections\Generic\SortedDictionary.cs (9)
112TreeSet<KeyValuePair<TKey, TValue>>.Node? node = _set.FindNode(new KeyValuePair<TKey, TValue>(key, default(TValue)!)); 124TreeSet<KeyValuePair<TKey, TValue>>.Node? node = _set.FindNode(new KeyValuePair<TKey, TValue>(key, default(TValue)!)); 127_set.Add(new KeyValuePair<TKey, TValue>(key, value)); 131node.Item = new KeyValuePair<TKey, TValue>(node.Item.Key, value); 193_set.Add(new KeyValuePair<TKey, TValue>(key, value)); 205return _set.Contains(new KeyValuePair<TKey, TValue>(key, default(TValue)!)); 254return _set.Remove(new KeyValuePair<TKey, TValue>(key, default(TValue)!)); 261TreeSet<KeyValuePair<TKey, TValue>>.Node? node = _set.FindNode(new KeyValuePair<TKey, TValue>(key, default(TValue)!)); 470return new KeyValuePair<TKey, TValue>(Current.Key, Current.Value);
System\Collections\Generic\SortedList.cs (5)
447KeyValuePair<TKey, TValue> entry = new KeyValuePair<TKey, TValue>(keys[i], values[i]); 480keyValuePairArray[i + index] = new KeyValuePair<TKey, TValue>(keys[i], values[i]); 495objects[i + index] = new KeyValuePair<TKey, TValue>(keys[i], values[i]); 823public KeyValuePair<TKey, TValue> Current => new KeyValuePair<TKey, TValue>(_key!, _value!); 840return new KeyValuePair<TKey, TValue>(_key!, _value!);
System.Collections.Concurrent (8)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
928Current = new KeyValuePair<TKey, TValue>(node._key, node._value);
System\Collections\Concurrent\PartitionerStatic.cs (7)
709= new KeyValuePair<long, TSource>(_sharedIndex.Value, 794= new KeyValuePair<long, TSource>(_sharedIndex.Value, 820= new KeyValuePair<long, TSource>(_sharedIndex.Value, 1222return new KeyValuePair<long, TSource>(_startIndex + _localOffset.Value, 1306return new KeyValuePair<long, TSource>(_startIndex + _localOffset.Value, 1529return (new KeyValuePair<long, TSource>(_offset, _list[_offset])); 1586return (new KeyValuePair<long, TSource>(_offset, _array[_offset]));
System.Collections.Immutable (15)
System\Collections\Frozen\FrozenDictionary.cs (4)
350destination[i] = new KeyValuePair<TKey, TValue>(keys[i], values[i]); 383pairs[index++] = new KeyValuePair<TKey, TValue>(item.Key, item.Value); 404objects[index++] = new KeyValuePair<TKey, TValue>(item.Key, item.Value); 665return new KeyValuePair<TKey, TValue>(_keys[_index], _values[_index]);
System\Collections\Frozen\FrozenSetInternalBase.cs (1)
236return new KeyValuePair<int, int>(uniqueFoundCount, unfoundCount);
System\Collections\Immutable\ImmutableDictionary.cs (2)
149.AddRange(source.Select(element => new KeyValuePair<TKey, TValue>(keySelector(element), elementSelector(element)))); 283return map.Contains(new KeyValuePair<TKey, TValue>(key, value));
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (4)
142var kv = new KeyValuePair<TKey, TValue>(key, value); 222var kv = new KeyValuePair<TKey, TValue>(key, default(TValue)!); 274var kv = new KeyValuePair<TKey, TValue>(key, default(TValue)!); 313var kv = new KeyValuePair<TKey, TValue>(equalKey, default(TValue)!);
System\Collections\Immutable\ImmutableSortedDictionary.cs (1)
145.AddRange(source.Select(element => new KeyValuePair<TKey, TValue>(keySelector(element), elementSelector(element))));
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (1)
128get { return new KeyValuePair<TKey, TValue>(_key, _value); }
System\Collections\Immutable\SortedInt32KeyNode.cs (2)
122get { return new KeyValuePair<int, TValue>(_key, _value!); } 249freezeAction?.Invoke(new KeyValuePair<int, TValue>(_key, _value!));
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\Validator.cs (1)
529items.Add(new KeyValuePair<ValidationContext, object?>(context, property.GetValue(instance)));
System.ComponentModel.Composition (3)
System\ComponentModel\Composition\Hosting\AtomicComposition.cs (2)
297_values[index] = new KeyValuePair<object, object?>(key, value); 314_values[_valueCount] = new KeyValuePair<object, object?>(key, value);
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
487return properties.Select(property => new KeyValuePair<string, Type>(property.Name, property.PropertyType));
System.Data.Common (2)
System\Data\Common\ObjectStorage.cs (2)
589KeyValuePair<Type, XmlRootAttribute> key = new KeyValuePair<Type, XmlRootAttribute>(type, attribute); 626key = new KeyValuePair<Type, XmlRootAttribute>(type, new XmlRootAttribute());
System.Diagnostics.DiagnosticSource (22)
System\Diagnostics\Activity.cs (8)
488KeyValuePair<string, object?> kvp = new KeyValuePair<string, object?>(key, value); 512KeyValuePair<string, object?> kvp = new KeyValuePair<string, object?>(key, value); 590exceptionTags.Add(new KeyValuePair<string, object?>(ExceptionMessageTag, exception.Message)); 595exceptionTags.Add(new KeyValuePair<string, object?>(ExceptionStackTraceTag, exception.ToString())); 600exceptionTags.Add(new KeyValuePair<string, object?>(ExceptionTypeTag, exception.GetType().ToString())); 636KeyValuePair<string, string?> kvp = new KeyValuePair<string, string?>(key, value); 660KeyValuePair<string, string?> kvp = new KeyValuePair<string, string?>(key, value); 1805yield return new KeyValuePair<string, string?>(current.Value.Key, (string?)current.Value.Value);
System\Diagnostics\ActivityTagsCollection.cs (3)
88_list[index] = new KeyValuePair<string, object?>(key, value); 92_list.Add(new KeyValuePair<string, object?>(key, value)); 158_list.Add(new KeyValuePair<string, object?>(key, value));
System\Diagnostics\DiagnosticListener.cs (1)
259curSubscription.Observer.OnNext(new KeyValuePair<string, object?>(name, value));
System\Diagnostics\DsesFilterAndTransform.cs (1)
630return new KeyValuePair<string, string?>(_outputName, obj?.ToString());
System\Diagnostics\LegacyPropagator.cs (1)
171baggageList.Insert(0, new KeyValuePair<string, string?>(
System\Diagnostics\Metrics\AggregatorStore.cs (1)
505labels[i] = new KeyValuePair<string, string>(indexedNames[i], indexedValues[i]?.ToString() ?? "");
System\Diagnostics\Metrics\RuntimeMetrics.cs (6)
139s_exceptions.Add(1, new KeyValuePair<string, object?>("error.type", e.Exception.GetType().Name)); 166yield return new(collectionsFromThisGeneration - collectionsFromHigherGeneration, new KeyValuePair<string, object?>("gc.heap.generation", s_genNames[gen])); 181yield return new(processCpuUsage.UserTime.TotalSeconds, [new KeyValuePair<string, object?>("cpu.mode", "user")]); 182yield return new(processCpuUsage.PrivilegedTime.TotalSeconds, [new KeyValuePair<string, object?>("cpu.mode", "system")]); 191yield return new(gcInfo.GenerationInfo[i].SizeAfterBytes, new KeyValuePair<string, object?>("gc.heap.generation", s_genNames[i])); 201yield return new(gcInfo.GenerationInfo[i].FragmentationAfterBytes, new KeyValuePair<string, object?>("gc.heap.generation", s_genNames[i]));
System\Diagnostics\Metrics\TagList.netcore.cs (1)
93Add(new KeyValuePair<string, object?>(key, value));
System.IO.Packaging (1)
System\IO\Packaging\Package.cs (1)
441partDictionary.Add(normalizedPartName, new KeyValuePair<PackUriHelper.ValidatedPartUri, PackagePart>(partUri, parts[i]));
System.Linq.Expressions (4)
System\Dynamic\ExpandoObject.cs (1)
767yield return new KeyValuePair<string, object?>(data.Class.Keys[i], temp);
System\Linq\Expressions\Interpreter\InstructionList.cs (1)
240_debugCookies.Add(new KeyValuePair<int, object?>(Count - 1, cookie));
System\Linq\Expressions\Interpreter\Utilities.cs (2)
300_keysAndValues[i] = new KeyValuePair<TKey, TValue>(key, value); 317_keysAndValues[index] = new KeyValuePair<TKey, TValue>(key, value);
System.Linq.Parallel (1)
System\Linq\Parallel\Utils\HashLookup.cs (1)
147get { return new KeyValuePair<TKey, TValue>(slots[index].key, slots[index].value); }
System.Net.Http (5)
System\Net\Http\DiagnosticsHelper.cs (1)
50return new KeyValuePair<string, object?>("http.request.method", isUnknownMethod ? "_OTHER" : known!.Method);
System\Net\Http\Headers\HttpHeaders.cs (1)
365yield return new KeyValuePair<string, IEnumerable<string>>(entry.Key.Name, values);
System\Net\Http\Headers\HttpHeadersNonValidated.cs (1)
148_current = new KeyValuePair<string, HeaderStringValues>(
System\Net\Http\SocketsHttpHandler\FailedProxyCache.cs (1)
88_failedProxies.TryRemove(new KeyValuePair<Uri, long>(uri, renewTicks));
System\Net\Http\SocketsHttpHandler\Metrics\ConnectionMetrics.cs (1)
49private static KeyValuePair<string, object?> GetStateTag(bool idle) => new KeyValuePair<string, object?>("http.connection.state", idle ? "idle" : "active");
System.Net.NameResolution (4)
System\Net\Dns.cs (4)
539asyncState = family == AddressFamily.Unspecified ? (object)ipAddress : new KeyValuePair<IPAddress, AddressFamily>(ipAddress, family); 573asyncState = family == AddressFamily.Unspecified ? (object)hostName : new KeyValuePair<string, AddressFamily>(hostName, family); 713((ICollection<KeyValuePair<object, Task>>)s_tasks).Remove(new KeyValuePair<object, Task>(key!, task!)); 726((ICollection<KeyValuePair<object, Task>>)s_tasks).Remove(new KeyValuePair<object, Task>(key!, task));
System.Net.Security (2)
System\Net\NegotiateAuthenticationPal.ManagedSpnego.cs (2)
134yield return new KeyValuePair<string, string>(NegotiationInfoClass.Kerberos, KerberosOid); 137yield return new KeyValuePair<string, string>(NegotiationInfoClass.NTLM, NtlmOid);
System.Net.WebSockets.Client (2)
System\Net\WebSockets\HttpResponseHeadersReadOnlyCollection.cs (1)
49yield return new KeyValuePair<string, IEnumerable<string>>(header.Key, header.Value);
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
506return new KeyValuePair<string, string>(
System.Private.CoreLib (28)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (2)
1520objects[index++] = new KeyValuePair<TKey, TValue>(entries[i].key, entries[i].value); 1800_current = new KeyValuePair<TKey, TValue>(entry.key, entry.value);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\KeyValuePair.cs (1)
16new KeyValuePair<TKey, TValue>(key, value);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (1)
199objects[index++] = new KeyValuePair<TKey, TValue>(item.Key, item.Value);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterPayload.cs (21)
52yield return new KeyValuePair<string, object?>("Name", Name); 53yield return new KeyValuePair<string, object?>("DisplayName", DisplayName); 54yield return new KeyValuePair<string, object?>("DisplayUnits", DisplayUnits); 55yield return new KeyValuePair<string, object?>("Mean", Mean); 56yield return new KeyValuePair<string, object?>("StandardDeviation", StandardDeviation); 57yield return new KeyValuePair<string, object?>("Count", Count); 58yield return new KeyValuePair<string, object?>("Min", Min); 59yield return new KeyValuePair<string, object?>("Max", Max); 60yield return new KeyValuePair<string, object?>("IntervalSec", IntervalSec); 61yield return new KeyValuePair<string, object?>("Series", $"Interval={IntervalSec}"); 62yield return new KeyValuePair<string, object?>("CounterType", "Mean"); 63yield return new KeyValuePair<string, object?>("Metadata", Metadata); 107yield return new KeyValuePair<string, object?>("Name", Name); 108yield return new KeyValuePair<string, object?>("DisplayName", DisplayName); 109yield return new KeyValuePair<string, object?>("DisplayRateTimeScale", DisplayRateTimeScale); 110yield return new KeyValuePair<string, object?>("Increment", Increment); 111yield return new KeyValuePair<string, object?>("IntervalSec", IntervalSec); 112yield return new KeyValuePair<string, object?>("Series", $"Interval={IntervalSec}"); 113yield return new KeyValuePair<string, object?>("CounterType", "Sum"); 114yield return new KeyValuePair<string, object?>("Metadata", Metadata); 115yield return new KeyValuePair<string, object?>("DisplayUnits", DisplayUnits);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\EventPayload.cs (1)
89yield return new KeyValuePair<string, object?>(this.m_names[i], this.m_values[i]);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventTypes.cs (1)
170this.nameInfos.TryGet(new KeyValuePair<string, EventTags>(name, tags)) ??
src\libraries\System.Private.CoreLib\src\System\Threading\SynchronizationContext.cs (1)
25=> ThreadPool.QueueUserWorkItem(static s => s.Key(s.Value), new KeyValuePair<SendOrPostCallback, object?>(d, state), preferLocal: false);
System.Private.Windows.Core.TestUtilities (1)
XUnit\SkipOnArchitectureDiscoverer.cs (1)
34return new[] { new KeyValuePair<string, string>(XunitConstants.Category, XunitConstants.IgnoreForCI) };
System.Reflection.Emit (3)
System\Reflection\Emit\ILGeneratorImpl.cs (2)
469_memberReferences.Add(new KeyValuePair<object, BlobWriter> 639new KeyValuePair<MethodInfo, Type[]>(methodInfo, optionalParameterTypes));
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
782KeyValuePair<MethodInfo, BlobBuilder> pair = new(method, signature);
System.Reflection.Metadata (2)
System\Reflection\Metadata\Ecma335\BlobDictionary.cs (1)
61entry = new(immutableKey, value);
System\Reflection\Metadata\Internal\NamespaceCache.cs (1)
182remaps.Add(new KeyValuePair<NamespaceDefinitionHandle, NamespaceDataBuilder>(group.Key, existingRecord));
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
131derivedTypeDiscriminator = new(typeDiscriminatorKey, discriminatorSchema);
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\GroupCollection.cs (1)
283return new KeyValuePair<string, Group>(value.Name, value);
System\Text\RegularExpressions\Symbolic\SparseIntMap.cs (3)
50dense.Add(new KeyValuePair<int, T>(key, default)); 70_dense[index] = new KeyValuePair<int, T>(key, value); 83_dense.Add(new KeyValuePair<int, T>(key, default));
System.Threading.Channels (1)
System\Threading\Channels\AsyncOperation.cs (1)
287}, new KeyValuePair<Action<object?>, object?>(continuation, state));
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\RateLimitLease.cs (1)
69yield return new KeyValuePair<string, object?>(name, metadata);
System.Threading.Tasks.Dataflow (24)
Blocks\BatchBlock.cs (12)
795var reservedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value, default(T)!); 796var reservedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, reservedMessage); 813var reservedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value, default(T)!); 814var reservedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, reservedMessage); 910var reservedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value, default(T)!); 911var reservedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, reservedMessage); 926var reservedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value, default(T)!); 927var reservedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, reservedMessage); 1009var consumedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value.Key, consumedValue!); 1010var consumedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, consumedMessage); 1054var consumedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value.Key, consumedValue!); 1055var consumedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, consumedMessage);
Blocks\JoinBlock.cs (2)
538_nonGreedy.ConsumedMessage = new KeyValuePair<bool, T>(false, default(T)!); 681_nonGreedy.ConsumedMessage = new KeyValuePair<bool, T>(true, consumedValue!);
Internal\QueuedMap.cs (7)
81_storage[newIndex] = new KeyValuePair<int, T>(TERMINATOR_INDEX, item); 87_storage.Add(new KeyValuePair<int, T>(TERMINATOR_INDEX, item)); 100_storage[_tailIndex] = new KeyValuePair<int, T>(newIndex, _storage[_tailIndex].Value); 127_storage[_headIndex] = new KeyValuePair<int, T>(_freeIndex, default(T)!); 146_storage[index] = new KeyValuePair<int, T>(_storage[index].Key, item); 182_queue.Replace(indexOfKeyInQueue, new KeyValuePair<TKey, TValue>(key, value)); 187indexOfKeyInQueue = _queue.Enqueue(new KeyValuePair<TKey, TValue>(key, value));
Internal\ReorderingBuffer.cs (1)
87_reorderingBuffer.Add(id, new KeyValuePair<bool, TOutput>(itemIsValid, item!));
Internal\TargetCore.cs (2)
220_messages.Enqueue(new KeyValuePair<TInput, long>(messageValue!, messageId)); 674result = new KeyValuePair<TInput, long>(consumedValue!, messageId);
System.Xaml (5)
System\Xaml\NameScope.cs (2)
123array[arrayIndex++] = new KeyValuePair<string, object>((string)entry.Key, entry.Value); 279return new KeyValuePair<string, object>((string)_enumerator.Key, _enumerator.Value);
System\Xaml\NameScopeDictionary.cs (2)
167return new KeyValuePair<string, object>(name, _underlyingNameScope.FindName(name)); 173return new KeyValuePair<string, object>((string)dictionaryEnumerator.Key, dictionaryEnumerator.Value);
System\Xaml\Schema\TypeReflector.cs (1)
659candidates.Add(new KeyValuePair<MethodInfo, MethodInfo>(curGetter, curSetter));
UnitTests.Common (1)
TestTypes.cs (1)
279_queue.Add(new KeyValuePair<SendOrPostCallback, object>(d, state));
VBCSCompiler.UnitTests (3)
CompilerServerTests.cs (3)
38new KeyValuePair<string, string>("hello.cs", 53new KeyValuePair<string, string>("hello.vb", 292new[] { new KeyValuePair<string, string>("TMPDIR", newTempDir.Path) },
WindowsBase.Tests (42)
System\Windows\NameScopeTests.cs (42)
132Assert.True(nameScope.Contains(new KeyValuePair<string, object>(name, scopedElement))); 145Assert.True(nameScope.Contains(new KeyValuePair<string, object>(name, scopedElement))); 253Assert.True(nameScope.Contains(new KeyValuePair<string, object>(name, scopedElement))); 266Assert.True(nameScope.Contains(new KeyValuePair<string, object>(name, scopedElement))); 343nameScope.Add(new KeyValuePair<string, object>(name, scopedElement)); 347Assert.True(nameScope.Contains(new KeyValuePair<string, object>(name, scopedElement))); 356nameScope.Add(new KeyValuePair<string, object>(name, scopedElement)); 360Assert.True(nameScope.Contains(new KeyValuePair<string, object>(name, scopedElement))); 376nameScope.Add(new KeyValuePair<string, object>("name1", scopedElement1)); 380nameScope.Add(new KeyValuePair<string, object>("NAME1", scopedElement2)); 385nameScope.Add(new KeyValuePair<string, object>("name2", scopedElement2)); 397Assert.Throws<ArgumentException>("item", () => nameScope.Add(new KeyValuePair<string, object>(null!, scopedElement))); 405Assert.Throws<ArgumentException>(() => nameScope.Add(new KeyValuePair<string, object>(string.Empty, scopedElement))); 416Assert.Throws<ArgumentException>(() => nameScope.Add(new KeyValuePair<string, object>(name, scopedElement))); 423Assert.Throws<ArgumentException>("item", () => nameScope.Add(new KeyValuePair<string, object>("name", null!))); 433Assert.Throws<ArgumentException>(() => nameScope.Add(new KeyValuePair<string, object>("name", new object()))); 448Assert.False(nameScope.Contains(new KeyValuePair<string, object>("name", scopedElement))); 457Assert.False(nameScope.Contains(new KeyValuePair<string, object>("name", scopedElement))); 472Assert.False(nameScope.Contains(new KeyValuePair<string, object>("name", new object()))); 481Assert.False(nameScope.Contains(new KeyValuePair<string, object>("name", new object()))); 497Assert.Equal(new KeyValuePair<string, object>("name", scopedElement), array[0]); 501Assert.Equal(new KeyValuePair<string, object>("name", scopedElement), array[1]); 505Assert.Equal(new KeyValuePair<string, object>("name", scopedElement), array[1]); 565Assert.True(nameScope.Contains(new KeyValuePair<string, object>("name", scopedElement))); 566Assert.True(nameScope.Contains(new KeyValuePair<string, object>("name", 1))); 567Assert.True(nameScope.Contains(new KeyValuePair<string, object>("name", new object()))); 568Assert.False(nameScope.Contains(new KeyValuePair<string, object>("NAME", scopedElement))); 569Assert.False(nameScope.Contains(new KeyValuePair<string, object>("nAmE", scopedElement))); 570Assert.False(nameScope.Contains(new KeyValuePair<string, object>("name2", scopedElement))); 571Assert.False(nameScope.Contains(new KeyValuePair<string, object>("", scopedElement))); 588Assert.False(nameScope.Contains(new KeyValuePair<string, object>(name, new object()))); 607Assert.False(nameScope.Contains(new KeyValuePair<string, object>(name, new object()))); 614Assert.Throws<ArgumentException>("item", () => nameScope.Contains(new KeyValuePair<string, object>(null!, new object()))); 850Assert.True(nameScope.Contains(new KeyValuePair<string, object>(name, scopedElement))); 863Assert.True(nameScope.Contains(new KeyValuePair<string, object>(name, scopedElement))); 1004nameScope.Remove(new KeyValuePair<string, object>("name", scopedElement)); 1009Assert.False(nameScope.Remove(new KeyValuePair<string, object>("name", scopedElement))); 1018Assert.Throws<ArgumentException>("item", () => nameScope.Remove(new KeyValuePair<string, object>(null!, new object()))); 1035Assert.False(nameScope.Remove(new KeyValuePair<string, object>(name, new object()))); 1054Assert.False(nameScope.Remove(new KeyValuePair<string, object>(name, new object()))); 1064Assert.False(nameScope.Remove(new KeyValuePair<string, object>("name", new object()))); 1065Assert.False(nameScope.Remove(new KeyValuePair<string, object>("name", null!)));
XmlFileLogger (2)
ItemGroupParser.cs (1)
90return new KeyValuePair<string, string>(name, value);
ObjectModel\Item.cs (1)
59_metadata.Add(new KeyValuePair<string, string>(key, value));
xunit.console (1)
CommandLine.cs (1)
506return new KeyValuePair<string, string>(option, value);