Esempio n. 1
0
 protected virtual void OnGetPersonInfoCompleted(TmdbPersonInfoCompletedEventArgs e)
 {
     if (GetPersonInfoCompleted != null)
     {
         GetPersonInfoCompleted(this, e);
     }
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 protected virtual void OnGetPersonInfoCompleted(TmdbPersonInfoCompletedEventArgs e)
 {
     if (GetPersonInfoCompleted != null)
         GetPersonInfoCompleted(this, e);
 }