2022-05-03 10:32:31 +00:00
|
|
|
using Elsa.Options;
|
|
|
|
|
using Elsa.Persistence.Options;
|
2022-01-04 08:42:12 +00:00
|
|
|
|
|
|
|
|
namespace Elsa.Persistence.Extensions;
|
|
|
|
|
|
|
|
|
|
public static class ServiceCollectionExtensions
|
|
|
|
|
{
|
2022-05-03 14:17:20 +00:00
|
|
|
public static ElsaOptionsConfigurator ConfigurePersistence(this ElsaOptionsConfigurator configurator, Action<PersistenceOptions>? configure = default)
|
2022-01-04 08:42:12 +00:00
|
|
|
{
|
2022-05-03 10:32:31 +00:00
|
|
|
configurator.Configure(() => new PersistenceOptions(configurator), configure);
|
|
|
|
|
return configurator;
|
2022-01-04 08:42:12 +00:00
|
|
|
}
|
|
|
|
|
}
|