protected virtual void OnPersonSearchCompleted(TmdbPersonSearchCompletedEventArgs e) { if (PersonSearchCompleted != null) { PersonSearchCompleted(this, e); } }
private void PersonSearchWorker(string name, object userState, AsyncOperation asyncOp) { Exception exception = null; IEnumerable <TmdbPerson> people = null; try { people = PersonSearch(name); } catch (Exception ex) { exception = ex; } var args = new TmdbPersonSearchCompletedEventArgs(people, exception, false, userState); asyncOp.PostOperationCompleted( e => OnPersonSearchCompleted((TmdbPersonSearchCompletedEventArgs)e), args); }
private void PersonSearchWorker(string name, object userState, AsyncOperation asyncOp) { Exception exception = null; IEnumerable<TmdbPerson> people = null; try { people = PersonSearch(name); } catch (Exception ex) { exception = ex; } var args = new TmdbPersonSearchCompletedEventArgs(people, exception, false, userState); asyncOp.PostOperationCompleted( e => OnPersonSearchCompleted((TmdbPersonSearchCompletedEventArgs) e), args); }
protected virtual void OnPersonSearchCompleted(TmdbPersonSearchCompletedEventArgs e) { if (PersonSearchCompleted != null) PersonSearchCompleted(this, e); }