C# Class CmisSync.Lib.Consumer.SituationSolver.RemoteObjectChanged

Remote object has been changed. => update the metadata locally.
Inheritance: AbstractEnhancedSolver
Show file Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
RemoteObjectChanged ( ISession session, IMetaDataStorage storage, IFileTransmissionStorage transmissionStorage, TransmissionManager transmissonManager, IFileSystemInfoFactory fsFactory = null ) : System

Initializes a new instance of the CmisSync.Lib.Consumer.SituationSolver.RemoteObjectChanged class.

Solve ( IFileSystemInfo localFile, IObjectId remoteId, ContentChangeType localContent = ContentChangeType.NONE, ContentChangeType remoteContent = ContentChangeType.NONE ) : void

Solve the specified situation by using the session, storage, localFile and remoteId. If a folder is affected, simply update the local change time of the corresponding local folder. If it is a file and the changeToken is not equal to the saved, the new content is downloaded.

Method Details

RemoteObjectChanged() public method

Initializes a new instance of the CmisSync.Lib.Consumer.SituationSolver.RemoteObjectChanged class.
public RemoteObjectChanged ( ISession session, IMetaDataStorage storage, IFileTransmissionStorage transmissionStorage, TransmissionManager transmissonManager, IFileSystemInfoFactory fsFactory = null ) : System
session ISession Cmis session.
storage IMetaDataStorage Meta data storage.
transmissionStorage IFileTransmissionStorage
transmissonManager CmisSync.Lib.Queueing.TransmissionManager Transmisson manager.
fsFactory IFileSystemInfoFactory File System Factory.
return System

Solve() public method

Solve the specified situation by using the session, storage, localFile and remoteId. If a folder is affected, simply update the local change time of the corresponding local folder. If it is a file and the changeToken is not equal to the saved, the new content is downloaded.
public Solve ( IFileSystemInfo localFile, IObjectId remoteId, ContentChangeType localContent = ContentChangeType.NONE, ContentChangeType remoteContent = ContentChangeType.NONE ) : void
localFile IFileSystemInfo Local file.
remoteId IObjectId Remote identifier.
localContent ContentChangeType Hint if the local content has been changed.
remoteContent ContentChangeType Information if the remote content has been changed.
return void