Class SilverbackBuilderAddSequenceReaderExtensions
Adds the AddSequenceReader methods to the ISilverbackBuilder.
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Integration.dll
Syntax
public static class SilverbackBuilderAddSequenceReaderExtensions
Methods
| Improve this doc View sourceAddSingletonSequenceReader(ISilverbackBuilder, ISequenceReader)
Adds a singleton sequence reader with an instance specified in
implementationInstance
to the IServiceCollection.
Declaration
public static ISilverbackBuilder AddSingletonSequenceReader(this ISilverbackBuilder silverbackBuilder, ISequenceReader implementationInstance)
Parameters
| Type | Name | Description |
|---|---|---|
| ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
| ISequenceReader | implementationInstance | The instance of the service. |
Returns
| Type | Description |
|---|---|
| ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddSingletonSequenceReader(ISilverbackBuilder, Func<IServiceProvider, ISequenceReader>)
Adds a singleton sequence reader with a factory specified in implementationFactory
to
the IServiceCollection.
Declaration
public static ISilverbackBuilder AddSingletonSequenceReader(this ISilverbackBuilder silverbackBuilder, Func<IServiceProvider, ISequenceReader> implementationFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
| Func<IServiceProvider, ISequenceReader> | implementationFactory | The factory that creates the service. |
Returns
| Type | Description |
|---|---|
| ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddSingletonSequenceReader(ISilverbackBuilder, Type)
Adds a singleton sequence reader of the type specified in readerType to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddSingletonSequenceReader(this ISilverbackBuilder silverbackBuilder, Type readerType)
Parameters
| Type | Name | Description |
|---|---|---|
| ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
| Type | readerType | The type of the reader to register and the implementation to use. |
Returns
| Type | Description |
|---|---|
| ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddSingletonSequenceReader<TReader>(ISilverbackBuilder)
Adds a singleton sequence reader of the type specified in TReader to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddSingletonSequenceReader<TReader>(this ISilverbackBuilder silverbackBuilder) where TReader : class, ISequenceReader
Parameters
| Type | Name | Description |
|---|---|---|
| ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
Returns
| Type | Description |
|---|---|
| ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
| Name | Description |
|---|---|
| TReader | The type of the reader to add. |
AddTransientSequenceReader(ISilverbackBuilder, Func<IServiceProvider, ISequenceReader>)
Adds a transient sequence reader with a factory specified in implementationFactory
to
the IServiceCollection.
Declaration
public static ISilverbackBuilder AddTransientSequenceReader(this ISilverbackBuilder silverbackBuilder, Func<IServiceProvider, ISequenceReader> implementationFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
| Func<IServiceProvider, ISequenceReader> | implementationFactory | The factory that creates the service. |
Returns
| Type | Description |
|---|---|
| ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddTransientSequenceReader(ISilverbackBuilder, Type)
Adds a transient sequence reader of the type specified in readerType to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddTransientSequenceReader(this ISilverbackBuilder silverbackBuilder, Type readerType)
Parameters
| Type | Name | Description |
|---|---|---|
| ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
| Type | readerType | The type of the reader to register and the implementation to use. |
Returns
| Type | Description |
|---|---|
| ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddTransientSequenceReader<TReader>(ISilverbackBuilder)
Adds a transient sequence reader of the type specified in TReader to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddTransientSequenceReader<TReader>(this ISilverbackBuilder silverbackBuilder) where TReader : class, ISequenceReader
Parameters
| Type | Name | Description |
|---|---|---|
| ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
Returns
| Type | Description |
|---|---|
| ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
| Name | Description |
|---|---|
| TReader | The type of the reader to add. |