コード例 #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
ファイル: TmdbApi.cs プロジェクト: revenz/iMeta
 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
ファイル: TmdbApi.cs プロジェクト: revenz/iMeta
 protected virtual void OnPersonSearchCompleted(TmdbPersonSearchCompletedEventArgs e)
 {
     if (PersonSearchCompleted != null)
         PersonSearchCompleted(this, e);
 }