7 instantiations of ResourcePropertySnapshot
Aspire.Hosting (1)
src\Shared\CustomResourceSnapshotExtensions.cs (1)
31
return [.. properties, new
ResourcePropertySnapshot
(name, value) { IsSensitive = IsSensitive }];
Aspire.Hosting.Azure (1)
src\Shared\CustomResourceSnapshotExtensions.cs (1)
31
return [.. properties, new
ResourcePropertySnapshot
(name, value) { IsSensitive = IsSensitive }];
Aspire.Hosting.Tests (5)
ResourceNotificationTests.cs (5)
71
await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(
new
("A", "value")) }).DefaultTimeout();
73
await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(
new
("B", "value")) }).DefaultTimeout();
124
await notificationService.PublishUpdateAsync(resource1, state => state with { Properties = state.Properties.Add(
new
("A", "value")) }).DefaultTimeout();
126
await notificationService.PublishUpdateAsync(resource2, state => state with { Properties = state.Properties.Add(
new
("B", "value")) }).DefaultTimeout();
128
await 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)
11
internal static ImmutableArray<
ResourcePropertySnapshot
> SetResourceProperty(this ImmutableArray<
ResourcePropertySnapshot
> properties, string name, object value, bool IsSensitive = false)
15
var
property = properties[i];
34
internal static ImmutableArray<
ResourcePropertySnapshot
> SetResourcePropertyRange(this ImmutableArray<
ResourcePropertySnapshot
> properties, IEnumerable<
ResourcePropertySnapshot
> newValues)
36
var existingProperties = new List<
ResourcePropertySnapshot
>(properties);
37
var propertiesToAdd = new List<
ResourcePropertySnapshot
>();
39
foreach (
var
newValue in newValues)
44
var
existingProperty = existingProperties[i];
Aspire.Hosting.Azure (12)
Provisioning\Provisioners\BicepProvisioner.cs (2)
88
ImmutableArray<
ResourcePropertySnapshot
> props = [
357
ImmutableArray<
ResourcePropertySnapshot
> properties = [
src\Shared\CustomResourceSnapshotExtensions.cs (10)
11
internal static ImmutableArray<
ResourcePropertySnapshot
> SetResourceProperty(this ImmutableArray<
ResourcePropertySnapshot
> properties, string name, object value, bool IsSensitive = false)
15
var
property = properties[i];
34
internal static ImmutableArray<
ResourcePropertySnapshot
> SetResourcePropertyRange(this ImmutableArray<
ResourcePropertySnapshot
> properties, IEnumerable<
ResourcePropertySnapshot
> newValues)
36
var existingProperties = new List<
ResourcePropertySnapshot
>(properties);
37
var propertiesToAdd = new List<
ResourcePropertySnapshot
>();
39
foreach (
var
newValue in newValues)
44
var
existingProperty = existingProperties[i];