6634 references to Value
aspire (43)
aspire-managed (1)
Aspire.Acquisition.Tests (2)
Aspire.Azure.Messaging.EventHubs.Tests (2)
Aspire.Azure.Security.KeyVault.Tests (2)
Aspire.Cli.EndToEnd.Tests (5)
Aspire.Cli.Tests (64)
Telemetry\AspireCliTelemetryTests.cs (23)
52var activityTags = activity.Tags.ToDictionary(t => t.Key, t => t.Value);
56Assert.Equal(tag.Value?.ToString(), activityTags[tag.Key]);
126var eventTags = exceptionEvent.Tags.ToDictionary(t => t.Key, t => t.Value);
138Assert.Equal(tag.Value?.ToString(), eventTags[tag.Key]?.ToString());
225Assert.Contains(tags, t => t.Key == "machine.device_id" && (string?)t.Value == "test-device-id");
226Assert.Contains(tags, t => t.Key == "machine.mac_address_hash" && (string?)t.Value == "test-mac-hash");
238Assert.Contains(tags, t => t.Key == TelemetryConstants.Tags.OsName && (string?)t.Value == expectedOsName);
239Assert.Contains(tags, t => t.Key == TelemetryConstants.Tags.OsVersion && t.Value is string s && s == Environment.OSVersion.Version.ToString());
240Assert.Contains(tags, t => t.Key == TelemetryConstants.Tags.OsType && (string?)t.Value == expectedOsType);
286Assert.Contains(tags, t => t.Key == TelemetryConstants.Tags.InternalMicrosoft && t.Value is true);
287Assert.Contains(tags, t => t.Key == TelemetryConstants.Tags.InternalMicrosoftSource && (string?)t.Value == "test source");
288Assert.Contains(tags, t => t.Key == TelemetryConstants.Tags.InternalMicrosoftAlias && (string?)t.Value == "test.alias");
289Assert.Contains(tags, t => t.Key == TelemetryConstants.Tags.InternalMicrosoftDomain && (string?)t.Value == "TEST");
309Assert.True((bool?)tag.Value);
314Assert.Equal("test source", tag.Value);
377Assert.Contains(tags, t => t.Key == TelemetryConstants.Tags.MacAddressHash && (string?)t.Value == "test-mac-hash");
378Assert.Contains(tags, t => t.Key == TelemetryConstants.Tags.DeviceId && (string?)t.Value == "test-device-id");
422var activityTags = activity.Tags.ToDictionary(t => t.Key, t => t.Value);
426Assert.Equal(tag.Value?.ToString(), activityTags[tag.Key]);
481Assert.Contains(tags, t => t.Key == TelemetryConstants.Tags.IdentityVersion && (string?)t.Value == "13.5.0-preview.1.26310.9");
482Assert.Contains(tags, t => t.Key == TelemetryConstants.Tags.IdentityChannel && (string?)t.Value == "daily");
483Assert.Contains(tags, t => t.Key == TelemetryConstants.Tags.IdentityCommit && (string?)t.Value == "95f0d2968");
505Assert.Contains(tags, t => t.Key == TelemetryConstants.Tags.IdentityVersion && (string?)t.Value == "13.5.0");
Aspire.Components.Common.TestUtilities (2)
Aspire.Confluent.Kafka (2)
Aspire.Confluent.Kafka.Tests (60)
Aspire8MetricsTests.cs (60)
79Assert.Contains(collectorProducerQueueMessageCount.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
80Assert.Contains(collectorProducerQueueMessageCount.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
83Assert.Contains(collectorConsumerQueueMessageCount.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
84Assert.Contains(collectorConsumerQueueMessageCount.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
87Assert.Contains(collectorProducerQueueSize.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
88Assert.Contains(collectorProducerQueueSize.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
91Assert.Contains(collectorNetworkTx.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
92Assert.Contains(collectorNetworkTx.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
93Assert.Contains(collectorNetworkTx.LastMeasurement!.Tags, t => t.Key == "type" && t.Value!.ToString() == "producer");
96Assert.Contains(collectorNetworkTransmitted.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
97Assert.Contains(collectorNetworkTransmitted.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
98Assert.Contains(collectorNetworkTransmitted.LastMeasurement!.Tags, t => t.Key == "type" && t.Value!.ToString() == "producer");
101Assert.Contains(collectorNetworkRx.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
102Assert.Contains(collectorNetworkRx.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
103Assert.Contains(collectorNetworkRx.LastMeasurement!.Tags, t => t.Key == "type" && t.Value!.ToString() == "producer");
106Assert.Contains(collectorNetworkReceived.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
107Assert.Contains(collectorNetworkReceived.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
108Assert.Contains(collectorNetworkReceived.LastMeasurement!.Tags, t => t.Key == "type" && t.Value!.ToString() == "producer");
111Assert.Contains(collectorMessageTx.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
112Assert.Contains(collectorMessageTx.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
113Assert.Contains(collectorMessageTx.LastMeasurement!.Tags, t => t.Key == "type" && t.Value!.ToString() == "producer");
116Assert.Contains(collectorMessageTransmitted.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
117Assert.Contains(collectorMessageTransmitted.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
118Assert.Contains(collectorMessageTransmitted.LastMeasurement!.Tags, t => t.Key == "type" && t.Value!.ToString() == "producer");
121Assert.Contains(collectorMessageRx.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
122Assert.Contains(collectorMessageRx.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
123Assert.Contains(collectorMessageRx.LastMeasurement!.Tags, t => t.Key == "type" && t.Value!.ToString() == "producer");
126Assert.Contains(collectorMessageReceived.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
127Assert.Contains(collectorMessageReceived.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
128Assert.Contains(collectorMessageReceived.LastMeasurement!.Tags, t => t.Key == "type" && t.Value!.ToString() == "producer");
194Assert.Contains(collectorProducerQueueMessageCount.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
195Assert.Contains(collectorProducerQueueMessageCount.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
198Assert.Contains(collectorConsumerQueueMessageCount.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
199Assert.Contains(collectorConsumerQueueMessageCount.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
202Assert.Contains(collectorProducerQueueSize.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
203Assert.Contains(collectorProducerQueueSize.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
206Assert.Contains(collectorNetworkTx.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
207Assert.Contains(collectorNetworkTx.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
208Assert.Contains(collectorNetworkTx.LastMeasurement!.Tags, t => t.Key == "type" && t.Value!.ToString() == "producer");
211Assert.Contains(collectorNetworkTransmitted.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
212Assert.Contains(collectorNetworkTransmitted.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
213Assert.Contains(collectorNetworkTransmitted.LastMeasurement!.Tags, t => t.Key == "type" && t.Value!.ToString() == "producer");
216Assert.Contains(collectorNetworkRx.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
217Assert.Contains(collectorNetworkRx.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
218Assert.Contains(collectorNetworkRx.LastMeasurement!.Tags, t => t.Key == "type" && t.Value!.ToString() == "producer");
221Assert.Contains(collectorNetworkReceived.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
222Assert.Contains(collectorNetworkReceived.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
223Assert.Contains(collectorNetworkReceived.LastMeasurement!.Tags, t => t.Key == "type" && t.Value!.ToString() == "producer");
226Assert.Contains(collectorMessageTx.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
227Assert.Contains(collectorMessageTx.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
228Assert.Contains(collectorMessageTx.LastMeasurement!.Tags, t => t.Key == "type" && t.Value!.ToString() == "producer");
231Assert.Contains(collectorMessageTransmitted.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
232Assert.Contains(collectorMessageTransmitted.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
233Assert.Contains(collectorMessageTransmitted.LastMeasurement!.Tags, t => t.Key == "type" && t.Value!.ToString() == "producer");
236Assert.Contains(collectorMessageRx.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
237Assert.Contains(collectorMessageRx.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
238Assert.Contains(collectorMessageRx.LastMeasurement!.Tags, t => t.Key == "type" && t.Value!.ToString() == "producer");
241Assert.Contains(collectorMessageReceived.LastMeasurement!.Tags, t => t.Key == "messaging.client_id" && t.Value!.ToString() == "rdkafka");
242Assert.Contains(collectorMessageReceived.LastMeasurement!.Tags, t => t.Key == "name" && t.Value!.ToString() == "rdkafka#producer-1");
243Assert.Contains(collectorMessageReceived.LastMeasurement!.Tags, t => t.Key == "type" && t.Value!.ToString() == "producer");
Aspire.Dashboard (61)
Aspire.Dashboard.Components.Tests (24)
Aspire.Dashboard.Tests (112)
Model\ResourceViewModelTests.cs (17)
85var (key, vm) = (e.Key, e.Value);
137Assert.Equal("Property1", p.Value.Name);
138Assert.Equal("Value1", p.Value.Value.StringValue);
139Assert.Equal(123, p.Value.SortOrder);
140Assert.Same(kp, p.Value.KnownProperty);
141Assert.Equal("Property one", p.Value.DisplayName);
142Assert.True(p.Value.IsHighlighted);
143Assert.False(p.Value.IsValueMasked);
144Assert.False(p.Value.IsValueSensitive);
149Assert.Equal("Property2", p.Value.Name);
150Assert.Equal("Value2", p.Value.Value.StringValue);
151Assert.Equal(123, p.Value.SortOrder);
152Assert.Same(kp, p.Value.KnownProperty);
153Assert.Null(p.Value.DisplayName);
154Assert.False(p.Value.IsHighlighted);
155Assert.True(p.Value.IsValueMasked);
156Assert.True(p.Value.IsValueSensitive);
TelemetryRepositoryTests\LogTests.cs (10)
84Assert.Equal("Value!", p.Value);
676Assert.Equal("01234", p.Value);
681Assert.Equal("0123456789", p.Value);
686Assert.Equal("012345678901234", p.Value);
691Assert.Equal("0123456789012345", p.Value);
696Assert.Equal("0123456789012345", p.Value);
943Assert.Equal("Value!", p.Value);
966Assert.Equal("Value!", p.Value);
1039Assert.Equal("value-1", p.Value);
1050Assert.Equal("value-2", p.Value);
TelemetryRepositoryTests\MetricsTests.cs (21)
164Assert.Equal("01234", p.Value);
169Assert.Equal("0123456789", p.Value);
174Assert.Equal("012345678901234", p.Value);
179Assert.Equal("0123456789012345", p.Value);
184Assert.Equal("0123456789012345", p.Value);
193Assert.Equal("01234", p.Value);
198Assert.Equal("0123456789", p.Value);
203Assert.Equal("012345678901234", p.Value);
208Assert.Equal("0123456789012345", p.Value);
213Assert.Equal("0123456789012345", p.Value);
280Assert.Equal("01234", p.Value);
289Assert.Equal("01234", p.Value);
294Assert.Equal("01234", p.Value);
299Assert.Equal("0123456789", p.Value);
304Assert.Equal("012345678901234", p.Value);
309Assert.Equal("0123456789012345", p.Value);
384Assert.Equal(new[] { null, "value1", "value2" }, e.Value);
389Assert.Equal(new[] { null, "value1", "" }, e.Value);
398Assert.Equal("value1", exemplar.Attributes[0].Value);
423exemplar.FilteredAttributes.Add(new KeyValue { Key = attribute.Key, Value = new AnyValue { StringValue = attribute.Value } });
622Assert.Collection(knownValues.Value.Order(),
TelemetryRepositoryTests\OtlpHelpersTests.cs (22)
182Assert.Equal("value1", a.Value);
212Assert.Equal("value1", a.Value);
217Assert.Equal("value2", a.Value);
222Assert.Equal("value3", a.Value);
256Assert.Equal("value1-2", a.Value);
261Assert.Equal("value2-2", a.Value);
266Assert.Equal("value3-2", a.Value);
295Assert.Equal("parentvalue1", a.Value);
300Assert.Equal("value1", a.Value);
331Assert.Equal("parentvalue1", a.Value);
336Assert.Equal("value1", a.Value);
341Assert.Equal("value2", a.Value);
374Assert.Equal("parentvalue1", a.Value);
379Assert.Equal("parentvalue2", a.Value);
384Assert.Equal("parentvalue3", a.Value);
407Assert.Equal("value1", a.Value);
412Assert.Equal("value2", a.Value);
443Assert.Equal("value1-2", a.Value);
448Assert.Equal("value2", a.Value);
491Assert.Equal("value1-2", a.Value);
496Assert.Equal("value2", a.Value);
501Assert.Equal("value3", a.Value);
TelemetryRepositoryTests\TraceTests.cs (18)
574Assert.Equal("Value!", a.Value);
651Assert.Equal("Value!", a.Value);
662Assert.Equal("Value!", a.Value);
676Assert.Equal("Value!", a.Value);
687Assert.Equal("Value!", a.Value);
817Assert.Equal("01234", p.Value);
822Assert.Equal("0123456789", p.Value);
827Assert.Equal("012345678901234", p.Value);
832Assert.Equal("0123456789012345", p.Value);
837Assert.Equal("0123456789012345", p.Value);
1633Assert.Equal("value1", p.Value);
1642Assert.Equal("value2", p.Value);
1647Assert.Equal("value1", p.Value);
1668Assert.Equal("value1", p.Value);
1678Assert.Equal("value2", p.Value);
1683Assert.Equal("value1", p.Value);
1693Assert.Equal("value2", p.Value);
1698Assert.Equal("value1", p.Value);
Aspire.EndToEnd.Tests (4)
Aspire.Hosting (72)
Aspire.Hosting.Azure (23)
Aspire.Hosting.Azure.AppContainers (4)
Aspire.Hosting.Azure.AppService (2)
Aspire.Hosting.Azure.Kusto.Tests (8)
Aspire.Hosting.Azure.Network (1)
Aspire.Hosting.Azure.PostgreSQL (5)
Aspire.Hosting.Azure.ServiceBus (1)
Aspire.Hosting.Azure.Sql (6)
Aspire.Hosting.Azure.Tests (185)
AzureCosmosDBContainerConnectionPropertiesTests.cs (15)
20var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
27Assert.Equal("{cosmosdb.outputs.connectionString}", property.Value.ValueExpression);
32Assert.Equal("mydb", property.Value.ValueExpression);
37Assert.Equal("mycontainer", property.Value.ValueExpression);
50var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
57Assert.Equal("{cosmosdb.outputs.connectionString}", property.Value.ValueExpression);
62Assert.Equal("{cosmosdb-kv.secrets.primaryaccesskey--cosmosdb}", property.Value.ValueExpression);
67Assert.Equal("{cosmosdb-kv.secrets.connectionstrings--cosmosdb}", property.Value.ValueExpression);
72Assert.Equal("mydb", property.Value.ValueExpression);
77Assert.Equal("mycontainer", property.Value.ValueExpression);
103Assert.Equal("{cosmosdb.bindings.emulator.url}", property.Value.ValueExpression);
108Assert.Equal("C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==", property.Value.ValueExpression);
113Assert.Equal(expectedConnectionString, property.Value.ValueExpression);
118Assert.Equal("mydb", property.Value.ValueExpression);
123Assert.Equal("mycontainer", property.Value.ValueExpression);
AzureCosmosDBDatabaseConnectionPropertiesTests.cs (12)
19var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
26Assert.Equal("{cosmosdb.outputs.connectionString}", property.Value.ValueExpression);
31Assert.Equal("mydb", property.Value.ValueExpression);
43var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
50Assert.Equal("{cosmosdb.outputs.connectionString}", property.Value.ValueExpression);
55Assert.Equal("{cosmosdb-kv.secrets.primaryaccesskey--cosmosdb}", property.Value.ValueExpression);
60Assert.Equal("{cosmosdb-kv.secrets.connectionstrings--cosmosdb}", property.Value.ValueExpression);
65Assert.Equal("mydb", property.Value.ValueExpression);
90Assert.Equal("{cosmosdb.bindings.emulator.url}", property.Value.ValueExpression);
95Assert.Equal("C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==", property.Value.ValueExpression);
100Assert.Equal(expectedConnectionString, property.Value.ValueExpression);
105Assert.Equal("mydb", property.Value.ValueExpression);
AzurePostgresFlexibleServerConnectionPropertiesTests.cs (12)
18var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
25Assert.Equal("{postgres.outputs.hostName}", property.Value.ValueExpression);
30Assert.Equal("5432", property.Value.ValueExpression);
35Assert.Equal("postgresql://{postgres.outputs.hostName}", property.Value.ValueExpression);
40Assert.Equal("jdbc:postgresql://{postgres.outputs.hostName}?sslmode=require&authenticationPluginClassName=com.azure.identity.extensions.jdbc.postgresql.AzurePostgresqlAuthenticationPlugin", property.Value.ValueExpression);
51var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
58Assert.Equal("{postgres.outputs.hostName}", property.Value.ValueExpression);
63Assert.Equal("jdbc:postgresql://{postgres.outputs.hostName}?sslmode=require&authenticationPluginClassName=com.azure.identity.extensions.jdbc.postgresql.AzurePostgresqlAuthenticationPlugin", property.Value.ValueExpression);
68Assert.Equal("{postgres-password.value}", property.Value.ValueExpression);
73Assert.Equal("5432", property.Value.ValueExpression);
78Assert.Equal("postgresql://{postgres-username.value}:{postgres-password.value}@{postgres.outputs.hostName}", property.Value.ValueExpression);
83Assert.Equal("{postgres-username.value}", property.Value.ValueExpression);
AzurePostgresFlexibleServerDatabaseConnectionPropertiesTests.cs (14)
19var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
26Assert.Equal("mydb", property.Value.ValueExpression);
31Assert.Equal("{postgres.outputs.hostName}", property.Value.ValueExpression);
36Assert.Equal("jdbc:postgresql://{postgres.outputs.hostName}/mydb?sslmode=require&authenticationPluginClassName=com.azure.identity.extensions.jdbc.postgresql.AzurePostgresqlAuthenticationPlugin", property.Value.ValueExpression);
41Assert.Equal("5432", property.Value.ValueExpression);
46Assert.Equal("postgresql://{postgres.outputs.hostName}/mydb", property.Value.ValueExpression);
58var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
65Assert.Equal("mydb", property.Value.ValueExpression);
70Assert.Equal("{postgres.outputs.hostName}", property.Value.ValueExpression);
75Assert.Equal("jdbc:postgresql://{postgres.outputs.hostName}/mydb?sslmode=require&authenticationPluginClassName=com.azure.identity.extensions.jdbc.postgresql.AzurePostgresqlAuthenticationPlugin", property.Value.ValueExpression);
80Assert.Equal("{postgres-password.value}", property.Value.ValueExpression);
85Assert.Equal("5432", property.Value.ValueExpression);
90Assert.Equal("postgresql://{postgres-username.value}:{postgres-password.value}@{postgres.outputs.hostName}/mydb", property.Value.ValueExpression);
95Assert.Equal("{postgres-username.value}", property.Value.ValueExpression);
AzureSqlDatabaseConnectionPropertiesTests.cs (26)
18var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
25Assert.Equal("{sql.outputs.sqlServerFqdn}", property.Value.ValueExpression);
30Assert.Equal("jdbc:sqlserver://{sql.outputs.sqlServerFqdn}:1433;encrypt=true;trustServerCertificate=false", property.Value.ValueExpression);
35Assert.Equal("1433", property.Value.ValueExpression);
40Assert.Equal("mssql://{sql.outputs.sqlServerFqdn}:1433", property.Value.ValueExpression);
52var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
59Assert.Equal("mydb", property.Value.ValueExpression);
64Assert.Equal("{sql.outputs.sqlServerFqdn}", property.Value.ValueExpression);
69Assert.Equal("jdbc:sqlserver://{sql.outputs.sqlServerFqdn}:1433;database=mydb;encrypt=true;trustServerCertificate=false", property.Value.ValueExpression);
74Assert.Equal("1433", property.Value.ValueExpression);
79Assert.Equal("mssql://{sql.outputs.sqlServerFqdn}:1433/mydb", property.Value.ValueExpression);
97var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
104Assert.Equal("{sql.bindings.tcp.host}", property.Value.ValueExpression);
109Assert.Equal("jdbc:sqlserver://{sql.bindings.tcp.host}:{sql.bindings.tcp.port};trustServerCertificate=true", property.Value.ValueExpression);
114Assert.NotEmpty(property.Value.ValueExpression);
119Assert.Equal("{sql.bindings.tcp.port}", property.Value.ValueExpression);
124Assert.Equal("mssql://sa:{sql-password.value}@{sql.bindings.tcp.host}:{sql.bindings.tcp.port}", property.Value.ValueExpression);
129Assert.Equal("sa", property.Value.ValueExpression);
148var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
155Assert.Equal("mydb", property.Value.ValueExpression);
160Assert.Equal("{sql.bindings.tcp.host}", property.Value.ValueExpression);
165Assert.Equal("jdbc:sqlserver://{sql.bindings.tcp.host}:{sql.bindings.tcp.port};databaseName=mydb;trustServerCertificate=true", property.Value.ValueExpression);
170Assert.NotEmpty(property.Value.ValueExpression);
175Assert.Equal("{sql.bindings.tcp.port}", property.Value.ValueExpression);
180Assert.Equal("mssql://sa:{sql-password.value}@{sql.bindings.tcp.host}:{sql.bindings.tcp.port}/mydb", property.Value.ValueExpression);
185Assert.Equal("sa", property.Value.ValueExpression);
FoundryDeploymentConnectionPropertiesTests.cs (11)
31Assert.Equal("http://localhost:8080/", property.Value.ValueExpression);
36Assert.Equal("http://localhost:8080/", property.Value.ValueExpression);
41Assert.Equal("OPENAI_KEY", property.Value.ValueExpression);
46Assert.Equal(FoundryModel.Local.Phi4.Name, property.Value.ValueExpression);
51Assert.Equal(FoundryModel.Local.Phi4.Format, property.Value.ValueExpression);
56Assert.Equal(FoundryModel.Local.Phi4.Version, property.Value.ValueExpression);
74Assert.Equal("{aifoundry.outputs.aiFoundryApiEndpoint}", property.Value.ValueExpression);
79Assert.Equal("{aifoundry.outputs.aiFoundryApiEndpoint}models", property.Value.ValueExpression);
85Assert.Equal("chat", property.Value.ValueExpression);
90Assert.Equal(FoundryModel.Microsoft.Phi4.Format, property.Value.ValueExpression);
95Assert.Equal(FoundryModel.Microsoft.Phi4.Version, property.Value.ValueExpression);
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.Browsers (1)
Aspire.Hosting.Browsers.Tests (3)
Aspire.Hosting.CodeGeneration.Go (3)
AtsGoCodeGenerator.cs (3)
700=> $"map[{MapTypeRefToGo(typeRef.KeyType, isOptional: false)}]{MapTypeRefToGo(typeRef.ValueType, isOptional: false)}{{{string.Join(", ", obj.Select(pair => $"{AtsJsonCodeWriter.ToRelaxedJsonString(pair.Key)}: {RenderGoExportedValue(pair.Value, typeRef.ValueType!, dtoTypesById)}"))}}}",
776.OrderBy(kv => kv.Value, StringComparer.Ordinal)
1919foreach (var (typeId, implName) in _implNames.OrderBy(kv => kv.Value, StringComparer.Ordinal))
Aspire.Hosting.CodeGeneration.Java (1)
Aspire.Hosting.CodeGeneration.Java.Tests (3)
Aspire.Hosting.CodeGeneration.Python (5)
Aspire.Hosting.CodeGeneration.TypeScript (2)
Aspire.Hosting.Containers.Tests (1)
Aspire.Hosting.Docker (5)
Aspire.Hosting.Docker.Tests (7)
Aspire.Hosting.EntityFrameworkCore (3)
Aspire.Hosting.EntityFrameworkCore.Tests (3)
Aspire.Hosting.Foundry (6)
Aspire.Hosting.Foundry.Tests (10)
Aspire.Hosting.Garnet.Tests (4)
Aspire.Hosting.GitHub.Models.Tests (7)
Aspire.Hosting.Integration.Analyzers (7)
Aspire.Hosting.Kafka.Tests (8)
Aspire.Hosting.Kubernetes (11)
Aspire.Hosting.Kubernetes.Tests (2)
Aspire.Hosting.Maui (1)
Aspire.Hosting.Maui.Tests (5)
Aspire.Hosting.Milvus.Tests (11)
Aspire.Hosting.MongoDB.Tests (22)
ConnectionPropertiesTests.cs (15)
25Assert.Equal("{mongo.bindings.tcp.host}", property.Value.ValueExpression);
30Assert.Equal("{mongo.bindings.tcp.port}", property.Value.ValueExpression);
35Assert.Equal("{user.value}", property.Value.ValueExpression);
40Assert.Equal("{password.value}", property.Value.ValueExpression);
45Assert.Equal("admin", property.Value.ValueExpression);
50Assert.Equal("SCRAM-SHA-256", property.Value.ValueExpression);
55Assert.Equal("mongodb://{user.value}:{password.value}@{mongo.bindings.tcp.host}:{mongo.bindings.tcp.port}/?authSource=admin&authMechanism=SCRAM-SHA-256", property.Value.ValueExpression);
69Assert.Contains(properties, property => property.Key == "Host" && property.Value.ValueExpression == "{mongo.bindings.tcp.host}");
70Assert.Contains(properties, property => property.Key == "Port" && property.Value.ValueExpression == "{mongo.bindings.tcp.port}");
71Assert.Contains(properties, property => property.Key == "Username" && property.Value.ValueExpression == "{user.value}");
72Assert.Contains(properties, property => property.Key == "Password" && property.Value.ValueExpression == "{password.value}");
73Assert.Contains(properties, property => property.Key == "AuthenticationDatabase" && property.Value.ValueExpression == "admin");
74Assert.Contains(properties, property => property.Key == "AuthenticationMechanism" && property.Value.ValueExpression == "SCRAM-SHA-256");
75Assert.Contains(properties, property => property.Key == "DatabaseName" && property.Value.ValueExpression == "Products");
79property.Value.ValueExpression == "mongodb://{user.value}:{password.value}@{mongo.bindings.tcp.host}:{mongo.bindings.tcp.port}/Products?authSource=admin&authMechanism=SCRAM-SHA-256");
Aspire.Hosting.MySql.Tests (17)
ConnectionPropertiesTests.cs (13)
24Assert.Equal("{mysql.bindings.tcp.host}", property.Value.ValueExpression);
29Assert.Equal("{mysql.bindings.tcp.port}", property.Value.ValueExpression);
34Assert.Equal("root", property.Value.ValueExpression);
39Assert.Equal("{password.value}", property.Value.ValueExpression);
44Assert.Equal("mysql://root:{password.value}@{mysql.bindings.tcp.host}:{mysql.bindings.tcp.port}", property.Value.ValueExpression);
49Assert.Equal("jdbc:mysql://{mysql.bindings.tcp.host}:{mysql.bindings.tcp.port}", property.Value.ValueExpression);
62Assert.Contains(properties, property => property.Key == "Host" && property.Value.ValueExpression == "{mysql.bindings.tcp.host}");
63Assert.Contains(properties, property => property.Key == "Port" && property.Value.ValueExpression == "{mysql.bindings.tcp.port}");
64Assert.Contains(properties, property => property.Key == "Username" && property.Value.ValueExpression == "root");
65Assert.Contains(properties, property => property.Key == "Password" && property.Value.ValueExpression == "{password.value}");
66Assert.Contains(properties, property => property.Key == "DatabaseName" && property.Value.ValueExpression == "Orders");
70property.Value.ValueExpression == "mysql://root:{password.value}@{mysql.bindings.tcp.host}:{mysql.bindings.tcp.port}/Orders");
74property.Value.ValueExpression == "jdbc:mysql://{mysql.bindings.tcp.host}:{mysql.bindings.tcp.port}/Orders");
Aspire.Hosting.Nats.Tests (5)
Aspire.Hosting.OpenAI.Tests (7)
Aspire.Hosting.Oracle.Tests (15)
ConnectionPropertiesTests.cs (12)
24Assert.Equal("{oracle.bindings.tcp.host}", property.Value.ValueExpression);
29Assert.Equal("{oracle.bindings.tcp.port}", property.Value.ValueExpression);
34Assert.Equal("system", property.Value.ValueExpression);
39Assert.Equal("{password.value}", property.Value.ValueExpression);
44Assert.Equal("oracle://system:{password.value}@{oracle.bindings.tcp.host}:{oracle.bindings.tcp.port}", property.Value.ValueExpression);
49Assert.Equal("jdbc:oracle:thin:@//{oracle.bindings.tcp.host}:{oracle.bindings.tcp.port}", property.Value.ValueExpression);
62Assert.Contains(properties, property => property.Key == "Host" && property.Value.ValueExpression == "{oracle.bindings.tcp.host}");
63Assert.Contains(properties, property => property.Key == "Port" && property.Value.ValueExpression == "{oracle.bindings.tcp.port}");
64Assert.Contains(properties, property => property.Key == "Username" && property.Value.ValueExpression == "system");
65Assert.Contains(properties, property => property.Key == "Password" && property.Value.ValueExpression == "{password.value}");
66Assert.Contains(properties, property => property.Key == "DatabaseName" && property.Value.ValueExpression == "Orders");
70property.Value.ValueExpression == "jdbc:oracle:thin:@//{oracle.bindings.tcp.host}:{oracle.bindings.tcp.port}/Orders");
Aspire.Hosting.PostgreSQL.Tests (27)
AddPostgresTests.cs (13)
78Assert.Equal("scram-sha-256", env.Value);
83Assert.Equal("--auth-host=scram-sha-256 --auth-local=scram-sha-256", env.Value);
88Assert.Equal("postgres", env.Value);
93Assert.False(string.IsNullOrEmpty(env.Value));
132Assert.Equal("scram-sha-256", env.Value);
137Assert.Equal("--auth-host=scram-sha-256 --auth-local=scram-sha-256", env.Value);
142Assert.Equal("postgres", env.Value);
147Assert.Equal("pass", env.Value);
248Assert.Equal("scram-sha-256", env.Value);
253Assert.Equal("--auth-host=scram-sha-256 --auth-local=scram-sha-256", env.Value);
258Assert.Equal("postgres", env.Value);
263Assert.Equal("pass", env.Value);
730Assert.Equal(kvp.Value, config2[kvp.Key]);
ConnectionPropertiesTests.cs (13)
24Assert.Equal("{postgres.bindings.tcp.host}", property.Value.ValueExpression);
29Assert.Equal("{postgres.bindings.tcp.port}", property.Value.ValueExpression);
34Assert.Equal("{user.value}", property.Value.ValueExpression);
39Assert.Equal("{password.value}", property.Value.ValueExpression);
44Assert.Equal("postgresql://{user.value}:{password.value}@{postgres.bindings.tcp.host}:{postgres.bindings.tcp.port}", property.Value.ValueExpression);
49Assert.Equal("jdbc:postgresql://{postgres.bindings.tcp.host}:{postgres.bindings.tcp.port}", property.Value.ValueExpression);
63Assert.Contains(properties, property => property.Key == "Host" && property.Value.ValueExpression == "{postgres.bindings.tcp.host}");
64Assert.Contains(properties, property => property.Key == "Port" && property.Value.ValueExpression == "{postgres.bindings.tcp.port}");
65Assert.Contains(properties, property => property.Key == "Username" && property.Value.ValueExpression == "{user.value}");
66Assert.Contains(properties, property => property.Key == "Password" && property.Value.ValueExpression == "{password.value}");
67Assert.Contains(properties, property => property.Key == "DatabaseName" && property.Value.ValueExpression == "Customers");
71property.Value.ValueExpression == "postgresql://{user.value}:{password.value}@{postgres.bindings.tcp.host}:{postgres.bindings.tcp.port}/Customers");
75property.Value.ValueExpression == "jdbc:postgresql://{postgres.bindings.tcp.host}:{postgres.bindings.tcp.port}/Customers");
Aspire.Hosting.Qdrant.Tests (13)
Aspire.Hosting.RabbitMQ.Tests (5)
Aspire.Hosting.Radius (9)
Aspire.Hosting.Radius.Tests (3)
Aspire.Hosting.Redis.Tests (17)
AddRedisTests.cs (13)
302Assert.Equal($"{redis1.Resource.Name}.dev.internal", item.Value);
307Assert.Equal($"{redis1.Resource.PrimaryEndpoint.TargetPort!.Value}", item.Value);
312Assert.Equal(redis1.Resource.Name, item.Value);
318Assert.Equal(redis1.Resource.PasswordParameter!.Value, item.Value);
324Assert.Equal($"{redis2.Resource.Name}.dev.internal", item.Value);
329Assert.Equal($"{redis2.Resource.PrimaryEndpoint.TargetPort!.Value}", item.Value);
334Assert.Equal(redis2.Resource.Name, item.Value);
340Assert.Equal(redis2.Resource.PasswordParameter!.Value, item.Value);
346Assert.Equal($"{redis3.Resource.Name}.dev.internal", item.Value);
351Assert.Equal($"{redis3.Resource.PrimaryEndpoint.TargetPort!.Value}", item.Value);
356Assert.Equal(redis3.Resource.Name, item.Value);
778config1.First(kvp => kvp.Key == "RI_REDIS_HOST1").Value,
779config2.First(kvp => kvp.Key == "RI_REDIS_HOST1").Value);
Aspire.Hosting.RemoteHost (5)
Aspire.Hosting.RemoteHost.Tests (1)
Aspire.Hosting.Rust (6)
Aspire.Hosting.Seq.Tests (3)
Aspire.Hosting.SqlServer.Tests (16)
ConnectionPropertiesTests.cs (13)
23Assert.Equal("{sql.bindings.tcp.host}", property.Value.ValueExpression);
28Assert.Equal("jdbc:sqlserver://{sql.bindings.tcp.host}:{sql.bindings.tcp.port};trustServerCertificate=true", property.Value.ValueExpression);
33Assert.Equal("{password.value}", property.Value.ValueExpression);
38Assert.Equal("{sql.bindings.tcp.port}", property.Value.ValueExpression);
43Assert.Equal("mssql://sa:{password.value}@{sql.bindings.tcp.host}:{sql.bindings.tcp.port}", property.Value.ValueExpression);
48Assert.Equal("sa", property.Value.ValueExpression);
66Assert.Equal("Orders", property.Value.ValueExpression);
71Assert.Equal("{sql.bindings.tcp.host}", property.Value.ValueExpression);
76Assert.Equal("jdbc:sqlserver://{sql.bindings.tcp.host}:{sql.bindings.tcp.port};databaseName=Orders;trustServerCertificate=true", property.Value.ValueExpression);
81Assert.Equal("{password.value}", property.Value.ValueExpression);
86Assert.Equal("{sql.bindings.tcp.port}", property.Value.ValueExpression);
91Assert.Equal("mssql://sa:{password.value}@{sql.bindings.tcp.host}:{sql.bindings.tcp.port}/Orders", property.Value.ValueExpression);
96Assert.Equal("sa", property.Value.ValueExpression);
Aspire.Hosting.Testing (6)
Aspire.Hosting.Testing.Tests (5)
Aspire.Hosting.Tests (113)
Dashboard\DashboardResourceTests.cs (25)
127Assert.Equal("true", e.Value);
132Assert.Equal("http://localhost:5001", e.Value);
137Assert.Equal("http://localhost:5000", e.Value);
142Assert.Equal("Production", e.Value);
147Assert.Equal("http://localhost:5003", e.Value);
152Assert.Equal("Unsecured", e.Value);
157Assert.Equal("Unsecured", e.Value);
162Assert.Equal("http://localhost:5003", e.Value);
167Assert.Equal("Unsecured", e.Value);
172Assert.Equal("Unsecured", e.Value);
177Assert.Equal("json", e.Value);
384Assert.Equal("BrowserToken", config.Single(e => e.Key == DashboardConfigNames.DashboardFrontendAuthModeName.EnvVarName).Value);
385Assert.Equal("TestBrowserToken!", config.Single(e => e.Key == DashboardConfigNames.DashboardFrontendBrowserTokenName.EnvVarName).Value);
387Assert.Equal("ApiKey", config.Single(e => e.Key == DashboardConfigNames.DashboardOtlpAuthModeName.EnvVarName).Value);
388Assert.Equal("TestOtlpApiKey!", config.Single(e => e.Key == DashboardConfigNames.DashboardOtlpPrimaryApiKeyName.EnvVarName).Value);
424Assert.Equal("Unsecured", config.Single(e => e.Key == DashboardConfigNames.DashboardFrontendAuthModeName.EnvVarName).Value);
425Assert.Equal("Unsecured", config.Single(e => e.Key == DashboardConfigNames.DashboardOtlpAuthModeName.EnvVarName).Value);
460Assert.Equal("http://localhost:5000", config.Single(e => e.Key == DashboardConfigNames.ResourceServiceUrlName.EnvVarName).Value);
505Assert.Equal("http://localhost:5002", config.Single(e => e.Key == DashboardConfigNames.DashboardOtlpHttpUrlName.EnvVarName).Value);
506Assert.Equal(expectedAllowedOrigins, config.Single(e => e.Key == DashboardConfigNames.DashboardOtlpCorsAllowedOriginsKeyName.EnvVarName).Value);
507Assert.Equal("*", config.Single(e => e.Key == DashboardConfigNames.DashboardOtlpCorsAllowedHeadersKeyName.EnvVarName).Value);
551Assert.Equal("https://localhost:5001", config.Single(e => e.Key == DashboardConfigNames.DashboardOtlpGrpcUrlName.EnvVarName).Value);
552Assert.Equal("https://localhost:5002", config.Single(e => e.Key == DashboardConfigNames.DashboardOtlpHttpUrlName.EnvVarName).Value);
553Assert.Equal(expectedAllowedOrigins, config.Single(e => e.Key == DashboardConfigNames.DashboardOtlpCorsAllowedOriginsKeyName.EnvVarName).Value);
554Assert.Equal("*", config.Single(e => e.Key == DashboardConfigNames.DashboardOtlpCorsAllowedHeadersKeyName.EnvVarName).Value);
ProjectResourceTests.cs (16)
143Assert.Equal("in_memory", env.Value);
148Assert.Equal("true", env.Value);
153Assert.Equal("true", env.Value);
158Assert.Equal("http://localhost:18889", env.Value);
163Assert.Equal("grpc", env.Value);
168Assert.Equal("service.instance.id={{- index .Annotations \"otel-service-instance-id\" -}}", env.Value);
173Assert.Equal("{{- index .Annotations \"otel-service-name\" -}}", env.Value);
178var parts = env.Value.Split('=');
185Assert.Equal("1000", env.Value);
190Assert.Equal("1000", env.Value);
195Assert.Equal("1000", env.Value);
200Assert.Equal("always_on", env.Value);
205Assert.Equal("trace_based", env.Value);
210Assert.Equal("true", env.Value);
215Assert.Equal("true", env.Value);
220Assert.Equal("simple", env.Value);
WithReferenceTests.cs (27)
416Assert.Contains(config, kvp => kvp.Key == "ConnectionStrings__resource" && kvp.Value == "123");
520Assert.Contains(config, kvp => kvp.Key == "ConnectionStrings__bob" && kvp.Value == "123");
544Assert.Contains(config, kvp => kvp.Key == "services__petstore__default__0" && kvp.Value == "https://petstore.swagger.io/v2");
545Assert.Contains(config, kvp => kvp.Key == "petstore" && kvp.Value == "https://petstore.swagger.io/v2");
561Assert.Contains(config, kvp => kvp.Key == "services__petstore__default__0" && kvp.Value == "https://petstore.swagger.io/");
562Assert.Contains(config, kvp => kvp.Key == "petstore" && kvp.Value == "https://petstore.swagger.io/");
583Assert.Contains(config, kvp => kvp.Key == "ConnectionStrings__resource" && kvp.Value == "Server=localhost;Database=mydb");
586Assert.Contains(config, kvp => kvp.Key == "RESOURCE_HOST" && kvp.Value == "localhost");
587Assert.Contains(config, kvp => kvp.Key == "RESOURCE_PORT" && kvp.Value == "5432");
608Assert.Contains(config, kvp => kvp.Key == "ConnectionStrings__resource" && kvp.Value == "Server=localhost;Database=mydb");
611Assert.Contains(config, kvp => kvp.Key == "RESOURCE_HOST" && kvp.Value == "localhost");
612Assert.Contains(config, kvp => kvp.Key == "RESOURCE_PORT" && kvp.Value == "5432");
633Assert.Contains(config, kvp => kvp.Key == "ConnectionStrings__resource" && kvp.Value == "Server=localhost;Database=mydb");
636Assert.Contains(config, kvp => kvp.Key == "RESOURCE_HOST" && kvp.Value == "localhost");
637Assert.Contains(config, kvp => kvp.Key == "RESOURCE_PORT" && kvp.Value == "5432");
660Assert.Contains(config, kvp => kvp.Key == "ConnectionStrings__resource" && kvp.Value == "Server=localhost;Database=mydb");
663Assert.Contains(config, kvp => kvp.Key == "RESOURCE_HOST" && kvp.Value == "localhost");
664Assert.Contains(config, kvp => kvp.Key == "RESOURCE_PORT" && kvp.Value == "5432");
685Assert.Contains(config, kvp => kvp.Key == "ConnectionStrings__resource" && kvp.Value == "Server=localhost;Database=mydb");
715Assert.Contains(config, kvp => kvp.Key == "RESOURCE_HOST" && kvp.Value == "localhost");
716Assert.Contains(config, kvp => kvp.Key == "RESOURCE_PORT" && kvp.Value == "5432");
741Assert.Contains(config, kvp => kvp.Key == "ConnectionStrings__resource" && kvp.Value == "Server=localhost;Database=mydb");
763Assert.Contains(config, kvp => kvp.Key == "ConnectionStrings__bob" && kvp.Value == "Server=localhost;Database=mydb");
764Assert.Contains(config, kvp => kvp.Key == "BOB_HOST" && kvp.Value == "localhost");
765Assert.Contains(config, kvp => kvp.Key == "BOB_PORT" && kvp.Value == "5432");
785Assert.Contains(config, kvp => kvp.Key == "RESOURCE_WITH_DASH_HOST" && kvp.Value == "localhost");
786Assert.Contains(config, kvp => kvp.Key == "RESOURCE_WITH_DASH_PORT" && kvp.Value == "5432");
Aspire.Hosting.TestUtilities (4)
Aspire.Hosting.Valkey.Tests (4)
Aspire.Hosting.Yarp (2)
Aspire.Hosting.Yarp.Tests (4)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (2)
Aspire.NATS.Net.Tests (1)
Aspire.Playground.Tests (4)
Aspire.RabbitMQ.Client.Tests (7)
Aspire.RabbitMQ.Client.v6.Tests (7)
Aspire.StackExchange.Redis (2)
Aspire.StackExchange.Redis.DistributedCaching.Tests (3)
Aspire.StackExchange.Redis.OutputCaching.Tests (3)
Aspire.StackExchange.Redis.Tests (1)
Aspire.Templates.Tests (4)
Binding.Http.IntegrationTests (1)
BlazorHosted.ClientServiceDefaults (2)
BlazorStandalone.ClientServiceDefaults (2)
Client.ClientBase.IntegrationTests (1)
CodeStyleConfigFileGenerator (1)
ConfigurationSchemaGenerator (1)
crossgen2 (15)
csc (3)
dotnet (65)
dotnet-aot (12)
dotnet-format (6)
dotnet-openapi (2)
dotnet-svcutil-lib (69)
dotnet-svcutil-lib.Tests (1)
dotnet-user-jwts (7)
dotnet-user-secrets (6)
dotnet-watch (2)
DotNetWatchTasks (2)
EventSourceGenerator (1)
GenerateDocumentationAndConfigFiles (46)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
44kvp.Value.Free();
GetDocument.Insider (4)
ILAssembler (1)
ilc (2)
ILCompiler.Compiler (59)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (11)
138return _resTypeHeadID.SelectMany(typeIdPair => SelectResType(typeIdPair.Key, typeIdPair.Value))
139.Concat(_resTypeHeadName.SelectMany(typeNamePair => SelectResType(typeNamePair.Key, typeNamePair.Value)));
143return resType.NameHeadID.SelectMany(nameIdPair => SelectResName(type, nameIdPair.Key, nameIdPair.Value))
145SelectResName(type, nameNamePair.Key, nameNamePair.Value)));
150return resType.Languages.Select((lang) => (name, type, lang.Key, lang.Value.DataEntry));
206resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable)));
210resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
220resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable)));
224resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
234resLanguages.Add(new Tuple<ResLanguage, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
242foreach (ObjectDataBuilder.Reservation reservation in name.Value)
ILCompiler.MetadataTransform (3)
ILCompiler.ReadyToRun (69)
Compiler\PettisHansenSort\PettisHansen.cs (5)
46AddEdge(i, kvp.Key.Index, kvp.Value);
47AddEdge(kvp.Key.Index, i, kvp.Value);
66queue.Enqueue((i, kvp.Key), -kvp.Value); // PriorityQueue gives lowest prio first
137AddEdge(winner, edge.Key, edge.Value);
138AddEdge(edge.Key, winner, edge.Value);
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (11)
138return _resTypeHeadID.SelectMany(typeIdPair => SelectResType(typeIdPair.Key, typeIdPair.Value))
139.Concat(_resTypeHeadName.SelectMany(typeNamePair => SelectResType(typeNamePair.Key, typeNamePair.Value)));
143return resType.NameHeadID.SelectMany(nameIdPair => SelectResName(type, nameIdPair.Key, nameIdPair.Value))
145SelectResName(type, nameNamePair.Key, nameNamePair.Value)));
150return resType.Languages.Select((lang) => (name, type, lang.Key, lang.Value.DataEntry));
206resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable)));
210resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
220resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable)));
224resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
234resLanguages.Add(new Tuple<ResLanguage, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
242foreach (ObjectDataBuilder.Reservation reservation in name.Value)
ILCompiler.RyuJit (13)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\PettisHansenSort\PettisHansen.cs (5)
46AddEdge(i, kvp.Key.Index, kvp.Value);
47AddEdge(kvp.Key.Index, i, kvp.Value);
66queue.Enqueue((i, kvp.Key), -kvp.Value); // PriorityQueue gives lowest prio first
137AddEdge(winner, edge.Key, edge.Value);
138AddEdge(edge.Key, winner, edge.Value);
illink (17)
ILLink.RoslynAnalyzer (11)
ILLink.Tasks (3)
Infrastructure.Tests (12)
installer.tasks (3)
Microsoft.Analyzers.Extra (3)
Microsoft.Analyzers.Local (4)
Microsoft.Analyzers.Local.Tests (1)
Microsoft.Arcade.Common (1)
Microsoft.AspNetCore (1)
Microsoft.AspNetCore.Analyzers (1)
Microsoft.AspNetCore.App.Analyzers (3)
Microsoft.AspNetCore.Authentication (2)
Microsoft.AspNetCore.Authentication.Cookies (1)
Microsoft.AspNetCore.Authentication.OAuth (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (6)
OpenIdConnectHandler.cs (6)
121message = new OpenIdConnectMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray())));
136message = new OpenIdConnectMessage(form.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray())));
325var message = new OpenIdConnectMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray())));
464message.Parameters.Add(additionalParameter.Key, additionalParameter.Value);
648authorizationResponse = new OpenIdConnectMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray())));
675authorizationResponse = new OpenIdConnectMessage(form.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray())));
Microsoft.AspNetCore.Authentication.Twitter (5)
Microsoft.AspNetCore.Authentication.WsFederation (2)
Microsoft.AspNetCore.Authorization (5)
Microsoft.AspNetCore.Components (33)
Microsoft.AspNetCore.Components.AI.SourceGenerators (1)
Microsoft.AspNetCore.Components.Analyzers (2)
Microsoft.AspNetCore.Components.Endpoints (23)
Microsoft.AspNetCore.Components.Forms (3)
Microsoft.AspNetCore.Components.Media (1)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.AspNetCore.Components.Server (7)
Microsoft.AspNetCore.Components.Testing (5)
Microsoft.AspNetCore.Components.Web (3)
Microsoft.AspNetCore.Components.WebAssembly (2)
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
Microsoft.AspNetCore.Components.WebView (3)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.Connections.Abstractions (2)
Microsoft.AspNetCore.CookiePolicy (1)
Microsoft.AspNetCore.Cors (5)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.Diagnostics (8)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (3)
Microsoft.AspNetCore.Diagnostics.Middleware (4)
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (5)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (91)
Logging\AcceptanceTests.cs (56)
233Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value));
234Assert.Single(state, x => x.Key == HttpLoggingTagNames.Path && x.Value == TelemetryConstants.Unknown);
235Assert.Single(state, x => x.Key == HttpLoggingTagNames.StatusCode && x.Value == responseStatus);
236Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Post.ToString());
238x.Value != null &&
239int.Parse(x.Value, CultureInfo.InvariantCulture) == SlashRouteProcessingTimeMs);
243Assert.Single(state, x => x.Key == HttpLoggingTagNames.ResponseBody && x.Value == "Server: hello!Server: world!");
293Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value));
294Assert.Single(state, x => x.Key == HttpLoggingTagNames.Path && x.Value == TelemetryConstants.Unknown);
295Assert.Single(state, x => x.Key == HttpLoggingTagNames.StatusCode && x.Value == responseStatus);
296Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Post.ToString());
298x.Value != null &&
299int.Parse(x.Value, CultureInfo.InvariantCulture) == SlashRouteProcessingTimeMs);
303Assert.Single(state, x => x.Key == HttpLoggingTagNames.RequestBody && x.Value == Content);
346Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value));
347Assert.Single(state, x => x.Key == HttpLoggingTagNames.Path && x.Value == "/myroute/123");
348Assert.Single(state, x => x.Key == HttpLoggingTagNames.StatusCode && x.Value == responseStatus);
349Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Post.ToString());
351x.Value != null &&
352int.Parse(x.Value, CultureInfo.InvariantCulture) == SlashRouteProcessingTimeMs);
407Assert.Single(requestState, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value));
408Assert.Single(requestState, x => x.Key == HttpLoggingTagNames.Path && x.Value == TelemetryConstants.Unknown);
409Assert.Single(requestState, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Post.ToString());
410Assert.Single(requestState, x => x.Key == "Protocol" && x.Value == "HTTP/1.1");
413Assert.Single(requestBodyState, x => x.Key == "Body" && x.Value == Content);
417Assert.Single(responseState, x => x.Key == HttpLoggingTagNames.StatusCode && x.Value == responseStatus);
420Assert.Single(responseBodyState, x => x.Key == "Body" && x.Value == "Server: hello!Server: world!");
423Assert.Single(durationState, x => x.Key == HttpLoggingTagNames.Duration && x.Value != null);
463Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value));
464Assert.Single(state, x => x.Key == HttpLoggingTagNames.Path && x.Value == TelemetryConstants.Unknown);
465Assert.Single(state, x => x.Key == HttpLoggingTagNames.StatusCode && x.Value == responseStatus);
467x.Value != null &&
468int.Parse(x.Value, CultureInfo.InvariantCulture) == SlashRouteProcessingTimeMs);
470Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString());
507Assert.Single(state, x => x.Key == TestHttpLogEnricher.Key1 && x.Value == TestHttpLogEnricher.Value1);
508Assert.Single(state, x => x.Key == TestHttpLogEnricher.Key2 && x.Value == TestHttpLogEnricher.Value2.ToString(CultureInfo.InvariantCulture));
509Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Delete.ToString());
549Assert.Single(state, x => x.Key == HttpLoggingTagNames.Path && x.Value == RequestPath);
581Assert.DoesNotContain(firstState, x => x.Key == TestHttpLogEnricher.Key1 && x.Value == TestHttpLogEnricher.Value1);
582Assert.DoesNotContain(firstState, x => x.Key == TestHttpLogEnricher.Key2 && x.Value == TestHttpLogEnricher.Value2.ToString(CultureInfo.InvariantCulture));
585Assert.Single(secondState, x => x.Key == TestHttpLogEnricher.Key1 && x.Value == TestHttpLogEnricher.Value1);
586Assert.Single(secondState, x => x.Key == TestHttpLogEnricher.Key2 && x.Value == TestHttpLogEnricher.Value2.ToString(CultureInfo.InvariantCulture));
635Assert.Single(secondRecord!, x => x.Key == HttpLoggingTagNames.StatusCode && x.Value == responseStatus);
636Assert.Single(fithRecord!, x => x.Key == HttpLoggingTagNames.StatusCode && x.Value == responseStatus);
640Assert.Single(thirdRecord, x => x.Key == HttpLoggingTagNames.Duration && x.Value != null);
641Assert.Single(sixthRecord, x => x.Key == HttpLoggingTagNames.Duration && x.Value != null);
668Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString());
669Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value));
670Assert.Single(state, x => x.Key == HttpLoggingTagNames.Path && x.Value == TelemetryConstants.Unknown);
671Assert.Single(state, x => x.Key == HttpLoggingTagNames.StatusCode && x.Value == expectedStatus);
673x.Value != null &&
674int.Parse(x.Value, CultureInfo.InvariantCulture) == ErrorRouteProcessingTimeMs);
709Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Put.ToString());
710Assert.Single(state, x => x.Key == HttpLoggingTagNames.RequestBody && x.Value == Content);
711Assert.Single(state, x => x.Key == HttpLoggingTagNames.ResponseBody && x.Value == "test body");
743Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Put.ToString());
Logging\AcceptanceTests.Mvc.cs (32)
81Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value));
82Assert.Single(state, x => x.Key == HttpLoggingTagNames.Path && x.Value == redactedPath);
83Assert.Single(state, x => x.Key == HttpLoggingTagNames.StatusCode && x.Value == responseStatus);
84Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString());
86x.Value != null &&
87int.Parse(x.Value, CultureInfo.InvariantCulture) == ControllerProcessingTimeMs);
116Assert.Single(state, x => x.Key == UserIdParamName && x.Value == redactedUserId);
117Assert.Single(state, x => x.Key == NoDataClassParamName && x.Value == TelemetryConstants.Redacted);
119Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value));
120Assert.Single(state, x => x.Key == HttpLoggingTagNames.Path && x.Value == ActionRouteTemplate);
121Assert.Single(state, x => x.Key == HttpLoggingTagNames.StatusCode && x.Value == responseStatus);
122Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString());
124x.Value != null &&
125int.Parse(x.Value, CultureInfo.InvariantCulture) == ControllerProcessingTimeMs);
165Assert.Single(state, x => x.Key == UserIdParamName && x.Value == redactedUserId);
166Assert.Single(state, x => x.Key == NoDataClassParamName && x.Value == NoDataClassParamValue);
170Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value));
172Assert.Single(state, x => x.Key == HttpLoggingTagNames.Path && x.Value == expectedPath);
173Assert.Single(state, x => x.Key == HttpLoggingTagNames.StatusCode && x.Value == responseStatus);
174Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString());
176x.Value != null &&
177int.Parse(x.Value, CultureInfo.InvariantCulture) == ControllerProcessingTimeMs);
206Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value));
207Assert.Single(state, x => x.Key == HttpLoggingTagNames.Path && x.Value == $"/api/users/testUserId/someTestData");
208Assert.Single(state, x => x.Key == HttpLoggingTagNames.StatusCode && x.Value == responseStatus);
209Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString());
211x.Value != null &&
212int.Parse(x.Value, CultureInfo.InvariantCulture) == ControllerProcessingTimeMs);
249Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value));
250Assert.Single(state, x => x.Key == HttpLoggingTagNames.Path && x.Value == expectedPath);
251Assert.Single(state, x => x.Key == HttpLoggingTagNames.StatusCode && x.Value == responseStatus);
252Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.ToString());
Microsoft.AspNetCore.Grpc.JsonTranscoding (9)
Microsoft.AspNetCore.HeaderParsing (6)
Microsoft.AspNetCore.Hosting (5)
Microsoft.AspNetCore.Hosting.Abstractions (1)
Microsoft.AspNetCore.Http (18)
Microsoft.AspNetCore.Http.Abstractions (18)
Microsoft.AspNetCore.Http.Connections (3)
Microsoft.AspNetCore.Http.Connections.Client (5)
Microsoft.AspNetCore.Http.Extensions (4)
Microsoft.AspNetCore.Http.Features (1)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.AspNetCore.Http.Results (2)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.InternalTesting (4)
Microsoft.AspNetCore.Mvc.Abstractions (6)
Microsoft.AspNetCore.Mvc.Analyzers (2)
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
Microsoft.AspNetCore.Mvc.Core (35)
Microsoft.AspNetCore.Mvc.Formatters.Xml (3)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (7)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Mvc.RazorPages (3)
Microsoft.AspNetCore.Mvc.TagHelpers (6)
Microsoft.AspNetCore.Mvc.Testing (9)
Microsoft.AspNetCore.Mvc.ViewFeatures (21)
Microsoft.AspNetCore.OpenApi (6)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.OutputCaching (4)
Microsoft.AspNetCore.Owin (8)
Microsoft.AspNetCore.RateLimiting (1)
Microsoft.AspNetCore.Razor.Runtime (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
Microsoft.AspNetCore.ResponseCaching (4)
Microsoft.AspNetCore.Routing (87)
Microsoft.AspNetCore.Routing.Abstractions (6)
Microsoft.AspNetCore.Server.HttpSys (14)
Microsoft.AspNetCore.Server.IIS (12)
Microsoft.AspNetCore.Server.IntegrationTesting (4)
Microsoft.AspNetCore.Server.Kestrel.Core (30)
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (2)
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
84return kv.Value;
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
84return kv.Value;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
84return kv.Value;
src\aspnetcore\src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (1)
71return kv.Value;
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
84return kv.Value;
Microsoft.AspNetCore.Session (3)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Core (6)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
Microsoft.AspNetCore.SpaServices.Extensions (6)
Microsoft.AspNetCore.TestHost (10)
Microsoft.AspNetCore.WebUtilities (4)
Microsoft.Build (305)
BackEnd\Components\Scheduler\SchedulingPlan.cs (8)
117file.WriteLine(String.Format(CultureInfo.InvariantCulture, "{0} {1} {2}", configuration.Key, configuration.Value, _configCache[configuration.Key].ProjectFullPath));
237projectsInOrderOfTotalPlanTime.Sort((left, right) => Comparer<double>.Default.Compare(right.Value.TotalPlanTime, left.Value.TotalPlanTime));
240PlanConfigData config = configuration.Value;
260projectsInOrderOfImmediateChildCount.Sort((left, right) => Comparer<int>.Default.Compare(right.Value.ReferencesCount, left.Value.ReferencesCount));
263Console.WriteLine("{0}: {1} {2}", configuration.Key, configuration.Value.ReferencesCount, configuration.Value.ConfigFullPath);
Instance\ProjectInstance.cs (7)
408_globalProperties.Set(ProjectPropertyInstance.Create(property.Key, property.Value));
609_globalProperties[property.Key] = ProjectPropertyInstance.Create(property.Key, property.Value, false /* may not be reserved */, _isImmutable);
889if (itemFilter.Value == null)
902if (!itemFilter.Value.Contains(metadataName, StringComparer.OrdinalIgnoreCase))
1049=> new KeyValuePair<string, string>(directMetadatum.Key, directMetadatum.Value.EvaluatedValueEscaped));
1987_sdkResolvedEnvironmentVariableProperties.Set(ProjectPropertyInstance.Create(environmentVariable.Key, environmentVariable.Value, importElement.Location, isImmutable: true));
3331_globalProperties.Set(ProjectPropertyInstance.Create(globalProperty.Key, globalProperty.Value, false /* may not be reserved */, _isImmutable));
Microsoft.Build.Framework (65)
Microsoft.Build.Tasks.CodeAnalysis (3)
Microsoft.Build.Tasks.Core (50)
Microsoft.Build.Tasks.Git (7)
Microsoft.Build.Utilities.Core (19)
Microsoft.CodeAnalysis (145)
Microsoft.CodeAnalysis.Analyzers (45)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
44kvp.Value.Free();
Microsoft.CodeAnalysis.AnalyzerUtilities (92)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
44kvp.Value.Free();
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysis.CopyDataFlowOperationVisitor.cs (1)
528var copyValue = kvp.Value;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysis.CoreCopyAnalysisDataDomain.cs (1)
38var value1 = kvp.Value;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityDataFlowOperationVisitor.cs (1)
677var newValue = kvp.Value;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\PredicatedAnalysisData.cs (20)
168coreAnalysisData[kvp.Key] = kvp.Value;
180if (kvp.Value.TruePredicatedData != null)
182RemoveEntryInPredicatedData(key, kvp.Value.TruePredicatedData);
185if (kvp.Value.FalsePredicatedData != null)
187RemoveEntryInPredicatedData(key, kvp.Value.FalsePredicatedData);
210clonedMap.Add(kvp.Key, new PerEntityPredicatedAnalysisData(kvp.Value));
250var resultTruePredicatedData = MergeForPredicatedDataInOneBranch(kvp.Value.TruePredicatedData, coreAnalysisDataForOtherBranch, coreDataAnalysisDomain);
251var resultFalsePredicatedData = MergeForPredicatedDataInOneBranch(kvp.Value.FalsePredicatedData, coreAnalysisDataForOtherBranch, coreDataAnalysisDomain);
289resultTruePredicatedData = MergeForPredicatedDataInOneBranch(kvp.Value.TruePredicatedData, coreAnalysisData2, coreDataAnalysisDomain);
290resultFalsePredicatedData = MergeForPredicatedDataInOneBranch(kvp.Value.FalsePredicatedData, coreAnalysisData2, coreDataAnalysisDomain);
295resultTruePredicatedData = Merge(kvp.Value.TruePredicatedData, value2.TruePredicatedData,
297resultFalsePredicatedData = Merge(kvp.Value.FalsePredicatedData, value2.FalsePredicatedData,
311var resultTruePredicatedData = MergeForPredicatedDataInOneBranch(kvp.Value.TruePredicatedData, coreAnalysisData1, coreDataAnalysisDomain);
312var resultFalsePredicatedData = MergeForPredicatedDataInOneBranch(kvp.Value.FalsePredicatedData, coreAnalysisData1, coreDataAnalysisDomain);
398!EqualsHelper(kvp.Value.TruePredicatedData, otherValue.TruePredicatedData) ||
399!EqualsHelper(kvp.Value.FalsePredicatedData, otherValue.FalsePredicatedData))
451if (kvp.Value.TruePredicatedData != null)
453assertValidAnalysisData(kvp.Value.TruePredicatedData);
456if (kvp.Value.FalsePredicatedData != null)
458assertValidAnalysisData(kvp.Value.FalsePredicatedData);
Microsoft.CodeAnalysis.CodeStyle (32)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
44kvp.Value.Free();
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp (87)
Binder\LocalScopeBinder.cs (5)
472result.AddSymbol(label.Value, label.Key, 0);
482if (originalBinder.CanAddLookupSymbolInfo(local.Value, options, result, null))
484result.AddSymbol(local.Value, local.Key, 0);
492if (originalBinder.CanAddLookupSymbolInfo(local.Value, options, result, null))
494result.AddSymbol(local.Value, local.Key, 0);
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp.Features (8)
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Microsoft.CodeAnalysis.Extensions.Package (22)
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler (1)
Microsoft.CodeAnalysis.Features (56)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
282return first.Value;
Microsoft.CodeAnalysis.Features.ExternalAccess (2)
Microsoft.CodeAnalysis.NetAnalyzers (132)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\KeyValuePairExtensions.cs (1)
13value = pair.Value;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
79var severity = kvp.Value;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResultBuilder.cs (1)
65var blockAnalysisData = kvp.Value;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\PredicatedAnalysisData.cs (20)
166coreAnalysisData[kvp.Key] = kvp.Value;
178if (kvp.Value.TruePredicatedData != null)
180RemoveEntryInPredicatedData(key, kvp.Value.TruePredicatedData);
183if (kvp.Value.FalsePredicatedData != null)
185RemoveEntryInPredicatedData(key, kvp.Value.FalsePredicatedData);
208clonedMap.Add(kvp.Key, new PerEntityPredicatedAnalysisData(kvp.Value));
248var resultTruePredicatedData = MergeForPredicatedDataInOneBranch(kvp.Value.TruePredicatedData, coreAnalysisDataForOtherBranch, coreDataAnalysisDomain);
249var resultFalsePredicatedData = MergeForPredicatedDataInOneBranch(kvp.Value.FalsePredicatedData, coreAnalysisDataForOtherBranch, coreDataAnalysisDomain);
287resultTruePredicatedData = MergeForPredicatedDataInOneBranch(kvp.Value.TruePredicatedData, coreAnalysisData2, coreDataAnalysisDomain);
288resultFalsePredicatedData = MergeForPredicatedDataInOneBranch(kvp.Value.FalsePredicatedData, coreAnalysisData2, coreDataAnalysisDomain);
293resultTruePredicatedData = Merge(kvp.Value.TruePredicatedData, value2.TruePredicatedData,
295resultFalsePredicatedData = Merge(kvp.Value.FalsePredicatedData, value2.FalsePredicatedData,
309var resultTruePredicatedData = MergeForPredicatedDataInOneBranch(kvp.Value.TruePredicatedData, coreAnalysisData1, coreDataAnalysisDomain);
310var resultFalsePredicatedData = MergeForPredicatedDataInOneBranch(kvp.Value.FalsePredicatedData, coreAnalysisData1, coreDataAnalysisDomain);
396!EqualsHelper(kvp.Value.TruePredicatedData, otherValue.TruePredicatedData) ||
397!EqualsHelper(kvp.Value.FalsePredicatedData, otherValue.FalsePredicatedData))
449if (kvp.Value.TruePredicatedData != null)
451assertValidAnalysisData(kvp.Value.TruePredicatedData);
454if (kvp.Value.FalsePredicatedData != null)
456assertValidAnalysisData(kvp.Value.FalsePredicatedData);
Microsoft.CodeAnalysis.Razor.Compiler (9)
Mvc.Version1_X\ViewComponentTagHelperDescriptorFactory.cs (1)
246.Value
Mvc.Version2_X\ViewComponentTagHelperDescriptorFactory.cs (1)
261.Value
Mvc\ViewComponentTagHelperDescriptorFactory.cs (1)
264.Value
Microsoft.CodeAnalysis.ResxSourceGenerator (35)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
44kvp.Value.Free();
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.VisualBasic (27)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces (80)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
44kvp.Value.Free();
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.CSharp (1)
Microsoft.Data.Analysis (8)
Microsoft.Data.Analysis.Interactive (1)
Microsoft.Diagnostics.DataContractReader (9)
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Microsoft.Diagnostics.DataContractReader.DataGenerator (5)
Microsoft.Diagnostics.NETCore.Client (4)
Microsoft.DotNet.ApiCompatibility (5)
Microsoft.DotNet.ApiSymbolExtensions (1)
Microsoft.DotNet.Arcade.Sdk (3)
Microsoft.DotNet.Build.Manifest (8)
Microsoft.DotNet.Build.Tasks.Installers (2)
Microsoft.DotNet.Build.Tasks.Packaging (38)
Microsoft.DotNet.Cli.Definitions (1)
Microsoft.DotNet.Cli.Telemetry (14)
Microsoft.DotNet.Cli.Utils (9)
Microsoft.DotNet.HotReload.Watch (14)
Microsoft.DotNet.PackageTesting (1)
Microsoft.DotNet.ProjectTools (2)
Microsoft.DotNet.SharedFramework.Sdk (3)
Microsoft.DotNet.TemplateLocator (23)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (9)
408var manifestSpecifier = new ManifestSpecifier(kvp.Key, kvp.Value.Version, kvp.Value.FeatureBand);
418AddManifest(manifestSpecifier.Id.ToString(), manifestDirectory, manifestSpecifier.FeatureBand.ToString(), kvp.Value.Version.ToString());
429var manifestSpecifier = new ManifestSpecifier(kvp.Key, kvp.Value.Version, kvp.Value.FeatureBand);
439AddManifest(manifestSpecifier.Id.ToString(), manifestDirectory, manifestSpecifier.FeatureBand.ToString(), kvp.Value.Version.ToString());
470.Select(kvp => kvp.Value)
575var manifestSpecifier = new ManifestSpecifier(manifestEntry.Key, manifestEntry.Value.Version, manifestEntry.Value.FeatureBand);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (7)
151if (FXVersion.Compare(dependency.Value, resolvedDependency.ParsedVersion) > 0)
153throw new WorkloadManifestCompositionException(Strings.ManifestDependencyVersionTooLow, dependency.Key, resolvedDependency.Version, dependency.Value, manifest.Id, manifest.ManifestPath);
165if (workload.Value is WorkloadRedirect redirect)
171if (!_workloads.TryAdd(workload.Key, ((WorkloadDefinition)workload.Value, manifest)))
181if (!_packs.TryAdd(pack.Key, (pack.Value, manifest)))
642overlayResolver._manifests.TryAdd(manifest.Key, manifest.Value);
766return _manifests.Select(t => t.Value.info);
Microsoft.DotNet.XliffTasks (1)
Microsoft.Extensions.AI (14)
Microsoft.Extensions.AI.Abstractions (14)
Microsoft.Extensions.AI.Abstractions.Tests (22)
Microsoft.Extensions.AI.Evaluation (1)
Microsoft.Extensions.AI.Evaluation.Console (1)
Microsoft.Extensions.AI.Evaluation.NLP (5)
Microsoft.Extensions.AI.Evaluation.Reporting (4)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (4)
Microsoft.Extensions.AI.Integration.Tests (4)
Microsoft.Extensions.AI.OpenAI (6)
Microsoft.Extensions.AI.OpenAI.Tests (1)
Microsoft.Extensions.AI.Stabilization.Tests (1)
Microsoft.Extensions.AI.Tests (17)
Microsoft.Extensions.Caching.Hybrid.Tests (8)
Microsoft.Extensions.Caching.Memory (2)
Microsoft.Extensions.Compliance.Redaction (1)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.CommandLine (1)
Microsoft.Extensions.DataIngestion (2)
Microsoft.Extensions.DataIngestion.Tests (1)
Microsoft.Extensions.DependencyInjection (4)
Microsoft.Extensions.Diagnostics (7)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (7)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (33)
Windows\Disk\WindowsDiskMetrics.cs (5)
141measurements.Add(new Measurement<long>(pair.Value, new TagList { _directionWriteTag, new(DeviceKey, pair.Key) }));
150measurements.Add(new Measurement<long>(pair.Value, new TagList { _directionReadTag, new(DeviceKey, pair.Key) }));
166measurements.Add(new Measurement<long>(pair.Value, new TagList { _directionWriteTag, new(DeviceKey, pair.Key) }));
175measurements.Add(new Measurement<long>(pair.Value, new TagList { _directionReadTag, new(DeviceKey, pair.Key) }));
190measurements.Add(new Measurement<double>(pair.Value, new TagList { new(DeviceKey, pair.Key) }));
Microsoft.Extensions.Diagnostics.Testing (8)
Microsoft.Extensions.Diagnostics.Testing.Tests (4)
Microsoft.Extensions.Features (1)
Microsoft.Extensions.FileProviders.Physical (1)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Hosting.Testing (1)
Microsoft.Extensions.Hosting.Testing.Tests (12)
HostingFakesExtensionsTests.cs (10)
147Assert.Equal("testValue", item.Value);
173Assert.Equal("testValue1", item.Value);
178Assert.Equal("testValue2", item.Value);
202Assert.Equal("testValue", item.Value);
207Assert.Equal("anotherTestValue", item.Value);
233Assert.Equal("testValue", item.Value);
259Assert.Equal("testValue1", item.Value);
264Assert.Equal("testValue2", item.Value);
288Assert.Equal("testValue", item.Value);
293Assert.Equal("anotherTestValue", item.Value);
Microsoft.Extensions.Http (2)
Microsoft.Extensions.Http.Diagnostics (23)
Microsoft.Extensions.Http.Diagnostics.Tests (37)
Logging\HttpRequestReaderTest.cs (16)
90httpRequestMessage.Headers.Add(header1.Key, header1.Value);
91httpRequestMessage.Headers.Add(header3.Key, header3.Value);
99httpResponseMessage.Headers.Add(header2.Key, header2.Value);
100httpResponseMessage.Headers.Add(header3.Key, header3.Value);
220httpRequestMessage.Headers.Add(header1.Key, header1.Value);
232httpResponseMessage.Headers.Add(header2.Key, header2.Value);
296httpRequestMessage.Headers.Add(header1.Key, header1.Value);
308httpResponseMessage.Headers.Add(header2.Key, header2.Value);
369httpRequestMessage.Headers.Add(header1.Key, header1.Value);
429httpRequestMessage.Headers.Add(header1.Key, header1.Value);
441httpResponseMessage.Headers.Add(header2.Key, header2.Value);
502httpRequestMessage.Headers.Add(header1.Key, header1.Value);
510httpResponseMessage.Headers.Add(header2.Key, header2.Value);
571httpRequestMessage.Headers.Add(header1.Key, header1.Value);
580httpResponseMessage.Headers.Add(header2.Key, header2.Value);
820tag => tag.Key == "url.query" && (tag.Value!).Contains("userId=REDACTED"));
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.Http.Resilience.Tests (4)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Extensions.Logging (7)
Microsoft.Extensions.Logging.Configuration (1)
Microsoft.Extensions.Logging.Console (5)
Microsoft.Extensions.Logging.EventLog (1)
Microsoft.Extensions.Logging.EventSource (2)
Microsoft.Extensions.Logging.Generators (4)
Microsoft.Extensions.Logging.MSBuild (21)
Microsoft.Extensions.Options.SourceGeneration (14)
Microsoft.Extensions.Resilience.Tests (1)
Microsoft.Extensions.ServiceDiscovery (5)
Microsoft.Extensions.ServiceDiscovery.Abstractions (3)
Microsoft.Extensions.Telemetry (16)
Microsoft.Extensions.Telemetry.Abstractions (3)
Microsoft.Extensions.Telemetry.Abstractions.Tests (15)
Logging\LoggerMessageStateTests.cs (15)
27Assert.Equal(Value, lms.TagArray[0].Value);
39Assert.Equal(Value, lms.TagArray[0].Value);
46Assert.Equal(Value, lms.TagArray[0].Value);
60Assert.Equal(Value, lms.TagArray[0].Value);
62Assert.Equal(Value, lms.TagArray[1].Value);
80Assert.Equal("V1", lms.TagArray[0].Value);
98Assert.Equal(Value, lms.TagArray[0].Value);
103Assert.Equal(Value, lms.TagArray[0].Value);
116Assert.Equal(Value, lms.TagArray[0].Value);
121Assert.Equal(Value, lms.TagArray[0].Value);
143Assert.Equal(Value, list[0].Value);
153Assert.Equal(Value, list[0].Value);
159Assert.Equal(Value, list[0].Value);
169Assert.Equal(current.Value, list[count].Value);
Microsoft.Extensions.Telemetry.PerformanceTests (11)
Microsoft.Extensions.Telemetry.Tests (8)
Microsoft.Extensions.Validation (1)
Microsoft.Extensions.Validation.ValidationsGenerator (6)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.ContextualOptions (1)
Microsoft.Gen.ContextualOptions.Unit.Tests (5)
Microsoft.Gen.Logging (3)
Microsoft.Gen.Logging.Generated.Tests (292)
SensitiveRecordTests.cs (5)
22Assert.All(logRecord.StructuredState, x => Assert.DoesNotContain(SensitiveRecordExtensions.Sensitive, x.Value));
34Assert.All(logRecord.StructuredState, x => Assert.DoesNotContain(SensitiveRecordExtensions.Sensitive, x.Value));
51Assert.All(logRecord.StructuredState, x => Assert.DoesNotContain(SensitiveRecordExtensions.Sensitive, x.Value));
68Assert.All(logRecord.StructuredState, x => Assert.DoesNotContain(SensitiveRecordExtensions.Sensitive, x.Value));
85Assert.All(logRecord.StructuredState, x => Assert.DoesNotContain(SensitiveRecordExtensions.Sensitive, x.Value));
Microsoft.Gen.MetadataExtractor (7)
Microsoft.Gen.Metrics (8)
Microsoft.Gen.Metrics.Generated.Tests (33)
MetricTests.cs (22)
71Assert.Equal(new (string, object?)[] { ("s1", "val1"), ("s2", "val2") }, measurement.Tags.Select(x => (x.Key, x.Value)));
154Assert.Equal(new (string, object?)[] { ("s1", "val_1"), ("s2", "val_2") }, measurement.Tags.Select(x => (x.Key, x.Value)));
174var tags = measurements[0].Tags.Select(x => (x.Key, x.Value));
177tags = measurements[1].Tags.Select(x => (x.Key, x.Value));
198var tags = measurements[0].Tags.Select(x => (x.Key, x.Value));
201tags = measurements[1].Tags.Select(x => (x.Key, x.Value));
253Assert.Equal(new (string, object?)[] { ("s1", "val1"), ("s2", "val2") }, measurement.Tags.Select(x => (x.Key, x.Value)));
259Assert.Equal(new (string, object?)[] { ("s1", "val1"), ("s2", "val2") }, measurement.Tags.Select(x => (x.Key, x.Value)));
266Assert.Equal(new (string, object?)[] { ("s1", "val1"), ("s2", "val4") }, measurement.Tags.Select(x => (x.Key, x.Value)));
278Assert.Equal(new (string, object?)[] { ("s1", "val1"), ("s2", "val2") }, measurement.Tags.Select(x => (x.Key, x.Value)));
284Assert.Equal(new (string, object?)[] { ("s1", "val1"), ("s2", "val2") }, measurement.Tags.Select(x => (x.Key, x.Value)));
291Assert.Equal(new (string, object?)[] { ("s1", "val1"), ("s2", "val4") }, measurement.Tags.Select(x => (x.Key, x.Value)));
329Assert.Equal(new (string, object?)[] { ("Dim1", "val1"), ("Dim_2", "val2"), ("Dim_3", "val3") }, measurement.Tags.Select(x => (x.Key, x.Value)));
342Assert.Equal(new (string, object?)[] { ("Dim1", "val1"), ("Dim_2", "val2"), ("Dim_3", "val3") }, measurement.Tags.Select(x => (x.Key, x.Value)));
372measurement.Tags.Select(x => (x.Key, x.Value)));
421measurement.Tags.Select(x => (x.Key, x.Value)));
444measurement.Tags.Select(x => (x.Key, x.Value)));
467measurement.Tags.Select(x => (x.Key, x.Value)));
515measurement.Tags.Select(x => (x.Key, x.Value)));
564measurement.Tags.Select(x => (x.Key, x.Value)));
587measurement.Tags.Select(x => (x.Key, x.Value)));
609measurement.Tags.Select(x => (x.Key, x.Value)));
MetricTests.Ext.cs (8)
55Assert.Equal(new (string, object?)[] { ("s1", "val1"), ("s2", "val2") }, measurement.Tags.Select(x => (x.Key, x.Value)));
135Assert.Equal(new (string, object?)[] { ("s1", "val_1"), ("s2", "val_2") }, measurement.Tags.Select(x => (x.Key, x.Value)));
184measurement.Tags.Select(x => (x.Key, x.Value)));
206measurement.Tags.Select(x => (x.Key, x.Value)));
228measurement.Tags.Select(x => (x.Key, x.Value)));
277measurement.Tags.Select(x => (x.Key, x.Value)));
299measurement.Tags.Select(x => (x.Key, x.Value)));
321measurement.Tags.Select(x => (x.Key, x.Value)));
Microsoft.Gen.MetricsReports (6)
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.LibraryImportGenerator (3)
Microsoft.Interop.SourceGeneration (11)
Microsoft.Maui (7)
Microsoft.Maui.Controls (49)
Microsoft.Maui.Controls.Build.Tasks (9)
Microsoft.Maui.Controls.SourceGen (2)
Microsoft.Maui.Controls.Xaml (6)
Microsoft.Maui.Essentials (2)
Microsoft.Maui.Graphics (2)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
Microsoft.Maui.Resizetizer (2)
Microsoft.ML.AutoML (27)
Microsoft.ML.AutoML.Tests (7)
Microsoft.ML.CodeGenerator (15)
Microsoft.ML.Core (31)
Microsoft.ML.Core.Tests (17)
UnitTests\TestVBuffer.cs (15)
96float sum = a.Items().Sum(iv => iv.Value);
97float l1 = a.Items().Sum(iv => Math.Abs(iv.Value));
98float l2Squared = a.Items().Sum(iv => iv.Value * iv.Value);
101float infNorm = a.GetValues().Length == 0 ? 0 : a.Items().Max(iv => Math.Abs(iv.Value));
475values[indices.Count] = func(iv.Key, iv.Value);
743Assert.Equal(value, iv.Value);
771Assert.Equal(value, iv.Value);
805Assert.Equal(value, iv.Value);
830var l1Dist = a.Items(all: true).Zip(b.Items(all: true), (av, bv) => Math.Abs(av.Value - bv.Value)).Sum();
831var l2Dist2 = a.Items(all: true).Zip(b.Items(all: true), (av, bv) => MathUtils.Pow(av.Value - bv.Value, 2)).Sum();
833var dot = a.Items(all: true).Zip(b.Items(all: true), (av, bv) => av.Value * bv.Value).Sum();
Microsoft.ML.CpuMath.UnitTests (1)
Microsoft.ML.Data (138)
EntryPoints\EntryPointNode.cs (22)
359_vars.Add(kvp.Key, kvp.Value);
609inputParamBindingMap.Add(paramBinding, new SimpleVariableBinding(kvp.Value));
625if (VariableBinding.IsBindingToken(pair.Value))
633var varBinding = VariableBinding.Create(_host, pair.Value.Value<string>());
641else if (pair.Value is JArray &&
642((JArray)pair.Value).Any(tok => VariableBinding.IsBindingToken(tok)))
646if (!((JArray)pair.Value).All(tok => VariableBinding.IsBindingToken(tok)))
655foreach (var varName in (JArray)pair.Value)
672if (!_inputBuilder.TrySetValueJson(pair.Key, pair.Value))
684if (!VariableBinding.IsBindingToken(pair.Value))
688var varBinding = VariableBinding.Create(_host, pair.Value.Value<string>());
708if (kvp.Value.VariableName == oldName)
720if (kvp.Value == oldName)
740if (!mapping.TryGetValue(kvp.Value.VariableName, out newName))
743mapping.Add(kvp.Value.VariableName, newName);
745kvp.Value.Rename(newName);
751if (!mapping.TryGetValue(kvp.Value, out newName))
754mapping.Add(kvp.Value, newName);
759_outputMap[kvp.Key] = kvp.Value;
789return _inputMap.Where(kv => !_inputBuilder.IsInputOptional(kv.Key.ParameterName)).Select(kv => kv.Value).Distinct()
802bool success = _inputBuilder.TrySetValue(pair.Key, BuildParameterValue(pair.Value));
827v.SetValue(pair.Value);
EntryPoints\InputBuilder.cs (5)
505if (!inputBuilder.TrySetValueJson(pair.Key, pair.Value))
506throw ectx.Except($"Unexpected value for component '{type}', field '{pair.Key}': '{pair.Value}'");
566if (!inputBuilder.TrySetValueJson(pair.Key, pair.Value))
567throw ectx.Except($"Unexpected value for component '{name}', field '{pair.Key}': '{pair.Value}'");
595dict[pair.Key] = (T)GetFieldAssignableValue(ectx, typeof(T), ParseJsonValue(ectx, typeof(T), attributes, pair.Value, catalog));
Microsoft.ML.Ensemble (6)
Microsoft.ML.EntryPoints (16)
Microsoft.ML.Fairlearn (1)
Microsoft.ML.FastTree (30)
FastTree.cs (18)
1683if (float.IsNaN(kv.Value))
1875_instanceList[kvp.Key].Add(index, kvp.Value);
1996ch.Assert(kvp.Value > 0);
2007values.Add(kvp.Value + hotFeatureStarts[i]);
2441return _sparse.Count(kvp => kvp.Value > gtValue) + (0 > gtValue ? length - _sparse.Count : 0);
2474if (kvp.Value > gtValue)
2486if (kvp.Value > gtValue)
2538editor.Values[i] = _sparse[i].Value;
2577int binned = Algorithms.FindFirstGE(binUpperBounds, kvp.Value);
2591int binned = Algorithms.FindFirstGE(binUpperBounds, kvp.Value);
2677return s.Value;
3141Host.Assert(pair.Value is double);
3142writer.WriteLine("\t{0}\t{1}", pair.Key, (double)pair.Value);
3152var ordered = gainMap.OrderByDescending(pair => pair.Value);
3153double max = ordered.FirstOrDefault().Value;
3160yield return new KeyValuePair<string, double>(name, Math.Sqrt(pair.Value) * normFactor);
3171results.Add(new KeyValuePair<string, object>(pair.Key, pair.Value));
3251bldr.AddFeature(pair.Key, (float)(Math.Sqrt(pair.Value) * normFactor));
Microsoft.ML.GenAI.Core (5)
Microsoft.ML.GenAI.Phi.Tests (1)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.KMeansClustering (2)
Microsoft.ML.LightGbm (2)
Microsoft.ML.OnnxConverter (1)
Microsoft.ML.OnnxTransformer (5)
Microsoft.ML.OnnxTransformerTest (2)
Microsoft.ML.PCA (1)
Microsoft.ML.Predictor.Tests (4)
Microsoft.ML.ResultProcessor (14)
Microsoft.ML.Samples (1)
Microsoft.ML.SearchSpace (12)
Microsoft.ML.StandardTrainers (19)
Microsoft.ML.Sweeper (21)
Algorithms\NelderMead.cs (19)
157var nextPoint = GetNewPoint(_centroid, _worst.Value, _args.DeltaReflection);
161nextPoint = GetNewPoint(_centroid, _worst.Value, _args.DeltaInsideContraction);
186UpdateSimplex(_lastReflectionResult.Key, _lastReflectionResult.Value);
193nextPoint = GetNewPoint(_centroid, _worst.Value, _args.DeltaExpansion);
197nextPoint = GetNewPoint(_centroid, _worst.Value, _args.DeltaInsideContraction);
206nextPoint = GetNewPoint(_centroid, _worst.Value, _args.DeltaOutsideContraction);
212nextPoint = GetNewPoint(_centroid, _worst.Value, _args.DeltaInsideContraction);
236UpdateSimplex(expansionResult, _pendingSweeps[0].Value);
240UpdateSimplex(_lastReflectionResult.Key, _lastReflectionResult.Value);
249UpdateSimplex(outerContractionResult, _pendingSweeps[0].Value);
268UpdateSimplex(innerContractionResult, _pendingSweeps[0].Value);
324var x = simplexVertices[i].Value;
327var y = simplexVertices[j].Value;
353newSimplexVertices.Add(result.Key, result.Value);
354newSimplexVertices.Add(_best.Key, _best.Value);
370result.Add(new KeyValuePair<IRunResult, float[]>(run, sweep.Value));
386VectorUtils.AddMult(_simplexVertices.ElementAt(i).Value, centroid, scale);
405var newPoint = GetNewPoint(_secondWorst.Value, sortedVertices[i].Value, -_args.GammaShrink);
Microsoft.ML.Sweeper.Tests (1)
Microsoft.ML.TestFramework (1)
Microsoft.ML.Tests (56)
Transformers\CategoricalHashTests.cs (12)
146Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[2] { "0:A", "1:B" });
152Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[1] { "C" });
159Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[6] { "1:2", "0:5", "1:4", "1:6", "0:3", "0:1" });
165Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[2] { "-1", "1" });
172System.Diagnostics.Trace.WriteLine(slots.Items().Select(x => x.Value.ToString()).Distinct());
173var temp = slots.Items().Select(x => x.Value.ToString()).Distinct();
174Assert.Equal(slots.Items().Select(x => x.Value.ToString()).Distinct(), new string[14] { "[0].", "[0].0:A", "[0].0:E", "[0].0:D", "[0].1:A", "[0].1:E", "[0].1:D", "[1].", "[1].0:A", "[1].0:E", "[1].0:D", "[1].1:A", "[1].1:E", "[1].1:D" });
177Assert.Equal(slotRanges.Items().Select(x => x.Value.ToString()), new string[4] { "0", "65535", "65536", "131071" });
184Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[2] { "E", "D" });
187Assert.Equal(slotRanges.Items().Select(x => x.Value.ToString()), new string[2] { "0", "65535" });
194Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[2] { "0:A", "1:B" });
200Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[1] { "C" });
Transformers\CategoricalTests.cs (14)
224Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[2] { "A", "B" });
230Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[1] { "C" });
237Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[2] { "3", "5" });
243Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[2] { "6", "1" });
250Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[12] { "[0].1", "[0].2", "[0].3", "[0].4", "[0].5", "[0].6", "[1].1", "[1].2", "[1].3", "[1].4", "[1].5", "[1].6" });
253Assert.Equal(slotRanges.Items().Select(x => x.Value.ToString()), new string[4] { "0", "5", "6", "11" });
260Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[2] { "1", "-1" });
263Assert.Equal(slotRanges.Items().Select(x => x.Value.ToString()), new string[2] { "0", "1" });
270Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[3] { "A", "D", "E" });
276Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[2] { "D", "E" });
282Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[6] { "[0].Bit2", "[0].Bit1", "[0].Bit0", "[1].Bit2", "[1].Bit1", "[1].Bit0" });
288Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[2] { "Bit1", "Bit0" });
295Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[6] { "[0].Bit2", "[0].Bit1", "[0].Bit0", "[1].Bit2", "[1].Bit1", "[1].Bit0" });
301Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[3] { "Bit2", "Bit1", "Bit0" });
Transformers\KeyToVectorEstimatorTests.cs (10)
139Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[2] { "A", "B" });
145Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[1] { "C" });
148Assert.Equal(slotRanges.Items().Select(x => x.Value), new int[2] { 0, 0 });
155Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[4] { "[0].3", "[0].5", "[1].3", "[1].5" });
158Assert.Equal(slotRanges.Items().Select(x => x.Value), new int[4] { 0, 1, 2, 3 });
165Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[2] { "6", "1" });
172Assert.Equal(slotRanges.Items().Select(x => x.Value), new int[4] { 0, 5, 6, 11 });
183Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[3] { "A", "D", "E" });
189Assert.Equal(slots.Items().Select(x => x.Value.ToString()), new string[2] { "D", "E" });
192Assert.Equal(slotRanges.Items().Select(x => x.Value), new int[2] { 0, 1 });
Microsoft.ML.TimeSeries (12)
Microsoft.ML.TimeSeries.Tests (5)
Microsoft.ML.Tokenizers (34)
Microsoft.ML.Tokenizers.Tests (11)
Microsoft.ML.TorchSharp (5)
Microsoft.ML.Transforms (29)
Microsoft.NET.Build.Containers (5)
Microsoft.NET.Build.Extensions.Tasks (3)
Microsoft.NET.Build.Tasks (49)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (9)
408var manifestSpecifier = new ManifestSpecifier(kvp.Key, kvp.Value.Version, kvp.Value.FeatureBand);
418AddManifest(manifestSpecifier.Id.ToString(), manifestDirectory, manifestSpecifier.FeatureBand.ToString(), kvp.Value.Version.ToString());
429var manifestSpecifier = new ManifestSpecifier(kvp.Key, kvp.Value.Version, kvp.Value.FeatureBand);
439AddManifest(manifestSpecifier.Id.ToString(), manifestDirectory, manifestSpecifier.FeatureBand.ToString(), kvp.Value.Version.ToString());
470.Select(kvp => kvp.Value)
575var manifestSpecifier = new ManifestSpecifier(manifestEntry.Key, manifestEntry.Value.Version, manifestEntry.Value.FeatureBand);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (7)
151if (FXVersion.Compare(dependency.Value, resolvedDependency.ParsedVersion) > 0)
153throw new WorkloadManifestCompositionException(Strings.ManifestDependencyVersionTooLow, dependency.Key, resolvedDependency.Version, dependency.Value, manifest.Id, manifest.ManifestPath);
165if (workload.Value is WorkloadRedirect redirect)
171if (!_workloads.TryAdd(workload.Key, ((WorkloadDefinition)workload.Value, manifest)))
181if (!_packs.TryAdd(pack.Key, (pack.Value, manifest)))
642overlayResolver._manifests.TryAdd(manifest.Key, manifest.Value);
766return _manifests.Select(t => t.Value.info);
Microsoft.NET.HostModel (18)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (11)
138return _resTypeHeadID.SelectMany(typeIdPair => SelectResType(typeIdPair.Key, typeIdPair.Value))
139.Concat(_resTypeHeadName.SelectMany(typeNamePair => SelectResType(typeNamePair.Key, typeNamePair.Value)));
143return resType.NameHeadID.SelectMany(nameIdPair => SelectResName(type, nameIdPair.Key, nameIdPair.Value))
145SelectResName(type, nameNamePair.Key, nameNamePair.Value)));
150return resType.Languages.Select((lang) => (name, type, lang.Key, lang.Value.DataEntry));
206resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable)));
210resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
220resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable)));
224resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
234resLanguages.Add(new Tuple<ResLanguage, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
242foreach (ObjectDataBuilder.Reservation reservation in name.Value)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (4)
Microsoft.NET.Sdk.Publish.Tasks (4)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (29)
Microsoft.NET.Sdk.WorkloadManifestReader (23)
SdkDirectoryWorkloadManifestProvider.cs (9)
408var manifestSpecifier = new ManifestSpecifier(kvp.Key, kvp.Value.Version, kvp.Value.FeatureBand);
418AddManifest(manifestSpecifier.Id.ToString(), manifestDirectory, manifestSpecifier.FeatureBand.ToString(), kvp.Value.Version.ToString());
429var manifestSpecifier = new ManifestSpecifier(kvp.Key, kvp.Value.Version, kvp.Value.FeatureBand);
439AddManifest(manifestSpecifier.Id.ToString(), manifestDirectory, manifestSpecifier.FeatureBand.ToString(), kvp.Value.Version.ToString());
470.Select(kvp => kvp.Value)
575var manifestSpecifier = new ManifestSpecifier(manifestEntry.Key, manifestEntry.Value.Version, manifestEntry.Value.FeatureBand);
WorkloadResolver.cs (7)
151if (FXVersion.Compare(dependency.Value, resolvedDependency.ParsedVersion) > 0)
153throw new WorkloadManifestCompositionException(Strings.ManifestDependencyVersionTooLow, dependency.Key, resolvedDependency.Version, dependency.Value, manifest.Id, manifest.ManifestPath);
165if (workload.Value is WorkloadRedirect redirect)
171if (!_workloads.TryAdd(workload.Key, ((WorkloadDefinition)workload.Value, manifest)))
181if (!_packs.TryAdd(pack.Key, (pack.Value, manifest)))
642overlayResolver._manifests.TryAdd(manifest.Key, manifest.Value);
766return _manifests.Select(t => t.Value.info);
Microsoft.NET.StringTools (6)
Microsoft.TemplateEngine.Abstractions (1)
Microsoft.TemplateEngine.Cli (42)
Microsoft.TemplateEngine.Core (6)
Microsoft.TemplateEngine.Edge (56)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (43)
Microsoft.TemplateEngine.Utils (35)
Microsoft.TemplateSearch.Common (43)
Microsoft.TestPlatform.CommunicationUtilities (19)
Microsoft.TestPlatform.CrossPlatEngine (22)
Microsoft.TestPlatform.Filter.Source (1)
Microsoft.TestPlatform.PlatformAbstractions (3)
Microsoft.TestPlatform.TestHostRuntimeProvider (3)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
Microsoft.VisualStudio.TestPlatform.Client (4)
Microsoft.VisualStudio.TestPlatform.Common (29)
Microsoft.VisualStudio.TestPlatform.ObjectModel (30)
Mono.Cecil (8)
MSBuild (33)
NuGet.Build.Tasks (5)
NuGet.Build.Tasks.Console (4)
NuGet.Build.Tasks.Pack (6)
NuGet.CommandLine.XPlat (7)
NuGet.Commands (72)
NuGet.Common (1)
NuGet.Configuration (44)
NuGet.Credentials (3)
NuGet.DependencyResolver.Core (2)
NuGet.Frameworks (24)
NuGet.LibraryModel (1)
NuGet.PackageManagement (6)
NuGet.Packaging (37)
NuGet.ProjectModel (11)
NuGet.Protocol (21)
NuGet.Resolver (2)
NuGet.Versioning (1)
PresentationBuildTasks (1)
PresentationCore (21)
PresentationFramework (50)
ReachFramework (3)
RepoTasks (1)
Roslyn.Diagnostics.Analyzers (37)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
44kvp.Value.Free();
Roslyn.Diagnostics.CSharp.Analyzers (6)
rzc (1)
ScenarioTests.Common.Tests (1)
sdk-tasks (10)
SelectTests (8)
Shared (1)
Shared.Tests (6)
Stress.TelemetryService (1)
System.Collections (39)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\DebugViewDictionaryItem.cs (1)
23Value = keyValue.Value;
System\Collections\Generic\OrderedDictionary.cs (19)
297SetAt(index, tpair.Key, tpair.Value);
347set => SetAt(index, value.Key, value.Value);
515Add(pair.Key, pair.Value);
522Add(pair.Key, pair.Value);
1178if (EqualityComparer<TValue>.Default.Equals(item.Value, _entries[index].Value))
1188void IList<KeyValuePair<TKey, TValue>>.Insert(int index, KeyValuePair<TKey, TValue> item) => Insert(index, item.Key, item.Value);
1191void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) => Add(item.Key, item.Value);
1200EqualityComparer<TValue>.Default.Equals(value, item.Value);
1223if (TryGetValue(item.Key, out TValue? value, out int index) && EqualityComparer<TValue>.Default.Equals(value, item.Value))
1334Add(pair.Key, pair.Value);
1342EqualityComparer<TValue>.Default.Equals(v, pair.Value);
1363Insert(index, pair.Key, pair.Value);
1414new DictionaryEntry(Current.Key, Current.Value) :
1418readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
1424readonly object? IDictionaryEnumerator.Value => Current.Value;
1718get => _dictionary.GetAt(index).Value;
1723TValue IReadOnlyList<TValue>.this[int index] => _dictionary.GetAt(index).Value;
1728get => _dictionary.GetAt(index).Value;
1888public TValue Current => _enumerator.Current.Value;
System.Collections.Concurrent (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\DebugViewDictionaryItem.cs (1)
23Value = keyValue.Value;
System.Collections.Immutable (49)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\DebugViewDictionaryItem.cs (1)
23Value = keyValue.Value;
System\Collections\Immutable\ImmutableDictionary_2.cs (9)
30private static readonly Action<KeyValuePair<int, HashBucket>> s_FreezeBucketAction = (kv) => kv.Value.Freeze();
174foreach (KeyValuePair<TKey, TValue> item in bucket.Value)
191foreach (KeyValuePair<TKey, TValue> item in bucket.Value)
193yield return item.Value;
485if (this.ValueComparer.Equals(value, item.Value))
764array.SetValue(new DictionaryEntry(item.Key, item.Value), arrayIndex++);
896&& origin.ValueComparer.Equals(value, keyValuePair.Value);
969ImmutableDictionary<TKey, TValue>.HashBucket newBucket = bucket.Add(pair.Key, pair.Value, origin.KeyOnlyComparer, origin.ValueComparer, collisionBehavior, out result);
993ImmutableDictionary<TKey, TValue>.HashBucket newBucket = bucket.Add(pair.Key, pair.Value, origin.KeyOnlyComparer, origin.ValueComparer, collisionBehavior, out result);
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (5)
795? result.SetItem(item.Key, item.Value, _keyComparer, _valueComparer, out replacedExistingValue, out mutated)
796: result.Add(item.Key, item.Value, _keyComparer, _valueComparer, out mutated);
856dictionary[item.Key] = item.Value;
863if (!_valueComparer.Equals(value, item.Value))
870dictionary.Add(item.Key, item.Value);
System.Collections.NonGeneric (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\DebugViewDictionaryItem.cs (1)
23Value = keyValue.Value;
System.CommandLine (3)
System.ComponentModel.Annotations (6)
System\ComponentModel\DataAnnotations\Validator.cs (6)
728property.Value, property.Key, attributes,
786var validationResult = reqAttr.GetValidationResult(property.Value, property.Key);
789errors.Add(new ValidationError(reqAttr, property.Value, validationResult!));
1084errors.AddRange(GetValidationErrors(property.Value, property.Key, attributes, breakOnFirstError));
1095var validationResult = reqAttr.GetValidationResult(property.Value, property.Key);
1098errors.Add(new ValidationError(reqAttr, property.Value, validationResult!));
System.ComponentModel.Composition (7)
System.ComponentModel.TypeConverter (11)
System.Composition.Hosting (1)
System.Composition.Runtime (8)
System.Composition.TypedParts (1)
System.Configuration.ConfigurationManager (1)
System.Data.Common (22)
System.Data.Odbc (11)
System.Data.OleDb (13)
System.Diagnostics.DiagnosticSource (39)
System.Diagnostics.EventLog (1)
System.Diagnostics.PerformanceCounter (1)
System.Diagnostics.Process (8)
System.DirectoryServices.AccountManagement (25)
System.Formats.Tar (19)
System.IO.Packaging (6)
System.Linq.AsyncEnumerable (1)
System.Linq.Expressions (10)
System.Linq.Parallel (11)
System.Net.Http (20)
System.Net.Http.WinHttpHandler (1)
System.Net.Mail (5)
System.Net.NameResolution (4)
System\Net\Dns.cs (4)
766KeyValuePair<string, AddressFamily> t => GetHostAddressesCore(t.Key, t.Value, activity),
768KeyValuePair<IPAddress, AddressFamily> t => GetHostAddressesCore(t.Key, t.Value, activity),
777KeyValuePair<string, AddressFamily> t => GetHostEntryCore(t.Key, t.Value, activity),
779KeyValuePair<IPAddress, AddressFamily> t => GetHostEntryCore(t.Key, t.Value, activity),
System.Net.NetworkInformation (2)
System.Net.Requests (3)
System.Net.Security (2)
System.Net.WebSockets.Client (2)
System.Private.CoreLib (54)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (6)
343if (!TryAddInternal(_tables, pair.Key, null, pair.Value, updateIfExists: false, acquireLock: false, out _))
428return TryRemoveInternal(item.Key, out _, matchValue: true, item.Value);
1602void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair) => ((IDictionary<TKey, TValue>)this).Add(keyValuePair.Key, keyValuePair.Value);
1615EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value);
2296public DictionaryEntry Entry => new DictionaryEntry(_enumerator.Current.Key, _enumerator.Current.Value);
2300public object? Value => _enumerator.Current.Value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\DebugViewDictionaryItem.cs (1)
23Value = keyValue.Value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (10)
171Add(pair.Key, pair.Value);
179Add(pair.Key, pair.Value);
255Add(keyValuePair.Key, keyValuePair.Value);
260if (!Unsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value))
271if (!Unsafe.IsNullRef(ref value) && EqualityComparer<TValue>.Default.Equals(value, keyValuePair.Value))
1234Add(array[i].Key, array[i].Value);
1934return new DictionaryEntry(_current.Key, _current.Value);
1937return new KeyValuePair<TKey, TValue>(_current.Key, _current.Value);
1961return new DictionaryEntry(_current.Key, _current.Value);
1987return _current.Value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
2350if (entry.Value)
System.Private.DataContractSerialization (7)
System.Private.Reflection.Execution (4)
System.Private.TypeLoader (2)
System.Private.Xml (26)
System.Reflection.Emit (6)
System\Reflection\Emit\ModuleBuilderImpl.cs (6)
436PopulateSequencePointsBlob(spBlobBuilder, enumerator.Current.Value, ref previousNonHiddenStartLine, ref previousNonHiddenStartColumn);
460PopulateSequencePointsBlob(spBlobBuilder, pair.Value, ref previousNonHiddenStartLine, ref previousNonHiddenStartColumn);
467PopulateSequencePointsBlob(spBlobBuilder, pair.Value, ref previousNonHiddenStartLine, ref previousNonHiddenStartColumn);
616pair.Value.WriteInt32(MetadataTokens.GetToken(GetMemberHandle(member)));
621pair.Value.WriteInt32(MetadataTokens.GetToken(GetMethodReference(pair2.Key, pair2.Value)));
System.Reflection.Metadata (12)
System.Resources.Extensions (3)
System.Resources.Writer (2)
System.Runtime.Serialization.Schema (6)
System.Security.Claims (1)
System.Security.Cryptography.Cose (3)
System.ServiceModel.Http (1)
System.ServiceModel.NetFramingBase (1)
System.ServiceModel.Primitives (13)
System.ServiceModel.Primitives.Tests (1)
System.Speech (17)
System.Text.Json (27)
System.Text.Json.SourceGeneration (45)
System.Text.RegularExpressions (11)
System.Text.RegularExpressions.Generator (10)
System.Threading.Channels (11)
System.Threading.RateLimiting (4)
System.Threading.Tasks.Dataflow (33)
Blocks\BatchBlock.cs (15)
790if (sourceAndMessage.Key.ReserveMessage(sourceAndMessage.Value, _owningBatch))
792var reservedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value, default(T)!);
808if (sourceAndMessage.Key.ReserveMessage(sourceAndMessage.Value, _owningBatch))
810var reservedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value, default(T)!);
907var reservedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value, default(T)!);
923var reservedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value, default(T)!);
996T? consumedValue = sourceAndMessage.Key.ConsumeMessage(sourceAndMessage.Value.Key, _owningBatch, out consumed);
1006var consumedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value.Key, consumedValue!);
1018_messages.Enqueue(sourceAndMessage.Value.Value);
1048T? consumedValue = sourceAndMessage.Key.ConsumeMessage(sourceAndMessage.Value.Key, _owningBatch, out consumed);
1051var consumedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value.Key, consumedValue!);
1068if (sourceAndMessage.Key != null) _messages.Enqueue(sourceAndMessage.Value.Value);
1094KeyValuePair<DataflowMessageHeader, T> message = sourceAndMessage.Value;
System.Threading.Tasks.Parallel (1)
System.Windows.Forms (11)
System.Windows.Forms.Design (9)
System.Windows.Input.Manipulations (16)
System.Xaml (24)
TypeScriptApiCompat (2)
UnitTests.Common (1)
vbc (3)
VBCSCompiler (3)
vstest.console (7)
vstest.console.arm64 (7)
src\vstest\src\vstest.console\TestPlatformHelpers\TestRequestManager.cs (1)
501ciData.Value);
WindowsFormsIntegration (1)