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

Solver to handle a new object which has been found on the server
Inheritance: AbstractEnhancedSolver
Mostrar archivo Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

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

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

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

Adds the Object to Disk and Database

Private Methods

Method Description
MergeExistingFileWithRemoteFile ( IFileInfo file, IDocument remoteDoc, System.Guid guid, byte &localHash ) : bool

Method Details

RemoteObjectAdded() public method

Initializes a new instance of the CmisSync.Lib.Consumer.SituationSolver.RemoteObjectAdded class.
public RemoteObjectAdded ( ISession session, IMetaDataStorage storage, IFileTransmissionStorage transmissionStorage, TransmissionManager transmissionManager, IFileSystemInfoFactory fsFactory = null ) : System
session ISession Cmis session.
storage IMetaDataStorage Meta data storage.
transmissionStorage IFileTransmissionStorage Transmission progress storage.
transmissionManager CmisSync.Lib.Queueing.TransmissionManager Transmission manager.
fsFactory IFileSystemInfoFactory File system factory.
return System

Solve() public method

Adds the Object to Disk and Database
/// Is thrown when remoteId is not prefetched. ///
public Solve ( IFileSystemInfo localFile, IObjectId remoteId, ContentChangeType localContent = ContentChangeType.NONE, ContentChangeType remoteContent = ContentChangeType.NONE ) : void
localFile IFileSystemInfo /// Local file. ///
remoteId IObjectId /// Remote Object (already fetched). ///
localContent ContentChangeType Hint if the local content has been changed.
remoteContent ContentChangeType Information if the remote content has been changed.
return void