Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / 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 : [....] 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
- TemplateControlCodeDomTreeGenerator.cs
- HostedTcpTransportManager.cs
- CompilationLock.cs
- CharacterMetrics.cs
- PtsHost.cs
- Durable.cs
- SymLanguageVendor.cs
- ISAPIRuntime.cs
- XmlSerializableReader.cs
- NonClientArea.cs
- WindowsToolbarAsMenu.cs
- MenuItemBinding.cs
- GlyphingCache.cs
- EncryptedPackageFilter.cs
- OleDbCommand.cs
- JsonSerializer.cs
- WeakReference.cs
- IIS7UserPrincipal.cs
- TheQuery.cs
- CharacterBuffer.cs
- FormViewUpdatedEventArgs.cs
- Image.cs
- HttpHandlerAction.cs
- HandlerFactoryWrapper.cs
- Int32.cs
- ProgressBarBrushConverter.cs
- XmlNodeList.cs
- ColumnMapTranslator.cs
- DurableMessageDispatchInspector.cs
- IConvertible.cs
- PatternMatcher.cs
- SqlClientPermission.cs
- TreeSet.cs
- StringAnimationBase.cs
- DbConnectionPoolGroup.cs
- TransformGroup.cs
- HtmlGenericControl.cs
- RequestSecurityTokenResponse.cs
- LocalizationParserHooks.cs
- EnumerableCollectionView.cs
- MsmqActivation.cs
- DeclarativeCatalogPart.cs
- PageBuildProvider.cs
- InfoCardTraceRecord.cs
- WebPartPersonalization.cs
- WsdlContractConversionContext.cs
- TypedDataSourceCodeGenerator.cs
- RightsManagementEncryptedStream.cs
- unsafenativemethodsother.cs
- EncodingNLS.cs
- AppDomainUnloadedException.cs
- HttpDebugHandler.cs
- ToolStripManager.cs
- DataFieldConverter.cs
- CompareValidator.cs
- AttributeSetAction.cs
- InkCanvasSelection.cs
- ExitEventArgs.cs
- Point3DConverter.cs
- BufferBuilder.cs
- DataGridViewMethods.cs
- HtmlContainerControl.cs
- SqlXml.cs
- UrlMappingCollection.cs
- WindowsPen.cs
- X509CertificateCollection.cs
- SrgsSubset.cs
- SQLMembershipProvider.cs
- SqlTriggerAttribute.cs
- DesignBindingConverter.cs
- UnhandledExceptionEventArgs.cs
- HealthMonitoringSection.cs
- XmlIlTypeHelper.cs
- DataViewManagerListItemTypeDescriptor.cs
- TextStore.cs
- BindingManagerDataErrorEventArgs.cs
- ResourceProperty.cs
- BaseDataList.cs
- CommonProperties.cs
- SubtreeProcessor.cs
- WebBaseEventKeyComparer.cs
- ScriptResourceDefinition.cs
- WbemException.cs
- ReadOnlyMetadataCollection.cs
- DeflateStream.cs
- ConcurrentDictionary.cs
- Size.cs
- TraceSection.cs
- SocketAddress.cs
- SchemaTypeEmitter.cs
- SizeAnimationClockResource.cs
- XmlSignatureProperties.cs
- EventLog.cs
- SecurityTokenSpecification.cs
- BitConverter.cs
- BufferedGraphicsManager.cs
- SchemaName.cs
- CatalogPartCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DataGridDesigner.cs