Class ClientBase
Base class for client-side stubs.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Grpc.Core
Assembly: Grpc.Core.Api.dll
Syntax
public abstract class ClientBase
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 |