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
- SoapSchemaImporter.cs
- XmlChildEnumerator.cs
- WebConfigurationHostFileChange.cs
- CurrentChangedEventManager.cs
- DeleteHelper.cs
- RtfControls.cs
- Logging.cs
- ACE.cs
- BaseResourcesBuildProvider.cs
- OrderedDictionary.cs
- Trace.cs
- AssociationTypeEmitter.cs
- CorrelationInitializer.cs
- SQLInt16Storage.cs
- DiagnosticTraceSource.cs
- DuplicateWaitObjectException.cs
- GridView.cs
- ObservableCollectionDefaultValueFactory.cs
- _LocalDataStore.cs
- BasicHttpSecurityElement.cs
- CommonGetThemePartSize.cs
- BaseInfoTable.cs
- NativeMethodsOther.cs
- DbMetaDataCollectionNames.cs
- AccessKeyManager.cs
- ExpressionParser.cs
- XmlWrappingWriter.cs
- SecurityContextCookieSerializer.cs
- VirtualPath.cs
- RectangleGeometry.cs
- WindowsToolbarItemAsMenuItem.cs
- ProfileParameter.cs
- DiscardableAttribute.cs
- XmlDataCollection.cs
- MethodRental.cs
- FloaterBaseParaClient.cs
- WebSysDescriptionAttribute.cs
- DataRow.cs
- UIElementHelper.cs
- DataGridCell.cs
- CapacityStreamGeometryContext.cs
- DataControlField.cs
- SHA256Cng.cs
- MachineSettingsSection.cs
- ApplicationGesture.cs
- DataServiceExpressionVisitor.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- ControlValuePropertyAttribute.cs
- DockPanel.cs
- ChildChangedEventArgs.cs
- ZoneLinkButton.cs
- JsonClassDataContract.cs
- Calendar.cs
- DataViewManager.cs
- HttpResponse.cs
- PriorityItem.cs
- MouseButton.cs
- NameTable.cs
- ObjectAnimationBase.cs
- Int16Converter.cs
- UniqueEventHelper.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ThreadStartException.cs
- TypefaceCollection.cs
- ViewStateException.cs
- DbConnectionPool.cs
- SamlAttributeStatement.cs
- CompilerGlobalScopeAttribute.cs
- DependencyPropertyAttribute.cs
- ThicknessKeyFrameCollection.cs
- NodeInfo.cs
- HttpClientCertificate.cs
- RuntimeHelpers.cs
- SnapshotChangeTrackingStrategy.cs
- InlineObject.cs
- Rijndael.cs
- ComponentEditorForm.cs
- GridViewDeletedEventArgs.cs
- DataFormats.cs
- SqlNodeAnnotations.cs
- PasswordBox.cs
- Style.cs
- TitleStyle.cs
- SID.cs
- AuthenticateEventArgs.cs
- BaseHashHelper.cs
- StrongNameKeyPair.cs
- SystemIcmpV6Statistics.cs
- unitconverter.cs
- ConfigXmlSignificantWhitespace.cs
- PeerNameRecord.cs
- SplashScreen.cs
- DrawingVisualDrawingContext.cs
- ServiceObjectContainer.cs
- RequestCacheManager.cs
- DataReaderContainer.cs
- SetterBaseCollection.cs
- Form.cs
- GetWorkflowTree.cs
- WebPartEditorApplyVerb.cs