Delen via


ServiceJsonRpcDescriptor.AdditionalServiceInterfaces Property

Definition

Gets the set of interfaces that will be added to a generated proxy in addition to the one specified as the type argument to ConstructRpcClient<T>() or GetProxyAsync<T>(ServiceRpcDescriptor, ServiceActivationOptions, CancellationToken).

public System.Collections.Immutable.ImmutableArray<Type>? AdditionalServiceInterfaces { get; }
member this.AdditionalServiceInterfaces : Nullable<System.Collections.Immutable.ImmutableArray<Type>>
Public ReadOnly Property AdditionalServiceInterfaces As Nullable(Of ImmutableArray(Of Type))

Property Value

The default value is null.

Remarks

A null value may signal an implementation of GetProxyAsync<T>(ServiceRpcDescriptor, ServiceActivationOptions, CancellationToken) to supply some default set of optional interfaces based on service registration. Such implementations should honor any non-null value from this property (including an empty array) by not adding any additional interfaces beyond those specified.

Applies to