private static void AddRemoteContentChangeTypeToFileEvent(FileEvent fileEvent, IMappedObject obj, IDocument remoteDoc) {
if (fileEvent == null || obj == null || remoteDoc == null) {
return;
}
byte[] remoteHash = remoteDoc.ContentStreamHash(obj.ChecksumAlgorithmName);
if (remoteHash != null && remoteHash.SequenceEqual(obj.LastChecksum)) {
fileEvent.RemoteContent = ContentChangeType.NONE;
} else {
fileEvent.RemoteContent = ContentChangeType.CHANGED;
}
}
}