Exemple #1
0
        /// <summary>Adds document into cache.</summary>
        /// <param name="annotationDocument">The annotation document.</param>
        public void AddDocument([NotNull] AnnotationDocument annotationDocument)
        {
            Code.NotNull(annotationDocument, nameof(annotationDocument));
            AssertIsInLock();

            _documentsCache.Add(annotationDocument);
        }
Exemple #2
0
 /// <summary>Adds target key for the document.</summary>
 /// <param name="annotationDocument">The annotation document.</param>
 /// <param name="key">The target key.</param>
 public void AddTargetKey([NotNull] AnnotationDocument annotationDocument, AnnotationTargetKey key)
 {
     Code.NotNull(annotationDocument, nameof(annotationDocument));
     AssertIsInLock();
     _documentsCache.AddTargetKey(annotationDocument, key);
 }