protected virtual void OnGetPersonInfoCompleted(TmdbPersonInfoCompletedEventArgs e) { if (GetPersonInfoCompleted != null) { GetPersonInfoCompleted(this, e); } }
private void GetPersonInfoWorker(int id, object userState, AsyncOperation asyncOp) { Exception exception = null; TmdbPerson person = null; try { person = GetPersonInfo(id); } catch (Exception ex) { exception = ex; } var args = new TmdbPersonInfoCompletedEventArgs(person, exception, false, userState); asyncOp.PostOperationCompleted( e => OnGetPersonInfoCompleted((TmdbPersonInfoCompletedEventArgs)e), args); }
private void GetPersonInfoWorker(int id, object userState, AsyncOperation asyncOp) { Exception exception = null; TmdbPerson person = null; try { person = GetPersonInfo(id); } catch (Exception ex) { exception = ex; } var args = new TmdbPersonInfoCompletedEventArgs(person, exception, false, userState); asyncOp.PostOperationCompleted( e => OnGetPersonInfoCompleted((TmdbPersonInfoCompletedEventArgs) e), args); }
protected virtual void OnGetPersonInfoCompleted(TmdbPersonInfoCompletedEventArgs e) { if (GetPersonInfoCompleted != null) GetPersonInfoCompleted(this, e); }