Class DispatcherServiceCollectionExtensions
- Namespace
- IceRpc.Extensions.DependencyInjection
- Assembly
- IceRpc.Extensions.DependencyInjection.dll
Provides an extension method for IServiceCollection to add a dispatcher.
public static class DispatcherServiceCollectionExtensions
- Inheritance
-
DispatcherServiceCollectionExtensions
- Inherited Members
Methods
AddIceRpcDispatcher(IServiceCollection, Action<IDispatcherBuilder>)
Adds an IDispatcher to this service collection.
public static IServiceCollection AddIceRpcDispatcher(this IServiceCollection services, Action<IDispatcherBuilder> configure)
Parameters
servicesIServiceCollectionThe service collection to add services to.
configureAction<IDispatcherBuilder>The action to configure the new dispatcher.
Returns
- IServiceCollection
The service collection.