Files
DP44/Common/DTS.Common.Import/Interfaces/ILockImport.cs
2026-04-17 14:55:32 -04:00

20 lines
770 B
C#

using System.Text;
namespace DTS.Common.Import.Interfaces
{
//FB 36740 Interface to support database locks
public interface ILockImport
{
//Return true if the collection of conteneded has any items
bool Contended { get; }
//Set the database lock for particular import object, empty message should be passed and in case of errors it will be populated. this error message is shared between all
//types and would contain all the errors regarding db locks
void SetLock(ref ImportObject importObject, ref StringBuilder message);
//Free the database lock
void FreeLock(ref ImportObject importObject);
//Steal the database lock
bool StealLock(bool proceed);
}
}