public TmdbPersonInfoCompletedEventArgs( TmdbPerson person, Exception e, bool canceled, object state) : base(e, canceled, state) { _person = person; }
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); }