Пример #1
0
 protected virtual void OnPersonSearchCompleted(TmdbPersonSearchCompletedEventArgs e)
 {
     if (PersonSearchCompleted != null)
     {
         PersonSearchCompleted(this, e);
     }
 }
Пример #2
0
        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);
        }
Пример #3
0
 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);
 }
Пример #4
0
 protected virtual void OnPersonSearchCompleted(TmdbPersonSearchCompletedEventArgs e)
 {
     if (PersonSearchCompleted != null)
         PersonSearchCompleted(this, e);
 }