C# Class withSIX.Sync.Core.Legacy.SixSync.Repository

Inheritance: IEnableLogging
Afficher le fichier Open project: SIXNetworks/withSIX.Desktop Class Usage Examples

Méthodes publiques

Свойство Type Description
ArchiveFormats string[]
Factory RepositoryFactory
IgnoredExtensions string[]
RepoTools RepositoryTools
RsyncableArchiveFormats string[]
TempExtensions string[]

Méthodes publiques

Méthode Description
CleanupZsyncFiles ( ) : void
Commit ( bool changeVersion = true, bool createZsyncFiles = true ) : void
CommitAndPush ( string key = null, Uri host = null ) : void
ConfirmChecksumValidity ( bool localOnly ) : void
ConvertFormat ( string format ) : void
CreateZsyncFile ( string fileName ) : void
DeRegister ( IPublishingApi api, string name, string version, string registerInfo ) : Task
FixWhenMissing ( bool createZsyncFiles, string f ) : void
InitializeConfig ( IAbsoluteDirectoryPath path ) : void
LoadHosts ( ) : void
MovePackPath ( string path, string guid = null ) : void
Pack ( IAbsoluteFilePath file, IAbsoluteFilePath destination = null ) : void
PackWdFile ( bool createZsyncFiles, string change ) : void
ProcessChangedPack ( IStatus status, bool changesOnly ) : void
Push ( string key = null, Uri host = null ) : void
Register ( IPublishingApi api, string name, string version, string registerInfo ) : Task
RemoveIfObsolete ( string>.KeyValuePair pair ) : void
Repository ( IZsyncMake zsyncMake, StatusRepo statusRepo, string folder = "." ) : System
Repository ( IZsyncMake zsyncMake, string folder = "." ) : System
SumChangedPack ( IStatus status ) : void
TryCleanupTmpFiles ( ) : void
TryConfirmChecksumValidity ( bool localOnly ) : void
TryDeleteFile ( FileInfo fi ) : void
TryHandleWd ( IStatus status, bool changesOnly ) : void
TryLoadConfig ( bool fallback ) : void
TryLoadPackVersion ( bool allowPFailure ) : void
TryLoadWDVersion ( ) : void
Update ( Action config = null ) : Task
UpdateVersion ( bool changeVersion, string list, string removed ) : void

Méthodes protégées

Méthode Description
CalcSums ( RepositoryFileType type, bool ignoreDeleted = false ) : string>.Dictionary
ChangedPack ( IStatus status ) : System.Threading.Tasks.Task
ChangedWd ( IStatus status, string change, bool changesOnly ) : void
CheckRepository ( bool checkFormat ) : void
CompareSums ( RepositoryFileType type, int i ) : string[][]
EndOutput ( IStatus status ) : void
FailedOutput ( IStatus status ) : void
FetchRepository ( ) : System.Threading.Tasks.Task
FixGuid ( bool pushIfChanged = true ) : bool
FixMissingPackFiles ( string files, bool createZsyncFiles = true ) : void
FixMissingZsyncFiles ( ) : void
GetNewPackPath ( string path, string guid = null ) : string
GetNewPackPathUnlessEqual ( string path, string guid = null ) : string
GetPackFile ( string fileName ) : IAbsoluteFilePath
GetRsyncFile ( string fileName ) : IAbsoluteFilePath
GetWdFile ( string fileName ) : IAbsoluteFilePath
HandleCase ( ) : void
HandleWd ( string item, bool changesOnly, bool silence = false ) : void
IncludeMatch ( string key, RepositoryFileType type = RepositoryFileType.Wd ) : bool
LoadConfig ( bool fallback = false ) : void
LoadSums ( bool ignoreDeleted = false, bool localOnly = false ) : void
LoadVersions ( bool checkFormat = false, bool allowPFailure = true ) : void
ProcessPackChanges ( IEnumerable wdChanges, bool changesOnly = true ) : Task
ProcessWdChanges ( string differences, bool changesOnly ) : Task
PushFolder ( IAbsoluteDirectoryPath packFolder, Uri host, string>.Dictionary dictionary ) : void
RemovedPack ( string change ) : void
RemovedWd ( string change ) : void
SaveAndReloadConfig ( bool fallback = false ) : void
SaveVersions ( ) : void
StartOutput ( IStatus status ) : void
UpdateRepoInfo ( ) : void
VerifyChecksums ( bool localOnly = false ) : IList>.Tuple

Private Methods

