10 references to SetException
Aspire.Hosting (1)
ApplicationModel\EndpointAnnotation.cs (1)
243AllocatedEndpointSnapshot.SetException(new InvalidOperationException($"The endpoint `{Name}` is not allocated"));
Aspire.Hosting.DevTunnels (2)
DevTunnelResourceBuilderExtensions.cs (2)
160portResource.TunnelEndpointAnnotation.AllocatedEndpointSnapshot.SetException(exception); 217portResource.TunnelEndpointAnnotation.AllocatedEndpointSnapshot.SetException(ex);
Aspire.Hosting.Tests (7)
ValueSnapshotTests.cs (7)
79snapshot.SetException(exception); 94snapshot.SetException(exception); 109snapshot.SetException(exception); 127snapshot.SetException(exception); 156snapshot.SetException(new InvalidOperationException()); 172snapshot.SetException(new InvalidOperationException()); 211Assert.Throws<ArgumentNullException>(() => snapshot.SetException(null!));