7 instantiations of ResourcePropertySnapshot
Aspire.Hosting (1)
src\Shared\CustomResourceSnapshotExtensions.cs (1)
31return [.. properties, new ResourcePropertySnapshot(name, value) { IsSensitive = IsSensitive }];
Aspire.Hosting.Azure (1)
src\Shared\CustomResourceSnapshotExtensions.cs (1)
31return [.. properties, new ResourcePropertySnapshot(name, value) { IsSensitive = IsSensitive }];
Aspire.Hosting.Tests (5)
ResourceNotificationTests.cs (5)
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();
22 references to ResourcePropertySnapshot
Aspire.Hosting (10)
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)
88ImmutableArray<ResourcePropertySnapshot> props = [ 357ImmutableArray<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];