Show / Hide Table of Contents

Class LiteClientBase

Base class for lightweight client-side stubs. All calls are invoked via a CallInvoker. Lite client stubs have no configuration knobs, all configuration is provided by decorating the call invoker. Note: experimental API that can change or be removed without any prior notice.

Inheritance
System.Object
LiteClientBase
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.Api.dll
Syntax
public abstract class LiteClientBase

Constructors

LiteClientBase()

Initializes a new instance of LiteClientBase 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 LiteClientBase()

LiteClientBase(CallInvoker)

Initializes a new instance of ClientBase class.

Declaration
public LiteClientBase(CallInvoker callInvoker)
Parameters
Type Name Description
CallInvoker callInvoker

The CallInvoker for remote call invocation.

Properties

CallInvoker

Gets the call invoker.

Declaration
protected CallInvoker CallInvoker { get; }
Property Value
Type Description
CallInvoker
Back to top