C# Class CmisSync.Lib.RepoBase

Synchronizes a remote folder. This class contains the loop that synchronizes every X seconds.
Inheritance: IDisposable
Mostrar archivo Open project: aegif/CmisSync

Public Properties

Property Type Description
LocalPath string
Name string
RemoteUrl Uri

Public Methods

Method Description
CancelSync ( ) : void

Will send message the currently running sync thread (if one exists) to stop syncing as soon as the next blockign operation completes.

Disable ( ) : void

Stop syncing momentarily.

Dispose ( ) : void

Implement IDisposable interface.

Enable ( ) : void

Restart syncing.

Initialize ( ) : void

Initialize the watcher.

ManualSync ( ) : void

Manual sync.

OnFileActivity ( object sender, FileSystemEventArgs args ) : void

Some file activity has been detected, sync changes.

OnSyncComplete ( bool syncFull ) : void

Called when sync completes.

OnSyncError ( Exception exception ) : void

Called when sync encounters an error.

OnSyncStart ( bool syncFull ) : void

Called when sync starts.

RepoBase ( RepoInfo repoInfo, IActivityListener activityListener ) : log4net

Constructor.

SyncInBackground ( ) : void

Perform a synchronization if one is not running already.

SyncInBackground ( bool syncFull ) : void

Perform a synchronization if one is not running already.

UpdateSettings ( string password, int pollInterval, bool syncAtStartup ) : void

Update repository settings.

isSuspended ( ) : bool

Whether this folder's synchronization is suspended right now.

isSyncing ( ) : bool

Whether this folder's synchronization is running right now.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Dispose pattern implementation.

OnConflictResolved ( ) : void

A conflict has been resolved.

Private Methods

Method Description
CalculateSize ( DirectoryInfo parent ) : double

Recursively gets a folder's size in bytes.

Method Details

CancelSync() public abstract method

Will send message the currently running sync thread (if one exists) to stop syncing as soon as the next blockign operation completes.
public abstract CancelSync ( ) : void
return void

Disable() public method

Stop syncing momentarily.
public Disable ( ) : void
return void

Dispose() public method

Implement IDisposable interface.
public Dispose ( ) : void
return void

Dispose() protected method

Dispose pattern implementation.
protected Dispose ( bool disposing ) : void
disposing bool
return void

Enable() public method

Restart syncing.
public Enable ( ) : void
return void

Initialize() public method

Initialize the watcher.
public Initialize ( ) : void
return void

ManualSync() public method

Manual sync.
public ManualSync ( ) : void
return void

OnConflictResolved() protected method

A conflict has been resolved.
protected OnConflictResolved ( ) : void
return void

OnFileActivity() public method

Some file activity has been detected, sync changes.
public OnFileActivity ( object sender, FileSystemEventArgs args ) : void
sender object
args FileSystemEventArgs
return void

OnSyncComplete() public method

Called when sync completes.
public OnSyncComplete ( bool syncFull ) : void
syncFull bool
return void

OnSyncError() public method

Called when sync encounters an error.
public OnSyncError ( Exception exception ) : void
exception Exception
return void

OnSyncStart() public method

Called when sync starts.
public OnSyncStart ( bool syncFull ) : void
syncFull bool
return void

RepoBase() public method

Constructor.
public RepoBase ( RepoInfo repoInfo, IActivityListener activityListener ) : log4net
repoInfo RepoInfo
activityListener IActivityListener
return log4net

SyncInBackground() public abstract method

Perform a synchronization if one is not running already.
public abstract SyncInBackground ( ) : void
return void

SyncInBackground() public abstract method

Perform a synchronization if one is not running already.
public abstract SyncInBackground ( bool syncFull ) : void
syncFull bool
return void

UpdateSettings() public method

Update repository settings.
public UpdateSettings ( string password, int pollInterval, bool syncAtStartup ) : void
password string
pollInterval int
syncAtStartup bool
return void

isSuspended() public abstract method

Whether this folder's synchronization is suspended right now.
public abstract isSuspended ( ) : bool
return bool

isSyncing() public abstract method

Whether this folder's synchronization is running right now.
public abstract isSyncing ( ) : bool
return bool

Property Details

LocalPath public_oe property

Path of the local synchronized folder.
public string LocalPath
return string

Name public_oe property

Name of the synchronized folder, as found in the CmisSync XML configuration file.
public string Name
return string

RemoteUrl public_oe property

URL of the remote CMIS endpoint.
public Uri RemoteUrl
return Uri