10 references to SetException
Aspire.Hosting (1)
ApplicationModel\EndpointAnnotation.cs (1)
166
AllocatedEndpointSnapshot.
SetException
(new InvalidOperationException($"The endpoint `{Name}` is not allocated"));
Aspire.Hosting.DevTunnels (2)
DevTunnelResourceBuilderExtensions.cs (2)
143
portResource.TunnelEndpointAnnotation.AllocatedEndpointSnapshot.
SetException
(exception);
198
portResource.TunnelEndpointAnnotation.AllocatedEndpointSnapshot.
SetException
(ex);
Aspire.Hosting.Tests (7)
ValueSnapshotTests.cs (7)
78
snapshot.
SetException
(exception);
93
snapshot.
SetException
(exception);
108
snapshot.
SetException
(exception);
126
snapshot.
SetException
(exception);
155
snapshot.
SetException
(new InvalidOperationException());
171
snapshot.
SetException
(new InvalidOperationException());
210
Assert.Throws<ArgumentNullException>(() => snapshot.
SetException
(null!));