private async Task <TargetContext> CreateGraphNode(RestoreOperations restoreOperations, RestoreContext context, LibraryRange libraryRange, Func <object, bool> predicate) { var node = await restoreOperations.CreateGraphNode(context, libraryRange, predicate); return(new TargetContext { RestoreContext = context, Root = node }); }
private async Task <TargetContext> CreateGraphNode(RestoreOperations restoreOperations, RestoreContext context, LibraryRange libraryRange, Func <object, bool> predicate) { var walkStopwatch = Stopwatch.StartNew(); var node = await restoreOperations.CreateGraphNode(context, libraryRange, predicate); Reports.WriteVerbose($" Walked graph for {context.FrameworkName}/{context.RuntimeName} in {walkStopwatch.ElapsedMilliseconds:0.00}ms"); walkStopwatch.Stop(); return(new TargetContext { RestoreContext = context, Root = node }); }