Class ClientBase
Base class for client-side stubs.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Grpc.Core
Assembly: Grpc.Core.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(Channel)
Initializes a new instance of ClientBase
class.
Declaration
public ClientBase(Channel channel)
Parameters
Type | Name | Description |
---|---|---|
Channel | 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 |