81 references to ManualResetEvent
Aspire.Hosting.Tests (1)
MSBuildTests.cs (1)
212var outputDone = new ManualResetEvent(false);
Client.ChannelLayer.IntegrationTests (2)
DuplexChannelShapeTests.4.0.0.cs (2)
146var imp = new CallbackHandler_ConcurrencyMode_Single(new ManualResetEvent(false)); 175var imp = new CallbackHandler_ConcurrencyMode_Multiple(new ManualResetEvent(false));
Client.TypedClient.IntegrationTests (1)
TypedProxyTests.4.0.0.cs (1)
463waitEvent = new ManualResetEvent(false);
Contract.Service.IntegrationTests (4)
ServiceContractTests.4.0.0.cs (4)
36ManualResetEvent waitEvent = new ManualResetEvent(false); 83ManualResetEvent waitEvent = new ManualResetEvent(false); 129ManualResetEvent waitEvent = new ManualResetEvent(false); 177ManualResetEvent waitEvent = new ManualResetEvent(false);
dotnet-svcutil-lib (7)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\AsyncResult.cs (1)
62_manualResetEvent = new ManualResetEvent(_isCompleted);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (2)
1014_waitEvent = new ManualResetEvent(false); 1080_waitEvent = new ManualResetEvent(false);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LifetimeManager.cs (1)
371_waitHandle = new ManualResetEvent(false);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (1)
2193private ManualResetEvent _wait = new ManualResetEvent(false);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ConcurrencyBehavior.cs (1)
210private ManualResetEvent _wait = new ManualResetEvent(false);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
735private ManualResetEvent _wait = new ManualResetEvent(false);
InteractiveHost.UnitTests (4)
InteractiveHostDesktopTests.cs (4)
113var mayTerminate = new ManualResetEvent(false); 131var mayTerminate = new ManualResetEvent(false); 185var mayTerminate = new ManualResetEvent(false); 287var mayTerminate = new ManualResetEvent(false);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
RuntimeViewCompilerTest.cs (3)
580var resetEvent2 = new ManualResetEvent(initialState: false); 655var resetEvent1 = new ManualResetEvent(initialState: false); 656var resetEvent2 = new ManualResetEvent(initialState: false);
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (1)
386ManualResetEvent block = new ManualResetEvent(false);
HttpContextBuilderTests.cs (1)
97var block = new ManualResetEvent(false);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Async\AsynchronousOperationBlocker.cs (1)
22_waitHandle = new ManualResetEvent(false);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
IntelliSense\VisualBasicCompletionCommandHandlerTests.vb (1)
973Public ReadOnly e As ManualResetEvent = New ManualResetEvent(False)
Microsoft.CodeAnalysis.Test.Utilities (1)
FX\EventWaiter.cs (1)
17private readonly ManualResetEvent _eventSignal = new ManualResetEvent(false);
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
UtilityTest\AsyncLazyTests.cs (9)
37var synchronousComputationStartedEvent = new ManualResetEvent(initialState: false); 38var synchronousComputationShouldCompleteEvent = new ManualResetEvent(initialState: false); 145var computeFunctionRunning = new ManualResetEvent(initialState: false); 307var synchronousComputationStartedEvent = new ManualResetEvent(initialState: false); 308var synchronousComputationShouldCompleteEvent = new ManualResetEvent(initialState: false); 364var synchronousComputationStartedEvent = new ManualResetEvent(initialState: false); 365var synchronousComputationShouldCompleteEvent = new ManualResetEvent(initialState: false); 366var asynchronousComputationReadyToComplete = new ManualResetEvent(initialState: false); 367var asynchronousComputationShouldCompleteEvent = new ManualResetEvent(initialState: false);
Microsoft.Maui.Resizetizer (6)
AsyncTask.cs (6)
23 readonly ManualResetEvent logDataAvailable = new ManualResetEvent(false); 24 readonly ManualResetEvent errorDataAvailable = new ManualResetEvent(false); 25 readonly ManualResetEvent warningDataAvailable = new ManualResetEvent(false); 26 readonly ManualResetEvent customDataAvailable = new ManualResetEvent(false); 27 readonly ManualResetEvent taskCancelled = new ManualResetEvent(false); 28 readonly ManualResetEvent completed = new ManualResetEvent(false);
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (1)
46Private _formClosableSemaphore As New ManualResetEvent(False)
PresentationCore (3)
System\IO\Packaging\PackWebResponse.cs (1)
80_responseAvailable = new ManualResetEvent(false);
System\Windows\InterOp\D3DImage.cs (1)
61_canWriteEvent = new ManualResetEvent(true);
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
1397private ManualResetEvent _copyCompletedEvent = new ManualResetEvent(true);
PresentationFramework (1)
System\Windows\Data\XmlDataProvider.cs (1)
418_waitForInlineDoc = new ManualResetEvent(false); // tells serializer to wait until _document is ready
PresentationUI (1)
MS\Internal\Documents\SigningProgress.cs (1)
137_isReady = new ManualResetEvent(false);
ReachFramework (1)
Serialization\RCW\PrintDocumentPackageStatusProvider.cs (1)
32_jobIdAcquiredEvent = new ManualResetEvent(false);
ScenarioTests.Common.Tests (6)
ScenarioTestTypes.cs (6)
1063private ManualResetEvent _waitEvent = new ManualResetEvent(false); 1184LogReceived = new ManualResetEvent(false); 1185ReceiveDataInvoked = new ManualResetEvent(false); 1186ReceiveDataCompleted = new ManualResetEvent(false); 1187ReceiveStreamInvoked = new ManualResetEvent(false); 1188ReceiveStreamCompleted = new ManualResetEvent(false);
System.Data.Odbc (1)
Common\System\Data\ProviderBase\DbConnectionPool.cs (1)
53_errorEvent = new ManualResetEvent(false);
System.Net.HttpListener (3)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (1)
143waitHandle = new ManualResetEvent(false);
System\Net\Managed\HttpStreamAsyncResult.cs (1)
90_handle ??= new ManualResetEvent(_completed);
System\Net\Managed\ListenerAsyncResult.Managed.cs (1)
221_handle ??= new ManualResetEvent(_completed);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (1)
197protected virtual WaitHandle CreateWaitHandle() => new ManualResetEvent(false);
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (1)
103var mre = new ManualResetEvent(false);
src\libraries\System.Private.CoreLib\src\System\Threading\ManualResetEventSlim.cs (1)
223ManualResetEvent newEventObj = new ManualResetEvent(preInitializeIsSet);
src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreSlim.cs (1)
111m_waitHandle ??= new ManualResetEvent(m_currentCount != 0);
System.Runtime.Caching (1)
System\Runtime\Caching\MemoryCacheStore.cs (1)
93_insertBlock = new ManualResetEvent(true);
System.ServiceModel.Federation (1)
System\Runtime\OperationWithTimeoutAsyncResult.cs (1)
90_manualResetEvent = new ManualResetEvent(IsCompleted);
System.Transactions.Local (2)
System\Transactions\CommittableTransaction.cs (1)
205ManualResetEvent temp = new ManualResetEvent(
System\Transactions\TransactionTable.cs (1)
47Interlocked.CompareExchange(ref _writerFinishedEvent, new ManualResetEvent(true), null);
System.Windows.Forms (1)
System\Windows\Forms\Control.ThreadMethodEntry.cs (1)
57_resetEvent ??= new ManualResetEvent(false);
UnitTests.Common (1)
MockAsyncResult.cs (1)
15AsyncWaitHandle = new ManualResetEvent(false);
VBCSCompiler.UnitTests (11)
ClientConnectionHandlerTests.cs (2)
150using var buildStartedMre = new ManualResetEvent(initialState: false); 151using var clientClosedMre = new ManualResetEvent(initialState: false);
VBCSCompilerServerTests.cs (9)
94using (var readyMre = new ManualResetEvent(initialState: false)) 95using (var doneMre = new ManualResetEvent(initialState: false)) 144using (var readyMre = new ManualResetEvent(initialState: false)) 145using (var doneMre = new ManualResetEvent(initialState: false)) 194using var startedMre = new ManualResetEvent(initialState: false); 195using var finishedMre = new ManualResetEvent(initialState: false); 233using var startedMre = new ManualResetEvent(initialState: false); 234using var finishedMre = new ManualResetEvent(initialState: false); 330using var readyMre = new ManualResetEvent(initialState: false);
Wasm.Performance.Driver (1)
Program.cs (1)
298var isDone = new ManualResetEvent(false);