C# 클래스 withSIX.Sync.Core.Legacy.SixSync.Repository

상속: IEnableLogging
파일 보기 프로젝트 열기: SIXNetworks/withSIX.Desktop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ArchiveFormats string[]
Factory RepositoryFactory
IgnoredExtensions string[]
RepoTools RepositoryTools
RsyncableArchiveFormats string[]
TempExtensions string[]

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

CalcSums() 보호된 메소드

protected CalcSums ( RepositoryFileType type, bool ignoreDeleted = false ) : string>.Dictionary
type RepositoryFileType
ignoreDeleted bool
리턴 string>.Dictionary

ChangedPack() 보호된 메소드

protected ChangedPack ( IStatus status ) : System.Threading.Tasks.Task
status IStatus
리턴 System.Threading.Tasks.Task

ChangedWd() 보호된 메소드

protected ChangedWd ( IStatus status, string change, bool changesOnly ) : void
status IStatus
change string
changesOnly bool
리턴 void

CheckRepository() 보호된 메소드

protected CheckRepository ( bool checkFormat ) : void
checkFormat bool
리턴 void

CleanupZsyncFiles() 공개 메소드

public CleanupZsyncFiles ( ) : void
리턴 void

Commit() 공개 메소드

public Commit ( bool changeVersion = true, bool createZsyncFiles = true ) : void
changeVersion bool
createZsyncFiles bool
리턴 void

CommitAndPush() 공개 메소드

public CommitAndPush ( string key = null, Uri host = null ) : void
key string
host System.Uri
리턴 void

CompareSums() 보호된 메소드

protected CompareSums ( RepositoryFileType type, int i ) : string[][]
type RepositoryFileType
i int
리턴 string[][]

ConfirmChecksumValidity() 공개 메소드

public ConfirmChecksumValidity ( bool localOnly ) : void
localOnly bool
리턴 void

ConvertFormat() 공개 메소드

public ConvertFormat ( string format ) : void
format string
리턴 void

CreateZsyncFile() 공개 메소드

public CreateZsyncFile ( string fileName ) : void
fileName string
리턴 void

DeRegister() 공개 메소드

public DeRegister ( IPublishingApi api, string name, string version, string registerInfo ) : Task
api IPublishingApi
name string
version string
registerInfo string
리턴 Task

EndOutput() 보호된 메소드

protected EndOutput ( IStatus status ) : void
status IStatus
리턴 void

FailedOutput() 보호된 메소드

protected FailedOutput ( IStatus status ) : void
status IStatus
리턴 void

FetchRepository() 보호된 메소드

protected FetchRepository ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

FixGuid() 보호된 메소드

protected FixGuid ( bool pushIfChanged = true ) : bool
pushIfChanged bool
리턴 bool

FixMissingPackFiles() 보호된 메소드

protected FixMissingPackFiles ( string files, bool createZsyncFiles = true ) : void
files string
createZsyncFiles bool
리턴 void

FixMissingZsyncFiles() 보호된 메소드

protected FixMissingZsyncFiles ( ) : void
리턴 void

FixWhenMissing() 공개 메소드

public FixWhenMissing ( bool createZsyncFiles, string f ) : void
createZsyncFiles bool
f string
리턴 void

GetNewPackPath() 보호된 메소드

protected GetNewPackPath ( string path, string guid = null ) : string
path string
guid string
리턴 string

GetNewPackPathUnlessEqual() 보호된 메소드

protected GetNewPackPathUnlessEqual ( string path, string guid = null ) : string
path string
guid string
리턴 string

GetPackFile() 보호된 메소드

protected GetPackFile ( string fileName ) : IAbsoluteFilePath
fileName string
리턴 IAbsoluteFilePath

GetRsyncFile() 보호된 메소드

protected GetRsyncFile ( string fileName ) : IAbsoluteFilePath
fileName string
리턴 IAbsoluteFilePath

GetWdFile() 보호된 메소드

protected GetWdFile ( string fileName ) : IAbsoluteFilePath
fileName string
리턴 IAbsoluteFilePath

HandleCase() 보호된 메소드

protected HandleCase ( ) : void
리턴 void

HandleWd() 보호된 메소드

protected HandleWd ( string item, bool changesOnly, bool silence = false ) : void
item string
changesOnly bool
silence bool
리턴 void

IncludeMatch() 보호된 메소드

protected IncludeMatch ( string key, RepositoryFileType type = RepositoryFileType.Wd ) : bool
key string
type RepositoryFileType
리턴 bool

InitializeConfig() 공개 정적인 메소드

public static InitializeConfig ( IAbsoluteDirectoryPath path ) : void
path IAbsoluteDirectoryPath
리턴 void

LoadConfig() 보호된 메소드

protected LoadConfig ( bool fallback = false ) : void
fallback bool
리턴 void

LoadHosts() 공개 메소드

public LoadHosts ( ) : void
리턴 void

LoadSums() 보호된 메소드

protected LoadSums ( bool ignoreDeleted = false, bool localOnly = false ) : void
ignoreDeleted bool
localOnly bool
리턴 void

LoadVersions() 보호된 메소드

protected LoadVersions ( bool checkFormat = false, bool allowPFailure = true ) : void
checkFormat bool
allowPFailure bool
리턴 void

