Class ClientBase
Base class for client-side stubs.
Namespace: Grpc.Core
Assembly: Grpc.Core.Api.dll
Syntax
public abstract class ClientBase : object
Constructors
ClientBase()
Initializes a new instance of ClientBase
class that
throws NotImplementedException
upon invocation of any RPC.
This constructor is only provided to allow creation of test doubles
for client classes (e.g. mocking requires a parameterless constructor).
Declaration
protected ClientBase()
ClientBase(CallInvoker)
Initializes a new instance of ClientBase
class.
Declaration
public ClientBase(CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
CallInvoker | callInvoker | The |
ClientBase(ChannelBase)
Initializes a new instance of ClientBase
class.
Declaration
public ClientBase(ChannelBase channel)
Parameters
Type | Name | Description |
---|---|---|
ChannelBase | channel | The channel to use for remote call invocation. |
ClientBase(ClientBase.ClientBaseConfiguration)
Initializes a new instance of ClientBase
class.
Declaration
protected ClientBase(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration | The configuration. |
Properties
CallInvoker
Gets the call invoker.
Declaration
protected CallInvoker CallInvoker { get; }
Property Value
Type | Description |
---|---|
CallInvoker |