15 references to LazyInitializer
mscorlib (6)
system\io\stream.cs (2)
67
return
LazyInitializer
.EnsureInitialized(ref _asyncActiveSemaphore, () => new SemaphoreSlim(1, 1));
1025
return
LazyInitializer
.EnsureInitialized(ref _waitHandle, () => new ManualResetEvent(true));
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
159
return
LazyInitializer
.EnsureInitialized(ref m_completionState, () => new CompletionState());
system\threading\Tasks\Parallel.cs (2)
304
LazyInitializer
.EnsureInitialized<ConcurrentQueue<Exception>>(ref exceptionQ, () => { return new ConcurrentQueue<Exception>(); });
322
LazyInitializer
.EnsureInitialized<ConcurrentQueue<Exception>>(ref exceptionQ, () => { return new ConcurrentQueue<Exception>(); });
system\threading\Tasks\Task.cs (1)
1505
return
LazyInitializer
.EnsureInitialized<ContingentProperties>(ref m_contingentProperties, s_createContingentProperties);
System.Web (9)
Hosting\IIS7WorkerRequest.cs (2)
876
LazyInitializer
.EnsureInitialized(ref _clientDisconnectTokenHelper, () => new CancellationTokenHelper(canceled: !isClientConnected));
892
CancellationTokenHelper helper =
LazyInitializer
.EnsureInitialized(ref _clientDisconnectTokenHelper, () => new CancellationTokenHelper(canceled: true));
HttpContext.cs (3)
1659
CancellationTokenHelper helper =
LazyInitializer
.EnsureInitialized(ref _timeoutCancellationTokenHelper, () => new CancellationTokenHelper(canceled: false));
1696
CancellationTokenHelper helper =
LazyInitializer
.EnsureInitialized(ref _timeoutCancellationTokenHelper, () => CancellationTokenHelper.StaticDisposed);
1780
CancellationTokenHelper helper =
LazyInitializer
.EnsureInitialized(ref _timeoutCancellationTokenHelper, () => new CancellationTokenHelper(canceled: true));
ModelBinding\CookieValueProvider.cs (2)
89
get { return
LazyInitializer
.EnsureInitialized(ref _validatedResult, _validatedResultAccessor); }
93
get { return
LazyInitializer
.EnsureInitialized(ref _unvalidatedResult, _unvalidatedResultAccessor); }
ModelBinding\NameValueCollectionValueProvider.cs (2)
86
get { return
LazyInitializer
.EnsureInitialized(ref _validatedResult, _validatedResultAccessor); }
90
get { return
LazyInitializer
.EnsureInitialized(ref _unvalidatedResult, _unvalidatedResultAccessor); }