28 references to Contract
Microsoft.CodeAnalysis.InteractiveHost (28)
AsyncLazy`1.cs (9)
114
Contract
.ThrowIfNull(asynchronousComputeFunction);
150
Contract
.ThrowIfTrue(_asynchronousComputationCancellationSource != null &&
154
Contract
.ThrowIfTrue(_requests != null &&
159
Contract
.ThrowIfTrue(_requests != null &&
163
Contract
.ThrowIfTrue(_cachedResult != null &&
168
Contract
.ThrowIfTrue(_asynchronousComputeFunction == null && _synchronousComputeFunction != null);
248
Contract
.ThrowIfNull(_synchronousComputeFunction);
360
Contract
.ThrowIfTrue(_computationActive);
361
Contract
.ThrowIfNull(_asynchronousComputeFunction);
Interactive\Core\InteractiveHost.cs (6)
366
Contract
.ThrowIfNull(code);
381
Contract
.ThrowIfNull(path);
395
Contract
.ThrowIfNull(reference);
404
Contract
.ThrowIfTrue(referenceSearchPaths.IsDefault);
405
Contract
.ThrowIfTrue(sourceSearchPaths.IsDefault);
406
Contract
.ThrowIfNull(baseDirectory);
Interactive\Core\InteractiveHost.LazyRemoteService.cs (1)
115
Contract
.ThrowIfNull(result.InitializationResult);
Interactive\Core\InteractiveHost.Service.cs (3)
183
Contract
.ThrowIfNull(_serviceState, "Service not initialized");
218
Contract
.ThrowIfFalse(args.Length == 2, "Expecting arguments: <pipe name> <client process id>");
508
Contract
.ThrowIfFalse(initializationFilePath == null || PathUtilities.IsAbsolute(initializationFilePath));
Interactive\Core\InteractiveHostOptions.cs (1)
42
Contract
.ThrowIfNull(hostPath);
NonReentrantLock.cs (1)
172
=>
Contract
.ThrowIfFalse(LockHeldByMe());
TaskExtensions.cs (7)
89
Contract
.ThrowIfNull(continuationAction, nameof(continuationAction));
108
Contract
.ThrowIfNull(continuationFunction, nameof(continuationFunction));
122
Contract
.ThrowIfNull(continuationAction, nameof(continuationAction));
154
Contract
.ThrowIfNull(continuationFunction, nameof(continuationFunction));
199
Contract
.ThrowIfNull(continuationFunction, nameof(continuationFunction));
318
Contract
.ThrowIfNull(continuationFunction, nameof(continuationFunction));
381
Contract
.ThrowIfFalse(task.IsCompleted);