Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / CancelAsyncOperationRequest.cs / 1 / CancelAsyncOperationRequest.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using System.IO; using System.Text; using IDT = Microsoft.InfoCards.Diagnostics.InfoCardTrace; internal class CancelAsyncOperationRequest : UIAgentRequest { int m_asyncHandle; // // Summary: // Creates an new UIAgentAsyncEndRequest // // Arguments: // rpcHandle: The RPC Context handle. // inArgs: The stream to hold the input arguments // outArgs: The stream to hold the output arguments // parent: the parent UI Request // public CancelAsyncOperationRequest( IntPtr rpcHandle, Stream inArgs, Stream outArgs, ClientUIRequest parent ) : base( rpcHandle, inArgs, outArgs, parent ) { } // // Summary: // Read any inbound arguments. // // Remarks: // read the async context handle we send at the end of the Begin call. // protected override void OnMarshalInArgs() { BinaryReader breader = new InfoCardBinaryReader( InArgs, Encoding.Unicode ); m_asyncHandle = breader.ReadInt32(); IDT.ThrowInvalidArgumentConditional( 0 == m_asyncHandle, "asyncHandle" ); } // // Summary: // No outbound arguments to marshal. // protected override void OnMarshalOutArgs() { } // // Summary: // Process the request, and wait for the async operation to complete or be canceled. // protected override void OnProcess() { // // Look up this Async operation on the parent request and wait for completion. Return any errors by // throwing the exception. // ParentRequest.CancelAsyncOp( m_asyncHandle ); } } } // 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
- PlaceHolder.cs
- _Semaphore.cs
- SafeNativeMethods.cs
- Cursor.cs
- ToolStripRenderEventArgs.cs
- MarkupCompiler.cs
- SelectionProcessor.cs
- UpdateProgress.cs
- Exceptions.cs
- Calendar.cs
- SoapExtensionStream.cs
- FolderBrowserDialog.cs
- ClientUrlResolverWrapper.cs
- ComboBoxItem.cs
- ServerType.cs
- wgx_commands.cs
- ZeroOpNode.cs
- TextViewSelectionProcessor.cs
- HideDisabledControlAdapter.cs
- Exceptions.cs
- SapiGrammar.cs
- TransactionCache.cs
- XPathNodePointer.cs
- Sentence.cs
- XmlSchemaSubstitutionGroup.cs
- SelectionChangedEventArgs.cs
- RegexParser.cs
- PointLightBase.cs
- DataSourceXmlTextReader.cs
- MonitoringDescriptionAttribute.cs
- ParsedAttributeCollection.cs
- SourceInterpreter.cs
- GacUtil.cs
- SettingsPropertyValueCollection.cs
- EmbeddedMailObjectCollectionEditor.cs
- RtfControls.cs
- WebException.cs
- RowUpdatingEventArgs.cs
- SelectionHighlightInfo.cs
- NonParentingControl.cs
- Keyboard.cs
- XmlNamespaceMapping.cs
- SqlMetaData.cs
- FunctionMappingTranslator.cs
- SystemIcmpV4Statistics.cs
- RightsManagementEncryptedStream.cs
- VectorValueSerializer.cs
- SQLBinaryStorage.cs
- PersonalizationStateQuery.cs
- WebPartChrome.cs
- XmlCustomFormatter.cs
- QuaternionKeyFrameCollection.cs
- MediaElement.cs
- JoinTreeSlot.cs
- ExceptionValidationRule.cs
- XmlSchemaValidator.cs
- CloseCryptoHandleRequest.cs
- CodeExpressionStatement.cs
- Int32RectConverter.cs
- Rect3D.cs
- Compiler.cs
- Application.cs
- XmlSchemaType.cs
- LoginViewDesigner.cs
- Behavior.cs
- ReadOnlyDictionary.cs
- CompareValidator.cs
- SecondaryViewProvider.cs
- NativeObjectSecurity.cs
- ValidationSummary.cs
- SmiTypedGetterSetter.cs
- XmlNamespaceDeclarationsAttribute.cs
- FileAuthorizationModule.cs
- GraphicsPathIterator.cs
- DiscreteKeyFrames.cs
- ComponentResourceManager.cs
- SerializationEventsCache.cs
- EmptyStringExpandableObjectConverter.cs
- SqlIdentifier.cs
- OutputCacheSection.cs
- MsmqMessage.cs
- TaiwanLunisolarCalendar.cs
- WebZone.cs
- CacheChildrenQuery.cs
- SiblingIterators.cs
- SynchronizedInputAdaptor.cs
- XmlSchemaSimpleTypeUnion.cs
- Matrix3DStack.cs
- DataTemplate.cs
- XmlAutoDetectWriter.cs
- NavigationWindowAutomationPeer.cs
- DatagridviewDisplayedBandsData.cs
- MasterPageCodeDomTreeGenerator.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- _KerberosClient.cs
- DockPatternIdentifiers.cs
- SafeEventLogReadHandle.cs
- PackageFilter.cs
- ViewBox.cs
- SymbolType.cs