72 instantiations of ResourcePropertySnapshot
Aspire.Hosting (29)
Dcp\ResourceSnapshotBuilder.cs (26)
52new(KnownProperties.Container.Image, container.Spec.Image), 53new(KnownProperties.Container.Id, containerId), 54new(KnownProperties.Container.Command, container.Spec.Command), 55new(KnownProperties.Container.Args, container.Status?.EffectiveArgs ?? []) { IsSensitive = true }, 56new(KnownProperties.Container.Ports, GetPorts()), 57new(KnownProperties.Container.Lifetime, GetContainerLifetime()), 58new(KnownProperties.Resource.AppArgs, launchArguments?.Args) { IsSensitive = launchArguments?.IsSensitive ?? false }, 59new(KnownProperties.Resource.AppArgsSensitivity, launchArguments?.ArgsAreSensitive) { IsSensitive = launchArguments?.IsSensitive ?? false }, 115new(KnownProperties.Executable.WorkDir, executable.Spec.WorkingDirectory), 116new(KnownProperties.Executable.Args, executable.Status?.EffectiveArgs ?? []) { IsSensitive = true }, 117new(KnownProperties.Resource.AppArgs, launchArguments?.Args) { IsSensitive = launchArguments?.IsSensitive ?? false }, 118new(KnownProperties.Resource.AppArgsSensitivity, launchArguments?.ArgsAreSensitive) { IsSensitive = launchArguments?.IsSensitive ?? false }, 166new(KnownProperties.Executable.Path, executable.Spec.ExecutablePath), 167new(KnownProperties.Executable.WorkDir, executable.Spec.WorkingDirectory), 168new(KnownProperties.Executable.Args, executable.Status?.EffectiveArgs ?? []) { IsSensitive = true }, 169new(KnownProperties.Executable.Pid, executable.Status?.ProcessId), 170new(KnownProperties.Project.Path, projectPath), 171new(KnownProperties.Project.LaunchProfile, launchProfileName), 172new(KnownProperties.Resource.AppArgs, launchArguments?.Args) { IsSensitive = launchArguments?.IsSensitive ?? false }, 173new(KnownProperties.Resource.AppArgsSensitivity, launchArguments?.ArgsAreSensitive) { IsSensitive = launchArguments?.IsSensitive ?? false }, 190new(KnownProperties.Executable.Path, executable.Spec.ExecutablePath), 191new(KnownProperties.Executable.WorkDir, executable.Spec.WorkingDirectory), 192new(KnownProperties.Executable.Args, executable.Status?.EffectiveArgs ?? []) { IsSensitive = true }, 193new(KnownProperties.Executable.Pid, executable.Status?.ProcessId), 194new(KnownProperties.Resource.AppArgs, launchArguments?.Args) { IsSensitive = launchArguments?.IsSensitive ?? false }, 195new(KnownProperties.Resource.AppArgsSensitivity, launchArguments?.ArgsAreSensitive) { IsSensitive = launchArguments?.IsSensitive ?? false },
Orchestrator\ApplicationOrchestrator.cs (1)
71Properties = [.. state.Properties, new(CustomResourceKnownProperties.ConnectionString, connectionString) { IsSensitive = true }]
ParameterResourceBuilderExtensions.cs (1)
219new(CustomResourceKnownProperties.Source, resource.ConfigurationKey)
src\Shared\CustomResourceSnapshotExtensions.cs (1)
31return [.. properties, new ResourcePropertySnapshot(name, value) { IsSensitive = IsSensitive }];
Aspire.Hosting.Azure (10)
Provisioning\Provisioners\BicepProvisioner.cs (9)
84new("azure.subscription.id", configuration["Azure:SubscriptionId"]), 86new("azure.tenant.domain", configuration["Azure:Tenant"]), 87new("azure.location", configuration["Azure:Location"]), 88new(CustomResourceKnownProperties.Source, section["Id"]) 122new("azure.subscription.id", context.Subscription.Id.Name), 123new("azure.resource.group", resourceGroup.Id.Name), 124new("azure.tenant.domain", context.Tenant.DefaultDomain), 125new("azure.location", context.Location.ToString()), 285new(CustomResourceKnownProperties.Source, deployment.Id.Name)
src\Shared\CustomResourceSnapshotExtensions.cs (1)
31return [.. properties, new ResourcePropertySnapshot(name, value) { IsSensitive = IsSensitive }];
Aspire.Hosting.Azure.AIFoundry (4)
AzureAIFoundryExtensions.cs (4)
228Properties = [.. state.Properties, new(CustomResourceKnownProperties.Source, "Foundry Local")] 236Properties = [.. state.Properties, new(CustomResourceKnownProperties.Source, "Foundry Local")] 266Properties = [.. state.Properties, new(CustomResourceKnownProperties.Source, model)] 284Properties = [.. state.Properties, new(CustomResourceKnownProperties.Source, $"{model} ({progress.ModelInfo.ModelId})")]
Aspire.Hosting.GitHub.Models (2)
GitHubModelsExtensions.cs (2)
53new(CustomResourceKnownProperties.Source, "GitHub Models") 67Properties = [.. s.Properties, new(CustomResourceKnownProperties.ConnectionString, cs) { IsSensitive = true }]
Aspire.Hosting.OpenAI (4)
OpenAIExtensions.cs (4)
61new(CustomResourceKnownProperties.Source, "OpenAI") 75Properties = [.. s.Properties, new(CustomResourceKnownProperties.ConnectionString, cs) { IsSensitive = true }] 108new(CustomResourceKnownProperties.Source, "OpenAI Models") 119Properties = [.. s.Properties, new(CustomResourceKnownProperties.ConnectionString, cs) { IsSensitive = true }]
Aspire.Hosting.Tests (12)
Backchannel\AppHostBackchannelTests.cs (2)
63Properties = [new("A", "B"), new("c", "d")],
Backchannel\Exec\ContainerResourceExecTests.cs (2)
72Properties = [new("A", "B"), new("c", "d")],
Backchannel\Exec\ProjectResourceExecTests.cs (2)
131Properties = [new("A", "B"), new("c", "d")],
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 (5)
TalkingClockResource.cs (2)
49new(CustomResourceKnownProperties.Source, "Talking Clock") 136new(CustomResourceKnownProperties.Source, "Talking Clock")
TestResource.cs (3)
20new("P1", "P2"), 21new(CustomResourceKnownProperties.Source, "Custom") 51Properties = [.. state.Properties, new("Interval", seconds.ToString(CultureInfo.InvariantCulture))]
Stress.AppHost (6)
TestResource.cs (6)
21new("P1", "P2"), 22new(CustomResourceKnownProperties.Source, "Custom") 38new("P1", "P2"), 39new(CustomResourceKnownProperties.Source, "Custom"), 40new(KnownProperties.Resource.ParentName, parent.Name) 69Properties = [.. state.Properties, new("Interval", seconds.ToString(CultureInfo.InvariantCulture))]
24 references to ResourcePropertySnapshot
Aspire.Hosting (11)
ApplicationModel\CustomResourceSnapshot.cs (1)
34public required ImmutableArray<ResourcePropertySnapshot> Properties { get; init; }
src\Shared\CustomResourceSnapshotExtensions.cs (10)
11internal static ImmutableArray<ResourcePropertySnapshot> SetResourceProperty(this ImmutableArray<ResourcePropertySnapshot> properties, string name, object value, bool IsSensitive = false) 15var property = properties[i]; 34internal static ImmutableArray<ResourcePropertySnapshot> SetResourcePropertyRange(this ImmutableArray<ResourcePropertySnapshot> properties, IEnumerable<ResourcePropertySnapshot> newValues) 36var existingProperties = new List<ResourcePropertySnapshot>(properties); 37var propertiesToAdd = new List<ResourcePropertySnapshot>(); 39foreach (var newValue in newValues) 44var existingProperty = existingProperties[i];
Aspire.Hosting.Azure (12)
Provisioning\Provisioners\BicepProvisioner.cs (2)
82ImmutableArray<ResourcePropertySnapshot> props = [ 283ImmutableArray<ResourcePropertySnapshot> properties = [
src\Shared\CustomResourceSnapshotExtensions.cs (10)
11internal static ImmutableArray<ResourcePropertySnapshot> SetResourceProperty(this ImmutableArray<ResourcePropertySnapshot> properties, string name, object value, bool IsSensitive = false) 15var property = properties[i]; 34internal static ImmutableArray<ResourcePropertySnapshot> SetResourcePropertyRange(this ImmutableArray<ResourcePropertySnapshot> properties, IEnumerable<ResourcePropertySnapshot> newValues) 36var existingProperties = new List<ResourcePropertySnapshot>(properties); 37var propertiesToAdd = new List<ResourcePropertySnapshot>(); 39foreach (var newValue in newValues) 44var existingProperty = existingProperties[i];
Aspire.Hosting.Tests (1)
Orchestrator\ApplicationOrchestratorTests.cs (1)
419var connectionStringProp = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ConnectionString);