Exemplo n.º 1
0
        /// <summary>
        /// Informs Antidote about the number of segments from the document
        /// that will be sent for correcting.
        /// </summary>
        /// <param name="id">The document Id</param>
        /// <returns>Returns the number of zones of text in the specified document</returns>
        public int DonneNbZonesDeTexte(int id)
        {
            var numberOfSegments = _editorService.GetDocumentNoOfSegments();

            Log.Verbose("Sending document with id {@id} to Antidote having {@numberOfSegments} number of segments.",
                        id, numberOfSegments);
            return(numberOfSegments);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Informs Antidote about the number of segments from the document
 /// that will be sent for correcting.
 /// </summary>
 /// <param name="id">The document Id</param>
 /// <returns>Returns the number of zones of text in the specified document</returns>
 public long DonneNbZonesDeTexte(long id)
 {
     return(_editorService.GetDocumentNoOfSegments());
 }