C# Класс CmisSync.Lib.Consumer.SituationSolver.RemoteObjectAdded

Solver to handle a new object which has been found on the server
Наследование: AbstractEnhancedSolver
Показать файл Открыть проект Примеры использования класса

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

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

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

Метод Описание
MergeExistingFileWithRemoteFile ( IFileInfo file, IDocument remoteDoc, System.Guid guid, byte &localHash ) : bool

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

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

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

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

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