Exemplo n.º 1
0
 public Task <bool> TryUpdateReferenceAsync(
     string projectPath,
     ReferenceUpdate referenceUpdate,
     CancellationToken cancellationToken
     )
 {
     return(_projectSystemReferenceUpdateService.TryUpdateReferenceAsync(
                projectPath,
                referenceUpdate.ToProjectSystemReferenceUpdate(),
                cancellationToken
                ));
 }
        public async Task <bool> TryUpdateReferenceAsync(string projectPath, ReferenceUpdate referenceUpdate, CancellationToken cancellationToken)
        {
            var operation = await _projectSystemReferenceUpdateService.GetUpdateReferenceOperationAsync(projectPath, referenceUpdate.ToProjectSystemReferenceUpdate(), cancellationToken).ConfigureAwait(true);

            if (operation is null)
            {
                return(false);
            }

            return(await operation.ApplyAsync(cancellationToken).ConfigureAwait(true));
        }