Class SilverbackBuilderUseModelExtensions
Adds the UseModel
method to the ISilverbackBuilder.
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Core.Model.dll
Syntax
public static class SilverbackBuilderUseModelExtensions
Methods
| Improve this doc View sourceUseModel(ISilverbackBuilder)
Registers the default messages model from Silverback.Core.Model package and the specific publishers (IEventPublisher, ICommandPublisher and IQueryPublisher ).
Declaration
public static ISilverbackBuilder UseModel(this ISilverbackBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | builder | The ISilverbackBuilder to add the model types to. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |