Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SafeNativeMethods.cs
- BufferModesCollection.cs
- EncodedStreamFactory.cs
- UniqueEventHelper.cs
- DiscoveryClientElement.cs
- QilReplaceVisitor.cs
- RSAPKCS1SignatureDeformatter.cs
- StackSpiller.cs
- CompilerInfo.cs
- ListViewItem.cs
- HttpWebResponse.cs
- WindowHideOrCloseTracker.cs
- ValidationHelper.cs
- dataobject.cs
- CreateParams.cs
- Token.cs
- RecordManager.cs
- CodeGenHelper.cs
- Module.cs
- DefaultProxySection.cs
- DbProviderSpecificTypePropertyAttribute.cs
- NameValueSectionHandler.cs
- LicenseManager.cs
- Triplet.cs
- Pen.cs
- SQLBytes.cs
- MembershipSection.cs
- SecurityException.cs
- OracleString.cs
- HealthMonitoringSectionHelper.cs
- WindowsListViewItemCheckBox.cs
- FontWeights.cs
- CustomLineCap.cs
- SrgsNameValueTag.cs
- InputBinding.cs
- _NtlmClient.cs
- PackageStore.cs
- StreamingContext.cs
- SafeRightsManagementEnvironmentHandle.cs
- ISAPIApplicationHost.cs
- DataGridViewCellMouseEventArgs.cs
- CompileLiteralTextParser.cs
- regiisutil.cs
- GridPattern.cs
- XmlTextAttribute.cs
- Encoding.cs
- TrustManager.cs
- ImplicitInputBrush.cs
- SmtpReplyReaderFactory.cs
- SchemaComplexType.cs
- FormsAuthenticationEventArgs.cs
- HostSecurityManager.cs
- IPAddress.cs
- DigestTraceRecordHelper.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- ViewKeyConstraint.cs
- ObjectStateFormatter.cs
- MetadataArtifactLoaderCompositeFile.cs
- EncryptedKeyIdentifierClause.cs
- TTSVoice.cs
- DetailsViewRow.cs
- AnnotationResourceChangedEventArgs.cs
- Win32PrintDialog.cs
- ChangeConflicts.cs
- StringOutput.cs
- EventItfInfo.cs
- UserControlBuildProvider.cs
- MenuItemBindingCollection.cs
- WebPartZone.cs
- ExtentJoinTreeNode.cs
- LoginView.cs
- PanelStyle.cs
- PropertyValueUIItem.cs
- basenumberconverter.cs
- ObjectAnimationBase.cs
- Brush.cs
- IgnoreDeviceFilterElementCollection.cs
- LostFocusEventManager.cs
- BaseProcessor.cs
- FromRequest.cs
- AssociationType.cs
- FilterableAttribute.cs
- XmlArrayItemAttribute.cs
- EmptyWorkItem.cs
- TableCell.cs
- HeaderUtility.cs
- MatrixTransform.cs
- Crc32Helper.cs
- Rotation3DAnimation.cs
- MessageHeaderDescriptionCollection.cs
- WindowsTreeView.cs
- TableStyle.cs
- CustomAttribute.cs
- ColorConvertedBitmap.cs
- Deflater.cs
- IUnknownConstantAttribute.cs
- EventlogProvider.cs
- BaseProcessor.cs
- SHA1Managed.cs
- EventPropertyMap.cs