Class SilverbackBuilderMemoryExtensions
Adds the Silverback.Storage.Memory specific methods to the SilverbackBuilder.
Inherited Members
Namespace: Silverback.Configuration
Assembly: Silverback.Storage.Memory.dll
Syntax
public static class SilverbackBuilderMemoryExtensions
Methods
AddInMemoryLock(SilverbackBuilder)
Adds the in-memory lock.
Declaration
public static SilverbackBuilder AddInMemoryLock(this SilverbackBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
| SilverbackBuilder | builder | The SilverbackBuilder that references the IServiceCollection to add the services to. |
Returns
| Type | Description |
|---|---|
| SilverbackBuilder | The SilverbackBuilder so that additional calls can be chained. |
UseInMemoryLock(SilverbackBuilder)
Replaces all distributed locks with an in-memory version that is suitable for testing purposes only.
Declaration
public static SilverbackBuilder UseInMemoryLock(this SilverbackBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
| SilverbackBuilder | builder | The SilverbackBuilder that references the IServiceCollection to add the services to. |
Returns
| Type | Description |
|---|---|
| SilverbackBuilder | The SilverbackBuilder so that additional calls can be chained. |