klhztrader/KLHZ.Trader.Core.Contracts/Messaging/Dtos/Interfaces/ILockableObject.cs

16 lines
333 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KLHZ.Trader.Core.Contracts.Messaging.Dtos.Interfaces
{
public interface ILockableObject
{
public Task<bool> Lock(TimeSpan duration);
public void Unlock();
}
}