Пример #1
0
        public void MovieSearchAsync(string title, object userState)
        {
            AsyncOperation      asyncOp = AsyncOperationManager.CreateOperation(null);
            MovieSearchDelegate worker  = new MovieSearchDelegate(MovieSearchWorker);

            worker.BeginInvoke(title, userState, asyncOp, null, null);
        }
Пример #2
0
        public void MovieSearchByImdbAsync(string imdbId, object userState)
        {
            AsyncOperation      asyncOp = AsyncOperationManager.CreateOperation(null);
            MovieSearchDelegate worker  = new MovieSearchDelegate(MovieSearchByImdbWorker);

            worker.BeginInvoke(imdbId, userState, asyncOp, null, null);
        }
Пример #3
0
 public void MovieSearchByImdbAsync(string imdbId, object userState)
 {
     AsyncOperation asyncOp = AsyncOperationManager.CreateOperation(null);
     var worker = new MovieSearchDelegate(MovieSearchByImdbWorker);
     worker.BeginInvoke(imdbId, userState, asyncOp, null, null);
 }
Пример #4
0
 public void MovieSearchAsync(string title, object userState)
 {
     var asyncOp = AsyncOperationManager.CreateOperation(null);
     var worker = new MovieSearchDelegate(MovieSearchWorker);
     worker.BeginInvoke(title, userState, asyncOp, null, null);
 }