Méthode Description
BuildPublishModel ( string name, string version, string registerInfo ) : PublishModModel
ConfirmMatch ( ) : bool
ConvertRepositoryFormat ( ) : System.Threading.Tasks.Task
CreateStatus ( string file ) : IStatus
DownloadPackChanges ( IEnumerable unchanged, string list, bool changesOnly ) : System.Threading.Tasks.Task
GetChangedSize ( IEnumerable list ) : int
GetChangelog ( ) : string
GetCppInfo ( ) : Tuple
GetFiles ( IAbsoluteDirectoryPath dir ) : IEnumerable
GetLicense ( ) : string
GetPackSpec ( IStatus status ) : Spec
GetReadme ( ) : string
HandleBackupRepositoryFile ( IAbsoluteFilePath repFile, IAbsoluteFilePath bkpFile ) : void
HandleOpts ( SyncOptions opts, bool save = true ) : bool
ProcessPackChange ( string item, bool changesOnly ) : System.Threading.Tasks.Task
TryChangedPack ( IStatus status ) : Task
TryFetchRepo ( IAbsoluteFilePath bkpFile, IAbsoluteFilePath repFile ) : Task
TryProcessPackChange ( IStatus status, bool changesOnly ) : Task
Update ( SyncOptions opts ) : Task
UpdateRepository ( ) : Task

Method Details

CalcSums() protected méthode

protected CalcSums ( RepositoryFileType type, bool ignoreDeleted = false ) : string>.Dictionary
type RepositoryFileType
ignoreDeleted bool
Résultat string>.Dictionary

ChangedPack() protected méthode

protected ChangedPack ( IStatus status ) : System.Threading.Tasks.Task
status IStatus
Résultat System.Threading.Tasks.Task

ChangedWd() protected méthode

protected ChangedWd ( IStatus status, string change, bool changesOnly ) : void
status IStatus
change string
changesOnly bool
Résultat void

CheckRepository() protected méthode

protected CheckRepository ( bool checkFormat ) : void
checkFormat bool
Résultat void

CleanupZsyncFiles() public méthode

public CleanupZsyncFiles ( ) : void
Résultat void

Commit() public méthode

public Commit ( bool changeVersion = true, bool createZsyncFiles = true ) : void
changeVersion bool
createZsyncFiles bool
Résultat void

CommitAndPush() public méthode

public CommitAndPush ( string key = null, Uri host = null ) : void
key string
host System.Uri
Résultat void

CompareSums() protected méthode

protected CompareSums ( RepositoryFileType type, int i ) : string[][]
type RepositoryFileType
i int
Résultat string[][]

ConfirmChecksumValidity() public méthode

public ConfirmChecksumValidity ( bool localOnly ) : void
localOnly bool
Résultat void

ConvertFormat() public méthode

public ConvertFormat ( string format ) : void
format string
Résultat void

CreateZsyncFile() public méthode

public CreateZsyncFile ( string fileName ) : void
fileName string
Résultat void

DeRegister() public méthode

public DeRegister ( IPublishingApi api, string name, string version, string registerInfo ) : Task
api IPublishingApi
name string
version string
registerInfo string
Résultat Task

EndOutput() protected méthode

protected EndOutput ( IStatus status ) : void
status IStatus
Résultat void

FailedOutput() protected méthode

protected FailedOutput ( IStatus status ) : void
status IStatus
Résultat void

FetchRepository() protected méthode

protected FetchRepository ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

FixGuid() protected méthode

protected FixGuid ( bool pushIfChanged = true ) : bool
pushIfChanged bool
Résultat bool

FixMissingPackFiles() protected méthode

protected FixMissingPackFiles ( string files, bool createZsyncFiles = true ) : void
files string
createZsyncFiles bool
Résultat void

FixMissingZsyncFiles() protected méthode

protected FixMissingZsyncFiles ( ) : void
Résultat void

FixWhenMissing() public méthode

public FixWhenMissing ( bool createZsyncFiles, string f ) : void
createZsyncFiles bool
f string
Résultat void

GetNewPackPath() protected méthode

protected GetNewPackPath ( string path, string guid = null ) : string
path string
guid string
Résultat string

GetNewPackPathUnlessEqual() protected méthode

protected GetNewPackPathUnlessEqual ( string path, string guid = null ) : string
path string
guid string
Résultat string

GetPackFile() protected méthode

protected GetPackFile ( string fileName ) : IAbsoluteFilePath
fileName string
Résultat IAbsoluteFilePath

GetRsyncFile() protected méthode

protected GetRsyncFile ( string fileName ) : IAbsoluteFilePath
fileName string
Résultat IAbsoluteFilePath

GetWdFile() protected méthode

protected GetWdFile ( string fileName ) : IAbsoluteFilePath
fileName string
Résultat IAbsoluteFilePath

HandleCase() protected méthode

protected HandleCase ( ) : void
Résultat void

HandleWd() protected méthode

protected HandleWd ( string item, bool changesOnly, bool silence = false ) : void
item string
changesOnly bool
silence bool
Résultat void

IncludeMatch() protected méthode

protected IncludeMatch ( string key, RepositoryFileType type = RepositoryFileType.Wd ) : bool
key string
type RepositoryFileType
Résultat bool

InitializeConfig() public static méthode

public static InitializeConfig ( IAbsoluteDirectoryPath path ) : void
path IAbsoluteDirectoryPath
Résultat void

LoadConfig() protected méthode

protected LoadConfig ( bool fallback = false ) : void
fallback bool
Résultat void

LoadHosts() public méthode

public LoadHosts ( ) : void
Résultat void

LoadSums() protected méthode

protected LoadSums ( bool ignoreDeleted = false, bool localOnly = false ) : void
ignoreDeleted bool
localOnly bool
Résultat void

