Пример #1
0
        private void Init(string dirPath, string fileName, string fileNamePostFix)
        {
            Locker = new LockObject <object>();

            MinMessageType = LogMessageTypeEnum.None;

            DirPath  = dirPath;
            FileName = fileName + fileNamePostFix + "." + Globals.LogExtention;
        }
Пример #2
0
 internal static LockTicket <T> Create(LockObject <T> lockObject, LockTypeEnum lockType, TimeSpan timeout)
 {
     return(TryLock(lockObject.Locker, lockType, ref timeout) ? new LockTicket <T>(lockObject, lockType) : null);
 }
Пример #3
0
 private LockTicket(LockObject <T> lockObject, LockTypeEnum lockType)
     : base(lockObject.Locker, lockType)
 {
     LockObject = lockObject;
 }