50 writes to Properties
Aspire.Hosting (16)
Aspire.Hosting.Azure (3)
Aspire.Hosting.Azure.AIFoundry (4)
Aspire.Hosting.GitHub.Models (2)
Aspire.Hosting.OpenAI (4)
Aspire.Hosting.Tests (12)
ResourceNotificationTests.cs (6)
25Properties = [new("A", "B")],
70await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
72await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
123await notificationService.PublishUpdateAsync(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
125await notificationService.PublishUpdateAsync(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
127await notificationService.PublishUpdateAsync(resource1, "replica1", state => state with { Properties = state.Properties.Add(new("C", "value")) }).DefaultTimeout();
CustomResources.AppHost (4)
HealthChecksSandbox.AppHost (1)
Stress.AppHost (4)
61 references to Properties
Aspire.Hosting (14)
Aspire.Hosting.Azure (3)
Aspire.Hosting.Azure.AIFoundry (4)
Aspire.Hosting.Azure.Tests (1)
Aspire.Hosting.GitHub.Models (1)
Aspire.Hosting.MySql.Tests (2)
Aspire.Hosting.OpenAI (2)
Aspire.Hosting.PostgreSQL.Tests (2)
Aspire.Hosting.Tests (30)
ResourceNotificationTests.cs (11)
36Assert.Collection(state.Properties, c =>
70await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
72await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
82Assert.Equal("value", c.Snapshot.Properties.Single(p => p.Name == "A").Value);
90Assert.Equal("value", c.Snapshot.Properties.Single(p => p.Name == "B").Value);
123await notificationService.PublishUpdateAsync(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
125await notificationService.PublishUpdateAsync(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
127await notificationService.PublishUpdateAsync(resource1, "replica1", state => state with { Properties = state.Properties.Add(new("C", "value")) }).DefaultTimeout();
137Assert.Equal("value", c.Snapshot.Properties.Single(p => p.Name == "A").Value);
144Assert.Equal("value", c.Snapshot.Properties.Single(p => p.Name == "B").Value);
151Assert.Equal("value", c.Snapshot.Properties.Single(p => p.Name == "C").Value);
CustomResources.AppHost (1)
Stress.AppHost (1)