private void Init(string dirPath, string fileName, string fileNamePostFix) { Locker = new LockObject <object>(); MinMessageType = LogMessageTypeEnum.None; DirPath = dirPath; FileName = fileName + fileNamePostFix + "." + Globals.LogExtention; }
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); }
private LockTicket(LockObject <T> lockObject, LockTypeEnum lockType) : base(lockObject.Locker, lockType) { LockObject = lockObject; }