2 instantiations of RuntimeSnapshot
Aspire.Hosting.Native.Core (2)
Runtime\RuntimeGeneration.cs (2)
657
return
new
(_version, GenerationId, _resources.Values
1006
private RuntimeSnapshot Snapshot() =>
new
(_version, GenerationId, _resources.Values
15 references to RuntimeSnapshot
Aspire.Hosting.Native.Core (5)
Runtime\RuntimeGeneration.cs (5)
640
public
RuntimeSnapshot
Read()
650
internal
RuntimeSnapshot
ReadDependencies(Guid resourceId)
664
public async Task<
RuntimeSnapshot
> WaitForChangeAsync(long version, int timeoutMilliseconds)
1006
private
RuntimeSnapshot
Snapshot() => new(_version, GenerationId, _resources.Values
1088
public
RuntimeSnapshot
ReadDependencies()
Aspire.Hosting.Native.Core.Tests (5)
RuntimeObservationTests.cs (5)
33
var
initial = consumerOwner.ReadDependencies();
35
var
updated = consumerOwner.ReadDependencies();
36
var
all = runtime.Read();
53
var
dependencies = owner.ReadDependencies();
54
var
all = runtime.Read();
Aspire.Hosting.Native.Server (5)
Api\RuntimeApi.cs (2)
320
internal
RuntimeSnapshot
ReadNativeObservations() => runtime.Read();
373
internal static ApplicationObservations Copy(
RuntimeSnapshot
snapshot) => new()
Auxiliary\NativeAuxiliaryBackchannel.cs (1)
204
var
observation = observer?.ReadNativeObservations();
Cli\NativeCliProtocol.cs (1)
139
RuntimeSnapshot
snapshot;
Dashboard\NativeDashboardService.cs (1)
34
RuntimeSnapshot
? observations = null;