Table of Contents

Class RpcTargetMetadata.InterfaceCollection

Namespace
StreamJsonRpc
Assembly
StreamJsonRpc.dll

Represents a collection of interface types associated with a primary interface for an RPC target. Provides enumeration and management of the primary interface and its base interfaces.

public class RpcTargetMetadata.InterfaceCollection : IEnumerable<Type>, IEnumerable
Inheritance
RpcTargetMetadata.InterfaceCollection
Implements
Inherited Members
Extension Methods

Remarks

This class is typically used to track and expose the set of interfaces implemented by an RPC target, ensuring that all relevant contract interfaces are available for reflection or invocation scenarios.

Constructors

InterfaceCollection(Type)

Initializes a new instance of the RpcTargetMetadata.InterfaceCollection class.

public InterfaceCollection(Type primaryInterface)

Parameters

primaryInterface Type

The primary RPC target interface.

Remarks

After construction, all interfaces that the primaryInterface derives from must be added using the Add(Type) method.

Use the Create(Type) factory method to automate full initialization of this collection, at the cost of a less trimmable application.

Methods

Add(Type)

Adds an interface to the set of base interfaces for this RPC target.

public void Add(Type iface)

Parameters

iface Type

The interface type to add. Must be an interface from which the primary interface derives. Cannot be null.

GetEnumerator()

public IEnumerator<Type> GetEnumerator()

Returns

IEnumerator<Type>