MovePackPath() 공개 메소드

public MovePackPath ( string path, string guid = null ) : void
path string
guid string
리턴 void

Pack() 공개 메소드

public Pack ( IAbsoluteFilePath file, IAbsoluteFilePath destination = null ) : void
file IAbsoluteFilePath
destination IAbsoluteFilePath
리턴 void

PackWdFile() 공개 메소드

public PackWdFile ( bool createZsyncFiles, string change ) : void
createZsyncFiles bool
change string
리턴 void

ProcessChangedPack() 공개 메소드

public ProcessChangedPack ( IStatus status, bool changesOnly ) : void
status IStatus
changesOnly bool
리턴 void

ProcessPackChanges() 보호된 메소드

protected ProcessPackChanges ( IEnumerable wdChanges, bool changesOnly = true ) : Task
wdChanges IEnumerable
changesOnly bool
리턴 Task

ProcessWdChanges() 보호된 메소드

protected ProcessWdChanges ( string differences, bool changesOnly ) : Task
differences string
changesOnly bool
리턴 Task

Push() 공개 메소드

public Push ( string key = null, Uri host = null ) : void
key string
host System.Uri
리턴 void

PushFolder() 보호된 메소드

protected PushFolder ( IAbsoluteDirectoryPath packFolder, Uri host, string>.Dictionary dictionary ) : void
packFolder IAbsoluteDirectoryPath
host System.Uri
dictionary string>.Dictionary
리턴 void

Register() 공개 메소드

public Register ( IPublishingApi api, string name, string version, string registerInfo ) : Task
api IPublishingApi
name string
version string
registerInfo string
리턴 Task

RemoveIfObsolete() 공개 메소드

public RemoveIfObsolete ( string>.KeyValuePair pair ) : void
pair string>.KeyValuePair
리턴 void

RemovedPack() 보호된 메소드

protected RemovedPack ( string change ) : void
change string
리턴 void

RemovedWd() 보호된 메소드

protected RemovedWd ( string change ) : void
change string
리턴 void

Repository() 공개 메소드

public Repository ( IZsyncMake zsyncMake, StatusRepo statusRepo, string folder = "." ) : System
zsyncMake IZsyncMake
statusRepo StatusRepo
folder string
리턴 System

Repository() 공개 메소드

public Repository ( IZsyncMake zsyncMake, string folder = "." ) : System
zsyncMake IZsyncMake
folder string
리턴 System

SaveAndReloadConfig() 보호된 메소드

protected SaveAndReloadConfig ( bool fallback = false ) : void
fallback bool
리턴 void

SaveVersions() 보호된 메소드

protected SaveVersions ( ) : void
리턴 void

StartOutput() 보호된 메소드

protected StartOutput ( IStatus status ) : void
status IStatus
리턴 void

SumChangedPack() 공개 메소드

public SumChangedPack ( IStatus status ) : void
status IStatus
리턴 void

TryCleanupTmpFiles() 공개 메소드

public TryCleanupTmpFiles ( ) : void
리턴 void

TryConfirmChecksumValidity() 공개 메소드

public TryConfirmChecksumValidity ( bool localOnly ) : void
localOnly bool
리턴 void

TryDeleteFile() 공개 메소드

public TryDeleteFile ( FileInfo fi ) : void
fi FileInfo
리턴 void

TryHandleWd() 공개 메소드

public TryHandleWd ( IStatus status, bool changesOnly ) : void
status IStatus
changesOnly bool
리턴 void

TryLoadConfig() 공개 메소드

public TryLoadConfig ( bool fallback ) : void
fallback bool
리턴 void

TryLoadPackVersion() 공개 메소드

public TryLoadPackVersion ( bool allowPFailure ) : void
allowPFailure bool
리턴 void

TryLoadWDVersion() 공개 메소드

public TryLoadWDVersion ( ) : void
리턴 void

Update() 공개 메소드

public Update ( Action config = null ) : Task
config Action
리턴 Task

UpdateRepoInfo() 보호된 메소드

protected UpdateRepoInfo ( ) : void
리턴 void

UpdateVersion() 공개 메소드

public UpdateVersion ( bool changeVersion, string list, string removed ) : void
changeVersion bool
list string
removed string
리턴 void

VerifyChecksums() 보호된 메소드

protected VerifyChecksums ( bool localOnly = false ) : IList>.Tuple
localOnly bool
리턴 IList>.Tuple

프로퍼티 상세

ArchiveFormats 공개적으로 정적으로 프로퍼티

public static string[] ArchiveFormats
리턴 string[]

Factory 공개적으로 정적으로 프로퍼티

public static RepositoryFactory,withSIX.Sync.Core.Legacy.SixSync Factory
리턴 RepositoryFactory

IgnoredExtensions 공개적으로 정적으로 프로퍼티

public static string[] IgnoredExtensions
리턴 string[]

RepoTools 공개적으로 정적으로 프로퍼티

public static RepositoryTools RepoTools
리턴 RepositoryTools

RsyncableArchiveFormats 공개적으로 정적으로 프로퍼티

public static string[] RsyncableArchiveFormats
리턴 string[]

TempExtensions 공개적으로 정적으로 프로퍼티

public static string[] TempExtensions
리턴 string[]