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