namespace BotSharp.Abstraction.Infrastructures; public interface IDistributedLocker { bool Lock(string resource, Action action, int timeout = 30); Task LockAsync(string resource, Func action, int timeout = 30); }