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

Solver to handle the situation of a locally added file/folderobject.
Inheritance: AbstractEnhancedSolver
Show file Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
LocalObjectAdded ( ISession session, IMetaDataStorage storage, IFileTransmissionStorage transmissionStorage, ITransmissionManager manager ) : System

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

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

Solve the specified situation by using localFile and remote object.

Private Methods

Method Description
AddCmisObject ( IFileSystemInfo localFile, string parentId, ISession session ) : ICmisObject
CreateEmptyStream ( string filename, Stream emptyStream ) : IContentStream

Method Details

LocalObjectAdded() public method

Initializes a new instance of the CmisSync.Lib.Consumer.SituationSolver.LocalObjectAdded class.
public LocalObjectAdded ( ISession session, IMetaDataStorage storage, IFileTransmissionStorage transmissionStorage, ITransmissionManager manager ) : System
session ISession Cmis session.
storage IMetaDataStorage Meta data storage.
transmissionStorage IFileTransmissionStorage File transmission storage.
manager ITransmissionManager Activitiy manager for transmission propagations
return System

Solve() public method

Solve the specified situation by using localFile and remote object.
public Solve ( IFileSystemInfo localFileSystemInfo, IObjectId remoteId, ContentChangeType localContent = ContentChangeType.NONE, ContentChangeType remoteContent = ContentChangeType.NONE ) : void
localFileSystemInfo IFileSystemInfo Local filesystem info instance.
remoteId IObjectId Remote identifier or object.
localContent ContentChangeType Hint if the local content has been changed.
remoteContent ContentChangeType Information if the remote content has been changed.
return void