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