コード例 #1
0
ファイル: Log.cs プロジェクト: dimoniche/Service
        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;
 }