Home
last modified time | relevance | path

Searched refs:CheckArgument (Results 1 – 19 of 19) sorted by relevance

/external/grpc-grpc/src/csharp/Grpc.Core/
DGrpcEnvironment.cs129 …GrpcPreconditions.CheckArgument(registeredChannels.Remove(channel), "Channel not found in the regi… in UnregisterChannel()
147 …GrpcPreconditions.CheckArgument(registeredServers.Remove(server), "Server not found in the registe… in UnregisterServer()
210 … GrpcPreconditions.CheckArgument(threadCount > 0, "threadCount needs to be a positive number"); in SetThreadPoolSize()
227 …GrpcPreconditions.CheckArgument(completionQueueCount > 0, "threadCount needs to be a positive numb… in SetCompletionQueueCount()
264 …GrpcPreconditions.CheckArgument(sharedCapacity >= 0, "Shared capacity needs to be a non-negative n… in SetBatchContextPoolParams()
265 …GrpcPreconditions.CheckArgument(threadLocalCapacity >= 0, "Thread local capacity needs to be a non… in SetBatchContextPoolParams()
284 …GrpcPreconditions.CheckArgument(sharedCapacity >= 0, "Shared capacity needs to be a non-negative n… in SetRequestCallContextPoolParams()
285 …GrpcPreconditions.CheckArgument(threadLocalCapacity >= 0, "Thread local capacity needs to be a non… in SetRequestCallContextPoolParams()
DMetadata.cs249 GrpcPreconditions.CheckArgument(HasBinaryHeaderSuffix(this.key), in Entry()
265 GrpcPreconditions.CheckArgument(!HasBinaryHeaderSuffix(this.key), in Entry()
362 GrpcPreconditions.CheckArgument(ValidKeyRegex.IsMatch(normalized), in NormalizeKey()
DCallOptions.cs243 GrpcPreconditions.CheckArgument(!newOptions.deadline.HasValue, in Normalize()
249 GrpcPreconditions.CheckArgument(!newOptions.cancellationToken.CanBeCanceled, in Normalize()
DCallCredentials.cs99 …GrpcPreconditions.CheckArgument(credentials.Length >= 2, "Composite credentials object can only be… in CompositeCallCredentials()
DServerCredentials.cs78 GrpcPreconditions.CheckArgument(this.keyCertificatePairs.Count > 0, in SslServerCredentials()
DChannelCredentials.cs197 …GrpcPreconditions.CheckArgument(channelCredentials.IsComposable, "Supplied channel credentials do … in CompositeChannelCredentials()
DChannel.cs152 GrpcPreconditions.CheckArgument(lastObservedState != ChannelState.Shutdown, in TryWaitForStateChangedAsync()
DServer.cs136 GrpcPreconditions.CheckArgument(value > 0);
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DStressTestClient.cs84 GrpcPreconditions.CheckArgument(options.NumChannelsPerServer > 0); in Run()
85 GrpcPreconditions.CheckArgument(options.NumStubsPerChannel > 0); in Run()
88 …GrpcPreconditions.CheckArgument(serverAddresses.Length > 0, "You need to provide at least one serv… in Run()
91 …GrpcPreconditions.CheckArgument(testCases.Count > 0, "You need to provide at least one test case"); in Run()
204 GrpcPreconditions.CheckArgument(parts.Length == 2, "Malformed test_cases option."); in ParseWeightedTestCases()
DClientRunners.cs89 … GrpcPreconditions.CheckArgument(clientChannels > 0, "clientChannels needs to be at least 1."); in CreateChannels()
90 …GrpcPreconditions.CheckArgument(serverTargets.Count() > 0, "at least one serverTarget needs to be … in CreateChannels()
139 … GrpcPreconditions.CheckArgument(outstandingRpcsPerChannel > 0, "outstandingRpcsPerChannel"); in ClientRunnerImpl()
311 …GrpcPreconditions.CheckArgument(clientType == ClientType.AsyncClient, "Generic client only support… in RunClientAsync()
312 …GrpcPreconditions.CheckArgument(rpcType == RpcType.Streaming, "Generic client only supports stream… in RunClientAsync()
319 …GrpcPreconditions.CheckArgument(rpcType == RpcType.Unary, "Sync client can only be used for Unary … in RunClientAsync()
DHistogram.cs54 GrpcPreconditions.CheckArgument(resolution > 0); in Histogram()
55 GrpcPreconditions.CheckArgument(maxPossible > 0); in Histogram()
119 …GrpcPreconditions.CheckArgument(mergeTo.Bucket.Count == 0 || mergeTo.Bucket.Count == buckets.Lengt… in GetSnapshotUnsafe()
DServerRunners.cs67 GrpcPreconditions.CheckArgument(config.PayloadConfig == null, in CreateStarted()
/external/grpc-grpc/src/csharp/Grpc.Core/Utils/
DGrpcPreconditions.cs32 public static void CheckArgument(bool condition) in CheckArgument() method in Grpc.Core.Utils.GrpcPreconditions
45 public static void CheckArgument(bool condition, string errorMessage) in CheckArgument() method in Grpc.Core.Utils.GrpcPreconditions
/external/grpc-grpc/src/csharp/Grpc.Core/Internal/
DDefaultObjectPool.cs56 GrpcPreconditions.CheckArgument(sharedCapacity >= 0); in DefaultObjectPool()
57 GrpcPreconditions.CheckArgument(threadLocalCapacity >= 0); in DefaultObjectPool()
DServerCredentialsSafeHandle.cs37 …GrpcPreconditions.CheckArgument(keyCertPairCertChainArray.Length == keyCertPairPrivateKeyArray.Len… in CreateSslCredentials()
DTimespec.cs183 …GrpcPreconditions.CheckArgument(dateTime.Kind == DateTimeKind.Utc, "dateTime needs of kind DateTim… in FromDateTime()
DServerCallHandler.cs69 … GrpcPreconditions.CheckArgument(await requestStream.MoveNext().ConfigureAwait(false)); in HandleCall()
132 … GrpcPreconditions.CheckArgument(await requestStream.MoveNext().ConfigureAwait(false)); in HandleCall()
DUnmanagedLibrary.cs159 …GrpcPreconditions.CheckArgument(libraryPathAlternatives.Length > 0, "libraryPathAlternatives canno… in FirstValidLibraryPath()
DGrpcThreadPool.cs68 GrpcPreconditions.CheckArgument(poolSize >= completionQueueCount, in GrpcThreadPool()