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

Remote object has been changed. => update the metadata locally.
Наследование: AbstractEnhancedSolver
Показать файл Открыть проект Примеры использования класса

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

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

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

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

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

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

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