CmisSync.Lib.Consumer.SituationSolver.LocalObjectDeletedRemoteObjectDeleted.Solve C# (CSharp) Method

Solve() public method

Solve the specified situation by using localFile and remote object.
public Solve ( IFileSystemInfo localFile, IObjectId remoteId, ContentChangeType localContent = ContentChangeType.NONE, ContentChangeType remoteContent = ContentChangeType.NONE ) : void
localFile IFileSystemInfo Local file.
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
        public override void Solve(
            IFileSystemInfo localFile,
            IObjectId remoteId,
            ContentChangeType localContent = ContentChangeType.NONE,
            ContentChangeType remoteContent = ContentChangeType.NONE)
        {
            var mappedObject = this.Storage.GetObjectByLocalPath(localFile);
            this.Storage.RemoveObject(mappedObject);
        }
    }
LocalObjectDeletedRemoteObjectDeleted