C# Class Grpc.Core.Internal.ChannelSafeHandle

grpc_channel from
Inheritance: Grpc.Core.Internal.SafeHandleZeroIsInvalid
Show file Open project: grpc/grpc Class Usage Examples

Public Methods

Method Description
CheckConnectivityState ( bool tryToConnect ) : ChannelState
CreateCall ( CallSafeHandle parentCall, ContextPropagationFlags propagationMask, CompletionQueueSafeHandle cq, string method, string host, Grpc.Core.Internal.Timespec deadline, Grpc.Core.Internal.CallCredentialsSafeHandle credentials ) : CallSafeHandle
CreateInsecure ( string target, Grpc.Core.Internal.ChannelArgsSafeHandle channelArgs ) : ChannelSafeHandle
CreateSecure ( Grpc.Core.Internal.ChannelCredentialsSafeHandle credentials, string target, Grpc.Core.Internal.ChannelArgsSafeHandle channelArgs ) : ChannelSafeHandle
GetTarget ( ) : string
WatchConnectivityState ( ChannelState lastObservedState, Grpc.Core.Internal.Timespec deadline, CompletionQueueSafeHandle cq, BatchCompletionDelegate callback ) : void

Protected Methods

Method Description
ReleaseHandle ( ) : bool

Private Methods

Method Description
ChannelSafeHandle ( ) : System

Method Details

CheckConnectivityState() public method

public CheckConnectivityState ( bool tryToConnect ) : ChannelState
tryToConnect bool
return ChannelState

CreateCall() public method

public CreateCall ( CallSafeHandle parentCall, ContextPropagationFlags propagationMask, CompletionQueueSafeHandle cq, string method, string host, Grpc.Core.Internal.Timespec deadline, Grpc.Core.Internal.CallCredentialsSafeHandle credentials ) : CallSafeHandle
parentCall CallSafeHandle
propagationMask ContextPropagationFlags
cq CompletionQueueSafeHandle
method string
host string
deadline Grpc.Core.Internal.Timespec
credentials Grpc.Core.Internal.CallCredentialsSafeHandle
return CallSafeHandle

CreateInsecure() public static method

public static CreateInsecure ( string target, Grpc.Core.Internal.ChannelArgsSafeHandle channelArgs ) : ChannelSafeHandle
target string
channelArgs Grpc.Core.Internal.ChannelArgsSafeHandle
return ChannelSafeHandle

CreateSecure() public static method

public static CreateSecure ( Grpc.Core.Internal.ChannelCredentialsSafeHandle credentials, string target, Grpc.Core.Internal.ChannelArgsSafeHandle channelArgs ) : ChannelSafeHandle
credentials Grpc.Core.Internal.ChannelCredentialsSafeHandle
target string
channelArgs Grpc.Core.Internal.ChannelArgsSafeHandle
return ChannelSafeHandle

GetTarget() public method

public GetTarget ( ) : string
return string

ReleaseHandle() protected method

protected ReleaseHandle ( ) : bool
return bool

WatchConnectivityState() public method

public WatchConnectivityState ( ChannelState lastObservedState, Grpc.Core.Internal.Timespec deadline, CompletionQueueSafeHandle cq, BatchCompletionDelegate callback ) : void
lastObservedState ChannelState
deadline Grpc.Core.Internal.Timespec
cq CompletionQueueSafeHandle
callback BatchCompletionDelegate
return void