6 references to ResourceSnapshot
Aspire.Hosting (6)
Dashboard\GenericResourceSnapshot.cs (1)
9
internal sealed class GenericResourceSnapshot(CustomResourceSnapshot state) :
ResourceSnapshot
Dashboard\proto\Partials.cs (2)
11
public static Resource FromSnapshot(
ResourceSnapshot
snapshot)
75
resource.Commands.Add(new ResourceCommand { Name = command.Name, DisplayName = command.DisplayName, DisplayDescription = command.DisplayDescription ?? string.Empty, Parameter =
ResourceSnapshot
.ConvertToValue(command.Parameter), ConfirmationMessage = command.ConfirmationMessage ?? string.Empty, IconName = command.IconName ?? string.Empty, IconVariant = MapIconVariant(command.IconVariant), IsHighlighted = command.IsHighlighted, State = MapCommandState(command.State) });
Dashboard\ResourcePublisher.cs (3)
19
private sealed record SourceAndResourceSnapshot(IResource Source,
ResourceSnapshot
Snapshot);
28
internal bool TryGetResource(string resourceName, [NotNullWhen(returnValue: true)] out
ResourceSnapshot
? snapshot, [NotNullWhen(returnValue: true)] out IResource? resource)
84
internal async ValueTask IntegrateAsync(IResource source,
ResourceSnapshot
snapshot, ResourceSnapshotChangeType changeType)