30 references to ToSnapshot
Aspire.Hosting (3)
Dcp\DcpExecutor.cs (1)
1007Executable exe => s => _resourceWatcher.SnapshotBuilder.ToSnapshot(exe, s),
Dcp\DcpResourceWatcher.cs (2)
155Task.Run(() => WatchKubernetesResourceAsync<Executable>((t, r) => ProcessResourceChange(t, r, _resourceState.ExecutablesMap, Model.Dcp.ExecutableKind, (e, s) => _snapshotBuilder.ToSnapshot(e, s)))), 1028return _snapshotBuilder.ToSnapshot(exe, s);
Aspire.Hosting.Tests (27)
Dcp\DcpExecutorTests.cs (1)
899var snapshot = CreateSnapshotBuilder(distributedAppModel).ToSnapshot(exe, CreatePreviousSnapshot());
Dcp\ResourceSnapshotBuilderTests.cs (26)
53var snapshot = CreateSnapshotBuilder().ToSnapshot(executable, CreatePreviousSnapshot()); 80}).ToSnapshot(executable, CreatePreviousSnapshot()); 109}).ToSnapshot(executable, CreatePreviousSnapshot()); 156}).ToSnapshot(executable, CreatePreviousSnapshot()); 211}).ToSnapshot(executable, CreatePreviousSnapshot()); 263}).ToSnapshot(executable, CreatePreviousSnapshot(KnownResourceTypes.Project)); 308}).ToSnapshot(executable, CreatePreviousSnapshot(KnownResourceTypes.Project)); 354}).ToSnapshot(executable, CreatePreviousSnapshot(KnownResourceTypes.Project)); 416}).ToSnapshot(executable, CreatePreviousSnapshot()); 463}).ToSnapshot(executable, previousSnapshot); 506}).ToSnapshot(executable, previousSnapshot); 538}).ToSnapshot(executable, CreatePreviousSnapshot()); 567}).ToSnapshot(executable, CreatePreviousSnapshot()); 601}).ToSnapshot(executable, CreatePreviousSnapshot()); 624}).ToSnapshot(executable, CreatePreviousSnapshot()); 648}).ToSnapshot(executable, CreatePreviousSnapshot()); 672var snapshot = snapshotBuilder.ToSnapshot(executable, CreatePreviousSnapshot()); 678snapshot = snapshotBuilder.ToSnapshot(executable, snapshot); 688snapshot = snapshotBuilder.ToSnapshot(executable, snapshot); 712}).ToSnapshot(executable, CreatePreviousSnapshot())); 741var projectSnapshot = snapshotBuilder.ToSnapshot(executable, CreatePreviousSnapshot(KnownResourceTypes.Project)); 746var customSnapshot = snapshotBuilder.ToSnapshot(executable, CreatePreviousSnapshot("custom-type")); 760var snapshot = CreateSnapshotBuilder().ToSnapshot(executable, CreatePreviousSnapshot()); 778var snapshot = CreateSnapshotBuilder().ToSnapshot(executable, CreatePreviousSnapshot()); 793var snapshot = CreateSnapshotBuilder().ToSnapshot(executable, CreatePreviousSnapshot()); 823var snapshot = CreateSnapshotBuilder().ToSnapshot(executable, CreatePreviousSnapshot());