C# Class withSIX.Sync.Core.Repositories.RepositoryFactory

Mostra file Open project: SIXNetworks/withSIX.Desktop

Public Methods

Method Description
HandlePackageRequirements ( IAbsoluteDirectoryPath workPath, Repository repository ) : void
HandlePathRequirements ( IAbsoluteDirectoryPath workPath, Repository repository ) : void
HandleRepositoryRequirements ( IAbsoluteDirectoryPath repoPath ) : void
Init ( IAbsoluteDirectoryPath directory, RepositoryOperationMode mode = null ) : Repository
IsEmpty ( IAbsoluteDirectoryPath directory ) : bool
OpenRepositoryWithRetry ( IAbsoluteDirectoryPath path, bool createWhenNotExisting = false, System.Action failAction = null ) : Repository

Private Methods

Method Description
CheckFileClosed ( string path ) : bool
ConfirmEmpty ( IAbsoluteDirectoryPath directory ) : void
ConfirmMultiPackagePath ( IAbsoluteDirectoryPath workPath, Repository repository ) : void
ConfirmNotRootPath ( IAbsoluteDirectoryPath path ) : void
ConfirmNotRootedInAnotherRepository ( IAbsoluteDirectoryPath repoPath ) : void
ConfirmSinglePackagePath ( IAbsoluteDirectoryPath workPath, Repository repository ) : void
ConfirmWorkingFolderNotRootedInRepository ( IAbsoluteDirectoryPath workPath, Repository repository ) : void
ShouldContinueChecking ( EventWaitHandle autoResetEvent, string pathS ) : bool
UnlockTimer ( IAbsoluteFilePath path, EventWaitHandle autoResetEvent ) : Timer

Method Details

HandlePackageRequirements() public method

public HandlePackageRequirements ( IAbsoluteDirectoryPath workPath, Repository repository ) : void
workPath IAbsoluteDirectoryPath
repository Repository
return void

HandlePathRequirements() public method

public HandlePathRequirements ( IAbsoluteDirectoryPath workPath, Repository repository ) : void
workPath IAbsoluteDirectoryPath
repository Repository
return void

HandleRepositoryRequirements() public method

public HandleRepositoryRequirements ( IAbsoluteDirectoryPath repoPath ) : void
repoPath IAbsoluteDirectoryPath
return void

Init() public method

public Init ( IAbsoluteDirectoryPath directory, RepositoryOperationMode mode = null ) : Repository
directory IAbsoluteDirectoryPath
mode RepositoryOperationMode
return Repository

IsEmpty() public static method

public static IsEmpty ( IAbsoluteDirectoryPath directory ) : bool
directory IAbsoluteDirectoryPath
return bool

OpenRepositoryWithRetry() public method

public OpenRepositoryWithRetry ( IAbsoluteDirectoryPath path, bool createWhenNotExisting = false, System.Action failAction = null ) : Repository
path IAbsoluteDirectoryPath
createWhenNotExisting bool
failAction System.Action
return Repository