58 instantiations of ResourcePropertySnapshot
Aspire.Hosting (25)
Dcp\ResourceSnapshotBuilder.cs (21)
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 }, 127new(KnownProperties.Executable.Path, executable.Spec.ExecutablePath), 128new(KnownProperties.Executable.WorkDir, executable.Spec.WorkingDirectory), 129new(KnownProperties.Executable.Args, executable.Status?.EffectiveArgs ?? []) { IsSensitive = true }, 130new(KnownProperties.Executable.Pid, executable.Status?.ProcessId), 131new(KnownProperties.Project.Path, projectPath), 132new(KnownProperties.Resource.AppArgs, launchArguments?.Args) { IsSensitive = launchArguments?.IsSensitive ?? false }, 133new(KnownProperties.Resource.AppArgsSensitivity, launchArguments?.ArgsAreSensitive) { IsSensitive = launchArguments?.IsSensitive ?? false }, 150new(KnownProperties.Executable.Path, executable.Spec.ExecutablePath), 151new(KnownProperties.Executable.WorkDir, executable.Spec.WorkingDirectory), 152new(KnownProperties.Executable.Args, executable.Status?.EffectiveArgs ?? []) { IsSensitive = true }, 153new(KnownProperties.Executable.Pid, executable.Status?.ProcessId), 154new(KnownProperties.Resource.AppArgs, launchArguments?.Args) { IsSensitive = launchArguments?.IsSensitive ?? false }, 155new(KnownProperties.Resource.AppArgsSensitivity, launchArguments?.ArgsAreSensitive) { IsSensitive = launchArguments?.IsSensitive ?? false },
Orchestrator\ApplicationOrchestrator.cs (1)
69Properties = [.. state.Properties, new(CustomResourceKnownProperties.ConnectionString, connectionString) { IsSensitive = true }]
ParameterResourceBuilderExtensions.cs (2)
167new("parameter.secret", resource.Secret.ToString()), 168new(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)
83new("azure.subscription.id", configuration["Azure:SubscriptionId"]), 85new("azure.tenant.domain", configuration["Azure:Tenant"]), 86new("azure.location", configuration["Azure:Location"]), 87new(CustomResourceKnownProperties.Source, section["Id"]) 120new("azure.subscription.id", context.Subscription.Id.Name), 121new("azure.resource.group", resourceGroup.Id.Name), 122new("azure.tenant.domain", context.Tenant.DefaultDomain), 123new("azure.location", context.Location.ToString()), 264new(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)
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 (8)
Backchannel\AppHostBackchannelTests.cs (2)
99Properties = [new("A", "B"), new("c", "d")],
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();
CustomResources.AppHost (5)
TalkingClockResource.cs (2)
117new(CustomResourceKnownProperties.Source, "Talking Clock") 137new(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))]
23 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)
81ImmutableArray<ResourcePropertySnapshot> props = [ 262ImmutableArray<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];