コード例 #1
0
        public async Task UndoAsync()
        {
            await _referenceHandler.AddReferenceAsync(_selectedConfiguredProject, _itemSpecification);

            await _referenceHandler.SetAttributes(_selectedConfiguredProject, _itemSpecification,
                                                  _projectPropertiesValues);
        }
コード例 #2
0
        public async Task <bool> RevertAsync(CancellationToken cancellationToken)
        {
            await _referenceHandler.AddReferenceAsync(_selectedConfiguredProject, _itemSpecification);

            if (_projectPropertiesValues != null)
            {
                await _referenceHandler.SetAttributesAsync(_selectedConfiguredProject, _itemSpecification, _projectPropertiesValues);
            }

            return(true);
        }