2021-04-07 10:45:34 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using Medallion.Threading;
|
|
|
|
|
|
using Medallion.Threading.FileSystem;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Elsa
|
|
|
|
|
|
{
|
|
|
|
|
|
public class DistributedLockingOptions
|
|
|
|
|
|
{
|
|
|
|
|
|
public DistributedLockingOptions()
|
|
|
|
|
|
{
|
2021-04-07 12:48:30 +00:00
|
|
|
|
DistributedLockProviderFactory = sp => name => new FileDistributedLock(new DirectoryInfo(Path.GetTempPath()), name);
|
2021-04-07 10:45:34 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Func<IServiceProvider, Func<string, IDistributedLock>> DistributedLockProviderFactory { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|