C# Класс CmisSync.Lib.RepoBase

Synchronizes a remote folder. This class contains the loop that synchronizes every X seconds.
Наследование: IDisposable
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
LocalPath string
Name string
RemoteUrl Uri

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Dispose pattern implementation.

OnConflictResolved ( ) : void

A conflict has been resolved.

Приватные методы

Метод Описание
CalculateSize ( DirectoryInfo parent ) : double

Recursively gets a folder's size in bytes.

Описание методов

CancelSync() публичный абстрактный Метод

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
Результат void

Disable() публичный Метод

Stop syncing momentarily.
public Disable ( ) : void
Результат void

Dispose() публичный Метод

Implement IDisposable interface.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Dispose pattern implementation.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

Enable() публичный Метод

Restart syncing.
public Enable ( ) : void
Результат void

Initialize() публичный Метод

Initialize the watcher.
public Initialize ( ) : void
Результат void

ManualSync() публичный Метод

Manual sync.
public ManualSync ( ) : void
Результат void

OnConflictResolved() защищенный Метод

A conflict has been resolved.
protected OnConflictResolved ( ) : void
Результат void

OnFileActivity() публичный Метод

Some file activity has been detected, sync changes.
public OnFileActivity ( object sender, FileSystemEventArgs args ) : void
sender object
args FileSystemEventArgs
Результат void

OnSyncComplete() публичный Метод

Called when sync completes.
public OnSyncComplete ( bool syncFull ) : void
syncFull bool
Результат void

OnSyncError() публичный Метод

Called when sync encounters an error.
public OnSyncError ( Exception exception ) : void
exception Exception
Результат void

OnSyncStart() публичный Метод

Called when sync starts.
public OnSyncStart ( bool syncFull ) : void
syncFull bool
Результат void

RepoBase() публичный Метод

Constructor.
public RepoBase ( RepoInfo repoInfo, IActivityListener activityListener ) : log4net
repoInfo RepoInfo
activityListener IActivityListener
Результат log4net

SyncInBackground() публичный абстрактный Метод

Perform a synchronization if one is not running already.
public abstract SyncInBackground ( ) : void
Результат void

SyncInBackground() публичный абстрактный Метод

Perform a synchronization if one is not running already.
public abstract SyncInBackground ( bool syncFull ) : void
syncFull bool
Результат void

UpdateSettings() публичный Метод

Update repository settings.
public UpdateSettings ( string password, int pollInterval, bool syncAtStartup ) : void
password string
pollInterval int
syncAtStartup bool
Результат void

isSuspended() публичный абстрактный Метод

Whether this folder's synchronization is suspended right now.
public abstract isSuspended ( ) : bool
Результат bool

isSyncing() публичный абстрактный Метод

Whether this folder's synchronization is running right now.
public abstract isSyncing ( ) : bool
Результат bool

Описание свойств

LocalPath публичное свойство

Path of the local synchronized folder.
public string LocalPath
Результат string

Name публичное свойство

Name of the synchronized folder, as found in the CmisSync XML configuration file.
public string Name
Результат string

RemoteUrl публичное свойство

URL of the remote CMIS endpoint.
public Uri RemoteUrl
Результат Uri