C# Class CSharpUtils.VirtualFileSystem.Utils.Synchronizer

Show file Open project: soywiz/csharputils Class Usage Examples

Public Properties

Property Type Description
Canceling bool

Public Methods

Method Description
Cancel ( ) : void
ShowProgressForm ( System.Action Start = null, System.Action Complete = null ) : void
Synchronize ( FileSystem SourceFileSystem, String SourcePath, FileSystem DestinationFileSystem, String DestinationPath, SynchronizationMode _SynchronizationMode, ReferenceMode _ReferenceMode ) : void
SynchronizeFolder ( String Path = "/" ) : void
Synchronizer ( FileSystem SourceFileSystem, String SourcePath, FileSystem DestinationFileSystem, String DestinationPath, SynchronizationMode _SynchronizationMode, ReferenceMode _ReferenceMode ) : System

Protected Methods

Method Description
CheckCanceling ( ) : void
CopyFile ( String PathFileName ) : void
CreateFolder ( String PathFileName ) : void
RemoveFile ( String PathFileName ) : void

Private Methods

Method Description
CallStep ( double Step, String Details ) : void
GetStep ( double StepFrom, double StepTo, int subStep, int subSteps ) : double
_SynchronizeFolder ( String Path, double StepFrom = 0.0, double StepTo = 1.0 ) : void

Method Details

Cancel() public method

public Cancel ( ) : void
return void

CheckCanceling() protected method

protected CheckCanceling ( ) : void
return void

CopyFile() protected method

protected CopyFile ( String PathFileName ) : void
PathFileName String
return void

CreateFolder() protected method

protected CreateFolder ( String PathFileName ) : void
PathFileName String
return void

RemoveFile() protected method

protected RemoveFile ( String PathFileName ) : void
PathFileName String
return void

ShowProgressForm() public method

public ShowProgressForm ( System.Action Start = null, System.Action Complete = null ) : void
Start System.Action
Complete System.Action
return void

Synchronize() public static method

public static Synchronize ( FileSystem SourceFileSystem, String SourcePath, FileSystem DestinationFileSystem, String DestinationPath, SynchronizationMode _SynchronizationMode, ReferenceMode _ReferenceMode ) : void
SourceFileSystem FileSystem
SourcePath String
DestinationFileSystem FileSystem
DestinationPath String
_SynchronizationMode SynchronizationMode
_ReferenceMode ReferenceMode
return void

SynchronizeFolder() public method

public SynchronizeFolder ( String Path = "/" ) : void
Path String
return void

Synchronizer() public method

public Synchronizer ( FileSystem SourceFileSystem, String SourcePath, FileSystem DestinationFileSystem, String DestinationPath, SynchronizationMode _SynchronizationMode, ReferenceMode _ReferenceMode ) : System
SourceFileSystem FileSystem
SourcePath String
DestinationFileSystem FileSystem
DestinationPath String
_SynchronizationMode SynchronizationMode
_ReferenceMode ReferenceMode
return System

Property Details

Canceling public property

public bool Canceling
return bool