コード例 #1
0
        public static Task <IDisposable> TryLockAsync(this IDirectoryAccessor directoryAccessor)
        {
            if (directoryAccessor == null)
            {
                throw new ArgumentNullException(nameof(directoryAccessor));
            }

            return(FileLock.TryCreateAsync(directoryAccessor));
        }
コード例 #2
0
 public Task <IDisposable> TryLockAsync()
 {
     return(FileLock.TryCreateAsync(this));
 }