Class SilverbackBuilderAddSequenceWriterExtensions
Adds the AddSequenceWriter methods to the ISilverbackBuilder.
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Integration.dll
Syntax
public static class SilverbackBuilderAddSequenceWriterExtensions
Methods
| Improve this doc View sourceAddSingletonSequenceWriter(ISilverbackBuilder, ISequenceWriter)
Adds a singleton sequence writer with an instance specified in
implementationInstance
to the IServiceCollection.
Declaration
public static ISilverbackBuilder AddSingletonSequenceWriter(this ISilverbackBuilder silverbackBuilder, ISequenceWriter implementationInstance)
Parameters
| Type | Name | Description |
|---|---|---|
| ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
| ISequenceWriter | implementationInstance | The instance of the service. |
Returns
| Type | Description |
|---|---|
| ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddSingletonSequenceWriter(ISilverbackBuilder, Func<IServiceProvider, ISequenceWriter>)
Adds a singleton sequence writer with a factory specified in implementationFactory
to
the IServiceCollection.
Declaration
public static ISilverbackBuilder AddSingletonSequenceWriter(this ISilverbackBuilder silverbackBuilder, Func<IServiceProvider, ISequenceWriter> implementationFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
| Func<IServiceProvider, ISequenceWriter> | implementationFactory | The factory that creates the service. |
Returns
| Type | Description |
|---|---|
| ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddSingletonSequenceWriter(ISilverbackBuilder, Type)
Adds a singleton sequence writer of the type specified in writerType to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddSingletonSequenceWriter(this ISilverbackBuilder silverbackBuilder, Type writerType)
Parameters
| Type | Name | Description |
|---|---|---|
| ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
| Type | writerType | The type of the writer to register and the implementation to use. |
Returns
| Type | Description |
|---|---|
| ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddSingletonSequenceWriter<TWriter>(ISilverbackBuilder)
Adds a singleton sequence writer of the type specified in TWriter to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddSingletonSequenceWriter<TWriter>(this ISilverbackBuilder silverbackBuilder) where TWriter : class, ISequenceWriter
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 |
|---|---|
| TWriter | The type of the writer to add. |
AddTransientSequenceWriter(ISilverbackBuilder, Func<IServiceProvider, ISequenceWriter>)
Adds a transient sequence writer with a factory specified in implementationFactory
to
the IServiceCollection.
Declaration
public static ISilverbackBuilder AddTransientSequenceWriter(this ISilverbackBuilder silverbackBuilder, Func<IServiceProvider, ISequenceWriter> implementationFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
| Func<IServiceProvider, ISequenceWriter> | implementationFactory | The factory that creates the service. |
Returns
| Type | Description |
|---|---|
| ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddTransientSequenceWriter(ISilverbackBuilder, Type)
Adds a transient sequence writer of the type specified in writerType to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddTransientSequenceWriter(this ISilverbackBuilder silverbackBuilder, Type writerType)
Parameters
| Type | Name | Description |
|---|---|---|
| ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
| Type | writerType | The type of the writer to register and the implementation to use. |
Returns
| Type | Description |
|---|---|
| ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddTransientSequenceWriter<TWriter>(ISilverbackBuilder)
Adds a transient sequence writer of the type specified in TWriter to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddTransientSequenceWriter<TWriter>(this ISilverbackBuilder silverbackBuilder) where TWriter : class, ISequenceWriter
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 |
|---|---|
| TWriter | The type of the writer to add. |