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