Files
DP44/Common/DTS.Common.Import/.svn/pristine/c1/c1e6f8a4a49f5b77fd8e1395f4ef18324be8091f.svn-base
2026-04-17 14:55:32 -04:00

20 lines
770 B
Plaintext

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);
}
}