47 references to BuildSemaphore
Aspire.Hosting.Maui (1)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
96var semaphore = queueAnnotation.BuildSemaphore;
Aspire.Hosting.Maui.Tests (46)
MauiBuildQueueTests.cs (46)
29Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 64Assert.Equal(0, annotation!.BuildSemaphore.CurrentCount); 82Assert.Equal(1, annotation!.BuildSemaphore.CurrentCount); 199Assert.Equal(1, annotation!.BuildSemaphore.CurrentCount); 353Assert.Equal(1, annotation!.BuildSemaphore.CurrentCount); 361Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 434Assert.Equal(1, annotation!.BuildSemaphore.CurrentCount); 453Assert.Equal(1, annotation!.BuildSemaphore.CurrentCount); 520Assert.Equal(0, annotation!.BuildSemaphore.CurrentCount); 572Assert.Equal(0, annotation!.BuildSemaphore.CurrentCount); 649Assert.Equal(0, annotation!.BuildSemaphore.CurrentCount); 660Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 668await annotation!.BuildSemaphore.WaitAsync(); 682annotation.BuildSemaphore, 688Assert.Equal(0, annotation.BuildSemaphore.CurrentCount); 697Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 738await annotation!.BuildSemaphore.WaitAsync(); 752annotation.BuildSemaphore, 764Assert.Equal(0, annotation.BuildSemaphore.CurrentCount); 772Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 795await annotation!.BuildSemaphore.WaitAsync(); 805annotation.BuildSemaphore, 814Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 822await annotation!.BuildSemaphore.WaitAsync(); 841annotation.BuildSemaphore, 850Assert.Equal(0, annotation.BuildSemaphore.CurrentCount); 855Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 876await annotation!.BuildSemaphore.WaitAsync(); 881annotation.BuildSemaphore, 902Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 910await annotation!.BuildSemaphore.WaitAsync(); 927annotation.BuildSemaphore, 936Assert.Equal(0, annotation.BuildSemaphore.CurrentCount); 944Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 964await annotation!.BuildSemaphore.WaitAsync(); 969annotation.BuildSemaphore, 978Assert.Equal(0, annotation.BuildSemaphore.CurrentCount); 992Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 1000await annotation!.BuildSemaphore.WaitAsync(); 1019annotation.BuildSemaphore, 1027Assert.Equal(0, annotation.BuildSemaphore.CurrentCount); 1032Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 1040await annotation!.BuildSemaphore.WaitAsync(); 1049annotation.BuildSemaphore, 1058Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 1130Assert.Equal(1, annotation!.BuildSemaphore.CurrentCount);