46 references to BuildSemaphore
Aspire.Hosting.Maui (1)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
96var semaphore = queueAnnotation.BuildSemaphore;
Aspire.Hosting.Maui.Tests (45)
MauiBuildQueueTests.cs (45)
29Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 64Assert.Equal(0, annotation!.BuildSemaphore.CurrentCount); 82Assert.Equal(1, annotation!.BuildSemaphore.CurrentCount); 227Assert.Equal(1, annotation!.BuildSemaphore.CurrentCount); 381Assert.Equal(1, annotation!.BuildSemaphore.CurrentCount); 389Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 462Assert.Equal(1, annotation!.BuildSemaphore.CurrentCount); 481Assert.Equal(1, annotation!.BuildSemaphore.CurrentCount); 548Assert.Equal(0, annotation!.BuildSemaphore.CurrentCount); 626Assert.Equal(0, annotation!.BuildSemaphore.CurrentCount); 637Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 645await annotation!.BuildSemaphore.WaitAsync(); 659annotation.BuildSemaphore, 665Assert.Equal(0, annotation.BuildSemaphore.CurrentCount); 674Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 715await annotation!.BuildSemaphore.WaitAsync(); 729annotation.BuildSemaphore, 741Assert.Equal(0, annotation.BuildSemaphore.CurrentCount); 749Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 772await annotation!.BuildSemaphore.WaitAsync(); 782annotation.BuildSemaphore, 791Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 799await annotation!.BuildSemaphore.WaitAsync(); 818annotation.BuildSemaphore, 827Assert.Equal(0, annotation.BuildSemaphore.CurrentCount); 832Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 853await annotation!.BuildSemaphore.WaitAsync(); 858annotation.BuildSemaphore, 879Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 887await annotation!.BuildSemaphore.WaitAsync(); 904annotation.BuildSemaphore, 913Assert.Equal(0, annotation.BuildSemaphore.CurrentCount); 921Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 941await annotation!.BuildSemaphore.WaitAsync(); 946annotation.BuildSemaphore, 955Assert.Equal(0, annotation.BuildSemaphore.CurrentCount); 969Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 977await annotation!.BuildSemaphore.WaitAsync(); 996annotation.BuildSemaphore, 1004Assert.Equal(0, annotation.BuildSemaphore.CurrentCount); 1009Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 1017await annotation!.BuildSemaphore.WaitAsync(); 1026annotation.BuildSemaphore, 1035Assert.Equal(1, annotation.BuildSemaphore.CurrentCount); 1107Assert.Equal(1, annotation!.BuildSemaphore.CurrentCount);