예제 #1
0
        // ********************************************************************************
        /// <summary>
        ///
        /// </summary>
        /// <typeparam name="TerminologyResultArgs"></typeparam>
        /// <param name="term"></param>
        /// <param name="requestid"></param>
        /// <returns></returns>
        /// <created>UPh,17.11.2015</created>
        /// <changed>UPh,17.11.2015</changed>
        // ********************************************************************************
        public List <TerminologyResultArgs> RequestSyncSingleTerm(string term, long requestid)
        {
            List <TerminologyResultArgs> result = new List <TerminologyResultArgs>();

            _Worker.HandleSingleTermRequest(TermBaseRequest.MakeTerminologyRequest(term, requestid), result);

            return(result);
        }
예제 #2
0
        // ********************************************************************************
        /// <summary>
        /// Put terminology request to FiFo
        /// </summary>
        /// <param name="text"></param>
        /// <returns></returns>
        /// <created>UPh,25.10.2015</created>
        /// <changed>UPh,25.10.2015</changed>
        // ********************************************************************************
        public void RequestTerminology(string text, long requestid)
        {
            if (!_Worker.IsStarted)
            {
                _Worker.Start();
            }

            _Worker.PutRequest(TermBaseRequest.MakeTerminologyRequest(text, requestid));
        }