コード例 #1
0
        public void StartAsync(object userState)
        {
            Reset(userState);

            this.IsBusy = true;

            AsynchronousOperationHandler handler = new AsynchronousOperationHandler(this.AsynchronousOperation);
            handler.BeginInvoke(null, null, userState);

            AsyncOperation operation = (AsyncOperation)userStates[userState];
            operation.Post(new SendOrPostCallback(PostStarted), new AsynchronousActionsEventArgs());
        }
コード例 #2
0
        public void StartAsync(object userState)
        {
            Reset(userState);

            this.IsBusy = true;

            AsynchronousOperationHandler handler = new AsynchronousOperationHandler(this.AsynchronousOperation);

            handler.BeginInvoke(null, null, userState);

            AsyncOperation operation = (AsyncOperation)userStates[userState];

            operation.Post(new SendOrPostCallback(PostStarted), new AsynchronousActionsEventArgs());
        }