Table of Contents

Class EntityFrameworkLockSettingsBuilder

Namespace
Silverback.Lock
Assembly
Silverback.Storage.EntityFramework.dll
public class EntityFrameworkLockSettingsBuilder : IDistributedLockSettingsImplementationBuilder
Inheritance
EntityFrameworkLockSettingsBuilder
Implements
Inherited Members

Constructors

EntityFrameworkLockSettingsBuilder(string, Type, Func<IServiceProvider, ISilverbackContext?, DbContext>)

Initializes a new instance of the EntityFrameworkLockSettingsBuilder class.

public EntityFrameworkLockSettingsBuilder(string lockName, Type dbContextType, Func<IServiceProvider, ISilverbackContext?, DbContext> dbContextFactory)

Parameters

lockName string

The name of the lock.

dbContextType Type

The type of the DbContext to be used to access the database.

dbContextFactory Func<IServiceProvider, ISilverbackContext, DbContext>

The factory method that creates the DbContext instance.

Methods

Build()

Builds the settings instance.

public DistributedLockSettings Build()

Returns

DistributedLockSettings

The DistributedLockSettings.