@ -79,9 +79,9 @@ namespace Grpc.Core.Internal
public AsyncCallBase ( Func < TWrite , byte [ ] > serializer , Func < byte [ ] , TRead > deserializer , GrpcEnvironment environment )
{
this . serializer = Preconditions . CheckNotNull ( serializer ) ;
this . deserializer = Preconditions . CheckNotNull ( deserializer ) ;
this . environment = Preconditions . CheckNotNull ( environment ) ;
this . serializer = Grpc Preconditions. CheckNotNull ( serializer ) ;
this . deserializer = Grpc Preconditions. CheckNotNull ( deserializer ) ;
this . environment = Grpc Preconditions. CheckNotNull ( environment ) ;
}
/// <summary>
@ -91,7 +91,7 @@ namespace Grpc.Core.Internal
{
lock ( myLock )
{
Preconditions . CheckState ( started ) ;
Grpc Preconditions. CheckState ( started ) ;
cancelRequested = true ;
if ( ! disposed )
@ -135,7 +135,7 @@ namespace Grpc.Core.Internal
lock ( myLock )
{
Preconditions . CheckNotNull ( completionDelegate , "Completion delegate cannot be null" ) ;
Grpc Preconditions. CheckNotNull ( completionDelegate , "Completion delegate cannot be null" ) ;
CheckSendingAllowed ( ) ;
call . StartSendMessage ( HandleSendFinished , payload , writeFlags , ! initialMetadataSent ) ;
@ -154,7 +154,7 @@ namespace Grpc.Core.Internal
{
lock ( myLock )
{
Preconditions . CheckNotNull ( completionDelegate , "Completion delegate cannot be null" ) ;
Grpc Preconditions. CheckNotNull ( completionDelegate , "Completion delegate cannot be null" ) ;
CheckReadingAllowed ( ) ;
call . StartReceiveMessage ( HandleReadFinished ) ;
@ -204,22 +204,22 @@ namespace Grpc.Core.Internal
protected void CheckSendingAllowed ( )
{
Preconditions . CheckState ( started ) ;
Grpc Preconditions. CheckState ( started ) ;
CheckNotCancelled ( ) ;
Preconditions . CheckState ( ! disposed ) ;
Grpc Preconditions. CheckState ( ! disposed ) ;
Preconditions . CheckState ( ! halfcloseRequested , "Already halfclosed." ) ;
Preconditions . CheckState ( ! finished , "Already finished." ) ;
Preconditions . CheckState ( sendCompletionDelegate = = null , "Only one write can be pending at a time" ) ;
Grpc Preconditions. CheckState ( ! halfcloseRequested , "Already halfclosed." ) ;
Grpc Preconditions. CheckState ( ! finished , "Already finished." ) ;
Grpc Preconditions. CheckState ( sendCompletionDelegate = = null , "Only one write can be pending at a time" ) ;
}
protected virtual void CheckReadingAllowed ( )
{
Preconditions . CheckState ( started ) ;
Preconditions . CheckState ( ! disposed ) ;
Grpc Preconditions. CheckState ( started ) ;
Grpc Preconditions. CheckState ( ! disposed ) ;
Preconditions . CheckState ( ! readingDone , "Stream has already been closed." ) ;
Preconditions . CheckState ( readCompletionDelegate = = null , "Only one read can be pending at a time" ) ;
Grpc Preconditions. CheckState ( ! readingDone , "Stream has already been closed." ) ;
Grpc Preconditions. CheckState ( readCompletionDelegate = = null , "Only one read can be pending at a time" ) ;
}
protected void CheckNotCancelled ( )