C# Класс SonarLint.VisualStudio.Integration.SourceControlledFileSystem

A general helper class that deals with all the various source control systems integrated with VS (without using any SCC specific APIs). The idea is to checkout files (and notify that about to create new files) by using the IVsQueryEditQuerySave2 service which will in turn notify the source control system and will delegate the rest of the work to it (i.e. checking it out).
Наследование: ISourceControlledFileSystem
Показать файл Открыть проект

Открытые методы

Метод Описание
FileExistOrQueuedToBeWritten ( string filePath ) : bool
QueueFileWrite ( string filePath, Func fileWriteOperation ) : void
SourceControlledFileSystem ( IServiceProvider serviceProvider ) : Microsoft.VisualStudio
WriteQueuedFiles ( ) : bool

Приватные методы

Метод Описание
CheckoutForEdit ( ) : bool
CheckoutForSave ( ) : bool
IFileSystem ( string path ) : bool
IFileSystem ( string path ) : void
SourceControlledFileSystem ( IServiceProvider serviceProvider, IFileSystem fileSystem ) : Microsoft.VisualStudio

Описание методов

FileExistOrQueuedToBeWritten() публичный Метод

public FileExistOrQueuedToBeWritten ( string filePath ) : bool
filePath string
Результат bool

QueueFileWrite() публичный Метод

public QueueFileWrite ( string filePath, Func fileWriteOperation ) : void
filePath string
fileWriteOperation Func
Результат void

SourceControlledFileSystem() публичный Метод

public SourceControlledFileSystem ( IServiceProvider serviceProvider ) : Microsoft.VisualStudio
serviceProvider IServiceProvider
Результат Microsoft.VisualStudio

WriteQueuedFiles() публичный Метод

public WriteQueuedFiles ( ) : bool
Результат bool