Class InvokerBuilderExtensions
- Namespace
- IceRpc.Extensions.DependencyInjection
- Assembly
- IceRpc.dll
Provides extension methods for IInvokerBuilder to add the last invoker of an invocation pipeline or to add a middleware that sets a feature.
public static class InvokerBuilderExtensions
- Inheritance
-
InvokerBuilderExtensions
- Inherited Members
Methods
Into<TService>(IInvokerBuilder)
Sets the last invoker of the invocation pipeline to be a DI service managed by the service provider.
public static IInvokerBuilder Into<TService>(this IInvokerBuilder builder) where TService : IInvoker
Parameters
builderIInvokerBuilderThe builder being configured.
Returns
- IInvokerBuilder
This builder.
Type Parameters
TServiceThe type of the DI service.
UseFeature<TFeature>(IInvokerBuilder, TFeature)
Adds an interceptor that sets a feature in all requests.
public static IInvokerBuilder UseFeature<TFeature>(this IInvokerBuilder builder, TFeature feature)
Parameters
builderIInvokerBuilderThe builder being configured.
featureTFeatureThe value of the feature to set.
Returns
- IInvokerBuilder
The builder.
Type Parameters
TFeatureThe type of the feature.