41 references to Seal
Aspire.Hosting.Native.Core.AotSmoke (2)
Program.cs (2)
41var snapshot = model.Seal(); 43snapshot.Resources[1].Dependencies.Single() != cache || !ReferenceEquals(snapshot, model.Seal()))
Aspire.Hosting.Native.Core.Tests (35)
ApplicationModelTests.cs (7)
149var snapshot = model.Seal(); 151Assert.Same(snapshot, model.Seal()); 168var snapshot = model.Seal(); 182model.Seal().Resources.Select(resource => resource.Handle).OrderBy(resource => resource.ResourceId)); 194Assert.Single(model.Seal().Resources); 202var snapshot = model.Seal(); 209Assert.Throws<ObjectDisposedException>(model.Seal);
DcpWorkloadCleanupTests.cs (4)
148using var runtime = new RuntimeGeneration(model.Seal(), new DcpWorkloadExecutor(client, Task.CompletedTask, options)); 180using var runtime = new RuntimeGeneration(model.Seal(), new DcpWorkloadExecutor(client, Task.CompletedTask, options)); 184await Assert.ThrowsAsync<HttpRequestException>(() => runtime.ApplyRevision(revision.Seal())); 205using var runtime = new RuntimeGeneration(model.Seal(), new DcpWorkloadExecutor(client, Task.CompletedTask, options));
DeclarativeApplicationTests.cs (1)
62return model.Seal();
NativeDiagnosticsTests.cs (2)
20model.Seal(); 67model.Seal();
NativeTimeProviderTests.cs (5)
75using var runtime = new RuntimeGeneration(model.Seal(), UnavailableWorkloadExecutor.Instance, 125using var runtime = new RuntimeGeneration(model.Seal(), executor, 163using var runtime = new RuntimeGeneration(model.Seal(), executor, 203using var runtime = new RuntimeGeneration(model.Seal(), executor, 229using var runtime = new RuntimeGeneration(model.Seal(), executor,
ResourceWorkloadTests.cs (2)
19using var runtime = new RuntimeGeneration(model.Seal(), UnavailableWorkloadExecutor.Instance); 87using var runtime = new RuntimeGeneration(model.Seal(), executor);
RuntimeObservationTests.cs (2)
25using var runtime = new RuntimeGeneration(model.Seal()); 50using var runtime = new RuntimeGeneration(model.Seal());
SymbolicValueTests.cs (12)
76using var runtime = new RuntimeGeneration(model.Seal(), executor); 103using var runtime = new RuntimeGeneration(model.Seal(), executor); 114await runtime.ApplyRevision(replacement.Seal()); 128using var runtime = new RuntimeGeneration(initial.Seal()); 134await runtime.ApplyRevision(identical.Seal()); 140await runtime.ApplyRevision(changed.Seal()); 155using var runtime = new RuntimeGeneration(model.Seal(), executor); 174using var runtime = new RuntimeGeneration(model.Seal(), executor); 188using var runtime = new RuntimeGeneration(initial.Seal()); 193await runtime.ApplyRevision(next.Seal()); 196var error = await Assert.ThrowsAsync<SymbolicValueException>(() => runtime.ApplyRevision(overflow.Seal())); 221using var runtime = new RuntimeGeneration(model.Seal());
Aspire.Hosting.Native.Server (4)
Api\ApplicationWorkspace.cs (1)
92var declarations = revision.Model.Seal();
Api\CompositionApi.cs (1)
233public CompositionSnapshot Seal() => Copy(Model.Seal());
Api\PublishingApi.cs (1)
17var snapshot = Model.Seal();
Api\RuntimeApi.cs (1)
81Runtime = new RuntimeGeneration(composition.Model.Seal(), invitations.Executor, invitations.Options);