Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / UIAutomation / UIAutomationClient / MS / Internal / Automation / CalloutQueueItem.cs / 1 / CalloutQueueItem.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Class to create a queue on its own thread. // // History: // 06/17/2003 : BrendanM Ported to WCP // //--------------------------------------------------------------------------- using System.Windows.Automation; using System.Windows.Automation.Provider; using System; using System.Collections; using System.ComponentModel; using MS.Internal.Automation; using MS.Win32; namespace MS.Internal.Automation { // Worker class used to queue callbacks that came from the PAW server. Used by // ClientEventManager in its event handler that recieves events from the server. // These events are queued in order to get them off the servers UI thread. internal class CalloutQueueItem : QueueItem { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal CalloutQueueItem(Delegate clientCallback, UiaCoreApi.UiaCacheResponse cacheResponse, AutomationEventArgs e, UiaCoreApi.UiaCacheRequest cacheRequest) { _clientCallback = clientCallback; _cacheResponse = cacheResponse; _e = e; _cacheRequest = cacheRequest; } #endregion Constructors //------------------------------------------------------ // // Internal Methods // //----------------------------------------------------- #region Internal Methods internal override void Process() { AutomationElement el = CacheHelper.BuildAutomationElementsFromResponse(_cacheRequest, _cacheResponse); InvokeHandlers.InvokeClientHandler(_clientCallback, el, _e); } #endregion Internal Methods //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields internal Delegate _clientCallback; // the client's callback delegate internal UiaCoreApi.UiaCacheResponse _cacheResponse; // prefetched data (possibly including the element and properties/patterns) internal UiaCoreApi.UiaCacheRequest _cacheRequest; // list of items to prefetch (also used when deserializing prefetched data) internal AutomationEventArgs _e; // the event args for the callback #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Class to create a queue on its own thread. // // History: // 06/17/2003 : BrendanM Ported to WCP // //--------------------------------------------------------------------------- using System.Windows.Automation; using System.Windows.Automation.Provider; using System; using System.Collections; using System.ComponentModel; using MS.Internal.Automation; using MS.Win32; namespace MS.Internal.Automation { // Worker class used to queue callbacks that came from the PAW server. Used by // ClientEventManager in its event handler that recieves events from the server. // These events are queued in order to get them off the servers UI thread. internal class CalloutQueueItem : QueueItem { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal CalloutQueueItem(Delegate clientCallback, UiaCoreApi.UiaCacheResponse cacheResponse, AutomationEventArgs e, UiaCoreApi.UiaCacheRequest cacheRequest) { _clientCallback = clientCallback; _cacheResponse = cacheResponse; _e = e; _cacheRequest = cacheRequest; } #endregion Constructors //------------------------------------------------------ // // Internal Methods // //----------------------------------------------------- #region Internal Methods internal override void Process() { AutomationElement el = CacheHelper.BuildAutomationElementsFromResponse(_cacheRequest, _cacheResponse); InvokeHandlers.InvokeClientHandler(_clientCallback, el, _e); } #endregion Internal Methods //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields internal Delegate _clientCallback; // the client's callback delegate internal UiaCoreApi.UiaCacheResponse _cacheResponse; // prefetched data (possibly including the element and properties/patterns) internal UiaCoreApi.UiaCacheRequest _cacheRequest; // list of items to prefetch (also used when deserializing prefetched data) internal AutomationEventArgs _e; // the event args for the callback #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DBCommandBuilder.cs
- SessionStateUtil.cs
- PtsHost.cs
- ImmutableObjectAttribute.cs
- EntityException.cs
- SqlServer2KCompatibilityAnnotation.cs
- RolePrincipal.cs
- LocalFileSettingsProvider.cs
- Publisher.cs
- TaskForm.cs
- RepeaterDesigner.cs
- FullTextLine.cs
- TemplateInstanceAttribute.cs
- Propagator.JoinPropagator.cs
- BrowserTree.cs
- ChangeBlockUndoRecord.cs
- CodeIterationStatement.cs
- WinFormsUtils.cs
- RawTextInputReport.cs
- LocationReferenceEnvironment.cs
- FactoryGenerator.cs
- DecimalAnimation.cs
- ConfigurationValidatorBase.cs
- MimePart.cs
- TempFiles.cs
- KnownBoxes.cs
- HwndMouseInputProvider.cs
- ObjectReferenceStack.cs
- HashStream.cs
- CollectionContainer.cs
- ImportContext.cs
- UniqueEventHelper.cs
- DrawingState.cs
- Int64Storage.cs
- MetaModel.cs
- RestHandlerFactory.cs
- PageBorderless.cs
- Transform.cs
- TextPattern.cs
- CallbackBehaviorAttribute.cs
- SqlResolver.cs
- IsolatedStorageFile.cs
- Exception.cs
- ComponentResourceManager.cs
- ContentWrapperAttribute.cs
- EventProviderClassic.cs
- TraceContextEventArgs.cs
- TextPattern.cs
- XmlBaseWriter.cs
- ImageIndexConverter.cs
- SafeNativeMethods.cs
- MenuItemAutomationPeer.cs
- OperationAbortedException.cs
- WebPartCancelEventArgs.cs
- PageThemeCodeDomTreeGenerator.cs
- ExtendedPropertyInfo.cs
- NotifyCollectionChangedEventArgs.cs
- SerTrace.cs
- ContextMenuStrip.cs
- GridErrorDlg.cs
- StylusPointProperty.cs
- XhtmlBasicTextViewAdapter.cs
- MemoryMappedView.cs
- InvalidOleVariantTypeException.cs
- AutomationIdentifier.cs
- Button.cs
- ByteArrayHelperWithString.cs
- ControllableStoryboardAction.cs
- SafeHandles.cs
- COM2PropertyDescriptor.cs
- ServicesExceptionNotHandledEventArgs.cs
- SystemUdpStatistics.cs
- XmlSchemaAny.cs
- ProxyWebPartManager.cs
- FilterEventArgs.cs
- StoryFragments.cs
- DataGridViewCellCancelEventArgs.cs
- SRef.cs
- ExecutedRoutedEventArgs.cs
- FactoryMaker.cs
- EmbeddedMailObject.cs
- XDRSchema.cs
- Visual3DCollection.cs
- XPathAncestorQuery.cs
- _TimerThread.cs
- DataGridAutomationPeer.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- CompilationSection.cs
- SoapMessage.cs
- SQLGuid.cs
- MetadataUtil.cs
- XPathConvert.cs
- OperatorExpressions.cs
- QuadraticBezierSegment.cs
- EmptyCollection.cs
- GeneralTransform3D.cs
- ConsumerConnectionPointCollection.cs
- RIPEMD160Managed.cs
- HostExecutionContextManager.cs
- DataColumnMappingCollection.cs