C# Class RavenFS.Synchronization.SynchronizationWorkItem

显示文件 Open project: hibernating-rhinos/RavenFS Class Usage Examples

Protected Properties

Property Type Description
Cts System.Threading.CancellationTokenSource

Public Methods

Method Description
Cancel ( ) : void
PerformAsync ( string destination ) : Task
RefreshMetadata ( ) : void

Protected Methods

Method Description
ApplyConflictOnDestinationAsync ( ConflictItem conflict, string destination, string localServerUrl, Logger log ) : Task
AssertLocalFileExistsAndIsNotConflicted ( NameValueCollection sourceMetadata ) : void
CheckConflictWithDestination ( NameValueCollection sourceMetadata, NameValueCollection destinationMetadata, string localServerUrl ) : ConflictItem
SynchronizationWorkItem ( string fileName, string sourceServerUrl, TransactionalStorage storage ) : System

Method Details

ApplyConflictOnDestinationAsync() protected method

protected ApplyConflictOnDestinationAsync ( ConflictItem conflict, string destination, string localServerUrl, Logger log ) : Task
conflict RavenFS.Client.ConflictItem
destination string
localServerUrl string
log Logger
return Task

AssertLocalFileExistsAndIsNotConflicted() protected method

protected AssertLocalFileExistsAndIsNotConflicted ( NameValueCollection sourceMetadata ) : void
sourceMetadata System.Collections.Specialized.NameValueCollection
return void

Cancel() public method

public Cancel ( ) : void
return void

CheckConflictWithDestination() protected method

protected CheckConflictWithDestination ( NameValueCollection sourceMetadata, NameValueCollection destinationMetadata, string localServerUrl ) : ConflictItem
sourceMetadata System.Collections.Specialized.NameValueCollection
destinationMetadata System.Collections.Specialized.NameValueCollection
localServerUrl string
return RavenFS.Client.ConflictItem

PerformAsync() public abstract method

public abstract PerformAsync ( string destination ) : Task
destination string
return Task

RefreshMetadata() public method

public RefreshMetadata ( ) : void
return void

SynchronizationWorkItem() protected method

protected SynchronizationWorkItem ( string fileName, string sourceServerUrl, TransactionalStorage storage ) : System
fileName string
sourceServerUrl string
storage RavenFS.Storage.TransactionalStorage
return System

Property Details

Cts protected_oe property

protected CancellationTokenSource,System.Threading Cts
return System.Threading.CancellationTokenSource