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
- TripleDES.cs
- StructureChangedEventArgs.cs
- UnsignedPublishLicense.cs
- TableColumn.cs
- ListViewSelectEventArgs.cs
- TypeSemantics.cs
- DragEventArgs.cs
- BuildManagerHost.cs
- MessageSecurityOverHttpElement.cs
- EntityDataSourceContextDisposingEventArgs.cs
- ExecutionContext.cs
- NamedElement.cs
- PropertyTabChangedEvent.cs
- ImportException.cs
- DocumentReference.cs
- CircleHotSpot.cs
- WebEvents.cs
- Buffer.cs
- ServiceHostingEnvironment.cs
- GPPOINTF.cs
- HintTextMaxWidthConverter.cs
- EditingCommands.cs
- PlaceHolder.cs
- ProtocolInformationWriter.cs
- LicFileLicenseProvider.cs
- ViewStateException.cs
- StreamInfo.cs
- DataConnectionHelper.cs
- configsystem.cs
- xamlnodes.cs
- HeaderCollection.cs
- ZipIOExtraField.cs
- CompoundFileStreamReference.cs
- DbProviderFactory.cs
- SqlTriggerContext.cs
- ArglessEventHandlerProxy.cs
- RefType.cs
- WindowsTitleBar.cs
- ThreadStartException.cs
- MediaPlayerState.cs
- SynchronizedInputAdaptor.cs
- RemoteWebConfigurationHostServer.cs
- BamlMapTable.cs
- Tokenizer.cs
- DetailsViewInsertEventArgs.cs
- SystemFonts.cs
- MemberInfoSerializationHolder.cs
- ScriptReference.cs
- Certificate.cs
- EdmItemCollection.cs
- AppDomainProtocolHandler.cs
- LabelLiteral.cs
- IPipelineRuntime.cs
- RelationshipEnd.cs
- Storyboard.cs
- NetMsmqSecurityElement.cs
- AssociationTypeEmitter.cs
- ToolBarPanel.cs
- SettingsProviderCollection.cs
- Typography.cs
- SettingsAttributes.cs
- RadioButtonList.cs
- BlockCollection.cs
- PolygonHotSpot.cs
- QuarticEase.cs
- DoubleAnimationClockResource.cs
- XmlSchemaRedefine.cs
- CounterCreationDataCollection.cs
- DiscoveryDocumentLinksPattern.cs
- DirtyTextRange.cs
- SignedPkcs7.cs
- InvalidEnumArgumentException.cs
- ColorConvertedBitmap.cs
- WindowsRebar.cs
- DataGridToolTip.cs
- ListViewTableRow.cs
- FileIOPermission.cs
- HandledEventArgs.cs
- DBSchemaRow.cs
- IdentitySection.cs
- ServiceOperationParameter.cs
- Nullable.cs
- WizardForm.cs
- AbsoluteQuery.cs
- OrderedDictionaryStateHelper.cs
- ValidationSummaryDesigner.cs
- StateManagedCollection.cs
- OleDbPermission.cs
- WriteFileContext.cs
- DriveNotFoundException.cs
- CustomValidator.cs
- ErrorWrapper.cs
- WebResourceAttribute.cs
- MultiplexingFormatMapping.cs
- Matrix3D.cs
- Certificate.cs
- PersonalizablePropertyEntry.cs
- xsdvalidator.cs
- BaseComponentEditor.cs
- TypeReference.cs