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
- XmlnsPrefixAttribute.cs
- Stopwatch.cs
- CheckBox.cs
- SchemaHelper.cs
- ScrollProperties.cs
- ViewCellRelation.cs
- WindowsGraphics.cs
- ToolStripDropDownMenu.cs
- BindingList.cs
- GetKeyedHashRequest.cs
- InternalTypeHelper.cs
- diagnosticsswitches.cs
- ItemCheckEvent.cs
- ObjectAnimationUsingKeyFrames.cs
- InputScopeConverter.cs
- LightweightEntityWrapper.cs
- NavigationService.cs
- DebugView.cs
- ReversePositionQuery.cs
- ComponentResourceManager.cs
- HttpAsyncResult.cs
- GridViewSortEventArgs.cs
- SimpleWorkerRequest.cs
- TemplateBindingExpressionConverter.cs
- Action.cs
- SynchronousChannelMergeEnumerator.cs
- IntSumAggregationOperator.cs
- StringOutput.cs
- VSWCFServiceContractGenerator.cs
- Empty.cs
- ProxyManager.cs
- SiteMapProvider.cs
- DynamicMethod.cs
- EntityContainerEmitter.cs
- CompareValidator.cs
- BamlTreeMap.cs
- CfgParser.cs
- ParallelTimeline.cs
- SecurityException.cs
- DataColumnMappingCollection.cs
- FirewallWrapper.cs
- EnumMember.cs
- LicenseProviderAttribute.cs
- DescendentsWalkerBase.cs
- ViewCellSlot.cs
- DetailsViewCommandEventArgs.cs
- Subordinate.cs
- KeySplineConverter.cs
- ValidatorUtils.cs
- OrderablePartitioner.cs
- KeyValueConfigurationElement.cs
- WmfPlaceableFileHeader.cs
- Normalization.cs
- DataSourceSerializationException.cs
- SiteMapProvider.cs
- ConfigUtil.cs
- HwndSourceKeyboardInputSite.cs
- ConfigPathUtility.cs
- ServiceObjectContainer.cs
- IndependentlyAnimatedPropertyMetadata.cs
- CssClassPropertyAttribute.cs
- SettingsProperty.cs
- SystemIPGlobalProperties.cs
- MsmqUri.cs
- IncrementalReadDecoders.cs
- DrawingCollection.cs
- DataGridViewTextBoxColumn.cs
- HttpModuleActionCollection.cs
- TextParagraphCache.cs
- TreeView.cs
- RuleSettingsCollection.cs
- SafeTimerHandle.cs
- QuaternionValueSerializer.cs
- PngBitmapEncoder.cs
- ColorKeyFrameCollection.cs
- ResumeStoryboard.cs
- Message.cs
- SynchronizedDispatch.cs
- GcSettings.cs
- PrinterResolution.cs
- CorrelationValidator.cs
- XmlSchemaSubstitutionGroup.cs
- RootProfilePropertySettingsCollection.cs
- Size.cs
- MatrixUtil.cs
- InvalidAsynchronousStateException.cs
- PackWebResponse.cs
- AutomationPropertyInfo.cs
- DataIdProcessor.cs
- SortKey.cs
- InitialServerConnectionReader.cs
- RoleManagerSection.cs
- EllipticalNodeOperations.cs
- LogLogRecordHeader.cs
- GeneralTransform2DTo3DTo2D.cs
- DelegateHelpers.Generated.cs
- Msec.cs
- Math.cs
- RijndaelManagedTransform.cs
- ObjectManager.cs