예제 #1
0
        private void Init(String name, ISearchManager searchManager, Boolean fireNonFinalResults, Boolean autoAllocate, List <IResultListener> listeners)
        {
            _name = name;

            SearchManager        = searchManager;
            _fireNonFinalResults = fireNonFinalResults;

            if (autoAllocate)
            {
                searchManager.Allocate();
            }

            foreach (var listener in listeners)
            {
                AddResultListener(listener);
            }
        }
예제 #2
0
 /// <summary>
 /// Allocate resources necessary for decoding
 /// </summary>
 public void Allocate()
 {
     SearchManager.Allocate();
 }