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
- GatewayDefinition.cs
- WebPartMenu.cs
- SimpleFileLog.cs
- ToolStripComboBox.cs
- XmlTypeMapping.cs
- JsonGlobals.cs
- SevenBitStream.cs
- AssemblyAttributes.cs
- Dictionary.cs
- SafeNativeMethods.cs
- LabelEditEvent.cs
- NativeCompoundFileAPIs.cs
- X509ThumbprintKeyIdentifierClause.cs
- OrderByBuilder.cs
- TypeUtil.cs
- SqlRowUpdatedEvent.cs
- OneWayBindingElementImporter.cs
- XmlEncodedRawTextWriter.cs
- NoResizeSelectionBorderGlyph.cs
- XmlArrayItemAttributes.cs
- JsonEncodingStreamWrapper.cs
- PresentationUIStyleResources.cs
- TextLineResult.cs
- ToolboxItemAttribute.cs
- TransactionTraceIdentifier.cs
- ElementFactory.cs
- METAHEADER.cs
- SortKey.cs
- DocumentViewerHelper.cs
- DesignParameter.cs
- HealthMonitoringSection.cs
- BadImageFormatException.cs
- CodePropertyReferenceExpression.cs
- WebBrowserBase.cs
- EntityViewGenerationConstants.cs
- DeclarativeConditionsCollection.cs
- TimeSpanValidator.cs
- Queue.cs
- WebPartManagerInternals.cs
- Point4D.cs
- _NtlmClient.cs
- ScriptServiceAttribute.cs
- AsnEncodedData.cs
- ImmutableObjectAttribute.cs
- ThreadAbortException.cs
- DelayedRegex.cs
- GridViewColumnCollection.cs
- RadioButton.cs
- LocalizableResourceBuilder.cs
- RegexFCD.cs
- WindowsBrush.cs
- DataReceivedEventArgs.cs
- XmlCollation.cs
- Encoder.cs
- PropertyToken.cs
- ToolStripDropTargetManager.cs
- SystemIcmpV6Statistics.cs
- RolePrincipal.cs
- XmlSchemaGroup.cs
- TripleDESCryptoServiceProvider.cs
- EntryPointNotFoundException.cs
- ArcSegment.cs
- SQLBinaryStorage.cs
- InternalMappingException.cs
- BamlBinaryWriter.cs
- CorrelationQueryBehavior.cs
- OnOperation.cs
- XamlDesignerSerializationManager.cs
- IDQuery.cs
- BaseComponentEditor.cs
- WebPartConnectionsCancelVerb.cs
- RegionIterator.cs
- SchemaCollectionPreprocessor.cs
- EncryptedData.cs
- WindowsFormsSynchronizationContext.cs
- BaseResourcesBuildProvider.cs
- BordersPage.cs
- MeasurementDCInfo.cs
- nulltextcontainer.cs
- _DomainName.cs
- MetadataArtifactLoader.cs
- XmlIlVisitor.cs
- ScriptingSectionGroup.cs
- BeginStoryboard.cs
- View.cs
- TransportElement.cs
- FormatSettings.cs
- Size.cs
- ObjectDataSourceSelectingEventArgs.cs
- DataGridViewRowPostPaintEventArgs.cs
- IntSecurity.cs
- TableLayoutStyle.cs
- WebConfigurationManager.cs
- SByteStorage.cs
- ElementsClipboardData.cs
- BinaryFormatterWriter.cs
- MarkerProperties.cs
- ProfilePropertySettingsCollection.cs
- CacheHelper.cs
- DocumentPageViewAutomationPeer.cs