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