コード例 #1
0
ファイル: FolderBlueprint.cs プロジェクト: hach-que/Allocator
 public void Deallocate()
 {
     if (_folderLease == null) return;
     var lease = _folderLease;
     _folderLease = null;
     lease.Release();
     LeasedOut = false;
 }
コード例 #2
0
ファイル: FolderBlueprint.cs プロジェクト: hach-que/Allocator
 public async Task<ILease> Lease(IAllocator allocator, Specification spec)
 {
     LeasedOut = true;
     _folderLease = new FolderLease(this, Directory);
     return _folderLease;
 }