LoadVersions() protected méthode

protected LoadVersions ( bool checkFormat = false, bool allowPFailure = true ) : void
checkFormat bool
allowPFailure bool
Résultat void

MovePackPath() public méthode

public MovePackPath ( string path, string guid = null ) : void
path string
guid string
Résultat void

Pack() public méthode

public Pack ( IAbsoluteFilePath file, IAbsoluteFilePath destination = null ) : void
file IAbsoluteFilePath
destination IAbsoluteFilePath
Résultat void

PackWdFile() public méthode

public PackWdFile ( bool createZsyncFiles, string change ) : void
createZsyncFiles bool
change string
Résultat void

ProcessChangedPack() public méthode

public ProcessChangedPack ( IStatus status, bool changesOnly ) : void
status IStatus
changesOnly bool
Résultat void

ProcessPackChanges() protected méthode

protected ProcessPackChanges ( IEnumerable wdChanges, bool changesOnly = true ) : Task
wdChanges IEnumerable
changesOnly bool
Résultat Task

ProcessWdChanges() protected méthode

protected ProcessWdChanges ( string differences, bool changesOnly ) : Task
differences string
changesOnly bool
Résultat Task

Push() public méthode

public Push ( string key = null, Uri host = null ) : void
key string
host System.Uri
Résultat void

PushFolder() protected méthode

protected PushFolder ( IAbsoluteDirectoryPath packFolder, Uri host, string>.Dictionary dictionary ) : void
packFolder IAbsoluteDirectoryPath
host System.Uri
dictionary string>.Dictionary
Résultat void

Register() public méthode

public Register ( IPublishingApi api, string name, string version, string registerInfo ) : Task
api IPublishingApi
name string
version string
registerInfo string
Résultat Task

RemoveIfObsolete() public méthode

public RemoveIfObsolete ( string>.KeyValuePair pair ) : void
pair string>.KeyValuePair
Résultat void

RemovedPack() protected méthode

protected RemovedPack ( string change ) : void
change string
Résultat void

RemovedWd() protected méthode

protected RemovedWd ( string change ) : void
change string
Résultat void

Repository() public méthode

public Repository ( IZsyncMake zsyncMake, StatusRepo statusRepo, string folder = "." ) : System
zsyncMake IZsyncMake
statusRepo StatusRepo
folder string
Résultat System

Repository() public méthode

public Repository ( IZsyncMake zsyncMake, string folder = "." ) : System
zsyncMake IZsyncMake
folder string
Résultat System

SaveAndReloadConfig() protected méthode

protected SaveAndReloadConfig ( bool fallback = false ) : void
fallback bool
Résultat void

SaveVersions() protected méthode

protected SaveVersions ( ) : void
Résultat void

StartOutput() protected méthode

protected StartOutput ( IStatus status ) : void
status IStatus
Résultat void

SumChangedPack() public méthode

public SumChangedPack ( IStatus status ) : void
status IStatus
Résultat void

TryCleanupTmpFiles() public méthode

public TryCleanupTmpFiles ( ) : void
Résultat void

TryConfirmChecksumValidity() public méthode

public TryConfirmChecksumValidity ( bool localOnly ) : void
localOnly bool
Résultat void

TryDeleteFile() public méthode

public TryDeleteFile ( FileInfo fi ) : void
fi FileInfo
Résultat void

TryHandleWd() public méthode

public TryHandleWd ( IStatus status, bool changesOnly ) : void
status IStatus
changesOnly bool
Résultat void

TryLoadConfig() public méthode

public TryLoadConfig ( bool fallback ) : void
fallback bool
Résultat void

TryLoadPackVersion() public méthode

public TryLoadPackVersion ( bool allowPFailure ) : void
allowPFailure bool
Résultat void

TryLoadWDVersion() public méthode

public TryLoadWDVersion ( ) : void
Résultat void

Update() public méthode

public Update ( Action config = null ) : Task
config Action
Résultat Task

UpdateRepoInfo() protected méthode

protected UpdateRepoInfo ( ) : void
Résultat void

UpdateVersion() public méthode

public UpdateVersion ( bool changeVersion, string list, string removed ) : void
changeVersion bool
list string
removed string
Résultat void

VerifyChecksums() protected méthode

protected VerifyChecksums ( bool localOnly = false ) : IList>.Tuple
localOnly bool
Résultat IList>.Tuple

Property Details

ArchiveFormats public_oe static_oe property

public static string[] ArchiveFormats
Résultat string[]

Factory public_oe static_oe property

public static RepositoryFactory,withSIX.Sync.Core.Legacy.SixSync Factory
Résultat RepositoryFactory

IgnoredExtensions public_oe static_oe property

public static string[] IgnoredExtensions
Résultat string[]

RepoTools public_oe static_oe property

public static RepositoryTools RepoTools
Résultat RepositoryTools

RsyncableArchiveFormats public_oe static_oe property

public static string[] RsyncableArchiveFormats
Résultat string[]

TempExtensions public_oe static_oe property

public static string[] TempExtensions
Résultat string[]