38 writes to Properties
Aspire.Hosting (12)
ApplicationModel\ResourceNotificationService.cs (1)
711Properties = [],
ConnectionStringBuilderExtensions.cs (1)
48Properties = []
Dashboard\DashboardLifecycleHook.cs (1)
168Properties = [],
Dcp\ResourceSnapshotBuilder.cs (3)
51Properties = previous.Properties.SetResourcePropertyRange([ 126Properties = previous.Properties.SetResourcePropertyRange([ 149Properties = previous.Properties.SetResourcePropertyRange([
Orchestrator\ApplicationOrchestrator.cs (5)
69Properties = [.. state.Properties, new(CustomResourceKnownProperties.ConnectionString, connectionString) { IsSensitive = true }] 167Properties = s.Properties.SetResourceProperty(KnownProperties.Container.Image, context.Resource.TryGetContainerImageName(out var imageName) ? imageName : ""), 288Properties = s.Properties.SetResourceProperty("Value", value ?? "", resourceWithoutLifetime is ParameterResource p && p.Secret) 300Properties = s.Properties.SetResourceProperty("Value", ex.Message) 426Properties = parent is null ? s.Properties : s.Properties.SetResourceProperty(KnownProperties.Resource.ParentName, parent.GetResolvedResourceNames()[0]),
ParameterResourceBuilderExtensions.cs (1)
166Properties = [
Aspire.Hosting.Azure (3)
Provisioning\Provisioners\BicepProvisioner.cs (3)
94Properties = props 119Properties = state.Properties.SetResourcePropertyRange([ 271Properties = properties
Aspire.Hosting.Azure.AIFoundry (4)
AzureAIFoundryExtensions.cs (4)
166Properties = [.. state.Properties, new(CustomResourceKnownProperties.Source, "Foundry Local")] 174Properties = [.. state.Properties, new(CustomResourceKnownProperties.Source, "Foundry Local")] 207Properties = [.. state.Properties, new(CustomResourceKnownProperties.Source, model)] 225Properties = [.. state.Properties, new(CustomResourceKnownProperties.Source, $"{model} ({progress.ModelInfo.ModelId})")]
Aspire.Hosting.Tests (10)
Backchannel\AppHostBackchannelTests.cs (1)
99Properties = [new("A", "B"), new("c", "d")],
Dashboard\ResourcePublisherTests.cs (1)
187Properties = [],
ResourceCommandAnnotationTests.cs (1)
60Properties = [],
ResourceNotificationTests.cs (6)
26Properties = [new("A", "B")], 71await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 73await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 124await notificationService.PublishUpdateAsync(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 126await notificationService.PublishUpdateAsync(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 128await notificationService.PublishUpdateAsync(resource1, "replica1", state => state with { Properties = state.Properties.Add(new("C", "value")) }).DefaultTimeout();
WithUrlsTests.cs (1)
415Properties = []
CustomResources.AppHost (4)
TalkingClockResource.cs (2)
114Properties = 135Properties =
TestResource.cs (2)
19Properties = [ 51Properties = [.. state.Properties, new("Interval", seconds.ToString(CultureInfo.InvariantCulture))]
HealthChecksSandbox.AppHost (1)
Program.cs (1)
55Properties = [],
Stress.AppHost (4)
Program.cs (1)
34Properties = [],
TestResource.cs (3)
20Properties = [ 37Properties = [ 69Properties = [.. state.Properties, new("Interval", seconds.ToString(CultureInfo.InvariantCulture))]
51 references to Properties
Aspire.Hosting (11)
ApplicationModel\ResourceNotificationService.cs (1)
591string.Join(" ", newState.Properties.Select(p => $"{p.Name} = {Stringify(p.Value)}")),
Dashboard\GenericResourceSnapshot.cs (1)
15foreach (var (key, value, isSensitive) in state.Properties)
Dcp\ResourceSnapshotBuilder.cs (3)
51Properties = previous.Properties.SetResourcePropertyRange([ 126Properties = previous.Properties.SetResourcePropertyRange([ 149Properties = previous.Properties.SetResourcePropertyRange([
Orchestrator\ApplicationOrchestrator.cs (6)
69Properties = [.. state.Properties, new(CustomResourceKnownProperties.ConnectionString, connectionString) { IsSensitive = true }] 167Properties = s.Properties.SetResourceProperty(KnownProperties.Container.Image, context.Resource.TryGetContainerImageName(out var imageName) ? imageName : ""), 288Properties = s.Properties.SetResourceProperty("Value", value ?? "", resourceWithoutLifetime is ParameterResource p && p.Secret) 300Properties = s.Properties.SetResourceProperty("Value", ex.Message) 426Properties = parent is null ? s.Properties : s.Properties.SetResourceProperty(KnownProperties.Resource.ParentName, parent.GetResolvedResourceNames()[0]),
Aspire.Hosting.Azure (3)
Provisioning\Provisioners\BicepProvisioner.cs (3)
82.. state.Properties, 119Properties = state.Properties.SetResourcePropertyRange([ 263.. state.Properties,
Aspire.Hosting.Azure.AIFoundry (4)
AzureAIFoundryExtensions.cs (4)
166Properties = [.. state.Properties, new(CustomResourceKnownProperties.Source, "Foundry Local")] 174Properties = [.. state.Properties, new(CustomResourceKnownProperties.Source, "Foundry Local")] 207Properties = [.. state.Properties, new(CustomResourceKnownProperties.Source, model)] 225Properties = [.. state.Properties, new(CustomResourceKnownProperties.Source, $"{model} ({progress.ModelInfo.ModelId})")]
Aspire.Hosting.Azure.Tests (1)
AzureBicepProvisionerTests.cs (1)
68var parentProperty = resourceEvent.Snapshot.Properties.FirstOrDefault(x => x.Name == KnownProperties.Resource.ParentName)?.Value?.ToString();
Aspire.Hosting.MySql.Tests (2)
MySqlFunctionalTests.cs (2)
600return evt.Snapshot.Properties.FirstOrDefault(x => x.Name == "container.id")?.Value != null; 603return resourceEvent.Snapshot.Properties.FirstOrDefault(x => x.Name == "container.id")?.Value?.ToString();
Aspire.Hosting.PostgreSQL.Tests (2)
PostgresFunctionalTests.cs (2)
581return evt.Snapshot.Properties.FirstOrDefault(x => x.Name == "container.id")?.Value != null; 584return resourceEvent.Snapshot.Properties.FirstOrDefault(x => x.Name == "container.id")?.Value?.ToString();
Aspire.Hosting.Tests (26)
AddParameterTests.cs (1)
35Assert.Collection(state.Properties,
DistributedApplicationTests.cs (6)
182Assert.Contains("TestProject.ServiceA.csproj", notStartedResourceEvent.Snapshot.Properties.Single(p => p.Name == "project.path").Value?.ToString()); 183Assert.Contains("TestProject.ServiceB.csproj", dependentResourceEvent.Snapshot.Properties.Single(p => p.Name == "project.path").Value?.ToString()); 269Assert.Equal(RedisImageSource, notStartedResourceEvent.Snapshot.Properties.Single(p => p.Name == "container.image").Value?.ToString()); 270Assert.Contains("TestProject.ServiceB.csproj", dependentResourceEvent.Snapshot.Properties.Single(p => p.Name == "project.path").Value?.ToString()); 350Assert.Equal(RedisImageSource, notStartedResourceEvent.Snapshot.Properties.Single(p => p.Name == "container.image").Value?.ToString()); 351Assert.Contains("TestProject.ServiceB.csproj", dependentResourceEvent.Snapshot.Properties.Single(p => p.Name == "project.path").Value?.ToString());
Orchestrator\ApplicationOrchestratorTests.cs (8)
47childParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 94childParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 186childParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 190nestedChildParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 194child2ParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 254childParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 301projectBParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 412var connectionStringProp = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ConnectionString);
ResourceNotificationTests.cs (11)
37Assert.Collection(state.Properties, c => 71await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 73await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 83Assert.Equal("value", c.Snapshot.Properties.Single(p => p.Name == "A").Value); 91Assert.Equal("value", c.Snapshot.Properties.Single(p => p.Name == "B").Value); 124await notificationService.PublishUpdateAsync(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 126await notificationService.PublishUpdateAsync(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 128await notificationService.PublishUpdateAsync(resource1, "replica1", state => state with { Properties = state.Properties.Add(new("C", "value")) }).DefaultTimeout(); 138Assert.Equal("value", c.Snapshot.Properties.Single(p => p.Name == "A").Value); 145Assert.Equal("value", c.Snapshot.Properties.Single(p => p.Name == "B").Value); 152Assert.Equal("value", c.Snapshot.Properties.Single(p => p.Name == "C").Value);
CustomResources.AppHost (1)
TestResource.cs (1)
51Properties = [.. state.Properties, new("Interval", seconds.ToString(CultureInfo.InvariantCulture))]
Stress.AppHost (1)
TestResource.cs (1)
69Properties = [.. state.Properties, new("Interval", seconds.ToString(CultureInfo.InvariantCulture))]