private RenameItems ( ProjectItemElement>.Dictionary |
||
items | ProjectItemElement>.Dictionary | |
itemsToRename | string>.IReadOnlyDictionary | |
access | ProjectWriteLockReleaser | |
return | Task |
private async Task RenameItems(Dictionary<string, ProjectItemElement> items, IReadOnlyDictionary<string, string> itemsToRename, ProjectWriteLockReleaser access) {
await access.CheckoutAsync(itemsToRename.Keys);
foreach (var kvp in itemsToRename) {
ProjectItemElement item;
if (items.TryGetValue(kvp.Key, out item)) {
items.Remove(kvp.Key);
item.Include = kvp.Value;
items[kvp.Value] = item;
}
}
}
FileSystemMirroringProject::RenameItems ( ProjectItemElement>.Dictionary |