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); } }
/// <summary> /// Allocate resources necessary for decoding /// </summary> public void Allocate() { SearchManager.Allocate(); }