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
- ColorDialog.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- BamlTreeUpdater.cs
- dbenumerator.cs
- FrameworkReadOnlyPropertyMetadata.cs
- IgnoreFileBuildProvider.cs
- CroppedBitmap.cs
- SpeechUI.cs
- BamlRecords.cs
- EventMappingSettings.cs
- DataSourceControlBuilder.cs
- TableItemStyle.cs
- Size3DConverter.cs
- ServicePoint.cs
- HtmlTable.cs
- DtdParser.cs
- GraphicsContext.cs
- TraceLevelStore.cs
- DialogResultConverter.cs
- FrameworkElementAutomationPeer.cs
- TypeValidationEventArgs.cs
- InternalConfigHost.cs
- UpdateException.cs
- Int32AnimationBase.cs
- SqlExpander.cs
- basemetadatamappingvisitor.cs
- WorkflowEventArgs.cs
- ReadWriteObjectLock.cs
- MostlySingletonList.cs
- DiagnosticTrace.cs
- ValueTypeFixupInfo.cs
- GuidTagList.cs
- XmlDigitalSignatureProcessor.cs
- SafeNativeMethods.cs
- EncoderParameter.cs
- SecurityBindingElementImporter.cs
- OdbcInfoMessageEvent.cs
- BinaryReader.cs
- VisualCollection.cs
- XslTransformFileEditor.cs
- ResourceDictionaryCollection.cs
- ArrayExtension.cs
- TableAutomationPeer.cs
- regiisutil.cs
- AstTree.cs
- ProcessModule.cs
- NameSpaceEvent.cs
- WmlCommandAdapter.cs
- TextEncodedRawTextWriter.cs
- DirtyTextRange.cs
- StylusPointPropertyInfo.cs
- XPathNodeHelper.cs
- LayoutDump.cs
- TypeUnloadedException.cs
- EmptyStringExpandableObjectConverter.cs
- EndOfStreamException.cs
- tooltip.cs
- AuthorizationRuleCollection.cs
- Models.cs
- GregorianCalendar.cs
- dbenumerator.cs
- C14NUtil.cs
- ImageSourceConverter.cs
- BindingListCollectionView.cs
- ComNativeDescriptor.cs
- BindingExpressionUncommonField.cs
- WmlCalendarAdapter.cs
- PageClientProxyGenerator.cs
- InternalRelationshipCollection.cs
- SpecialFolderEnumConverter.cs
- FaultDescription.cs
- ResumeStoryboard.cs
- ProcessRequestArgs.cs
- XPathNodePointer.cs
- RuleSettingsCollection.cs
- ScrollableControl.cs
- StrokeNode.cs
- CannotUnloadAppDomainException.cs
- XamlReader.cs
- SchemaNotation.cs
- CalendarKeyboardHelper.cs
- SurrogateEncoder.cs
- ToolboxCategory.cs
- ActiveXHelper.cs
- PassportAuthenticationModule.cs
- DesignSurface.cs
- QilChoice.cs
- RoutingExtensionElement.cs
- BitmapEffectDrawingContextWalker.cs
- UInt16.cs
- Itemizer.cs
- PropertyGeneratedEventArgs.cs
- TdsValueSetter.cs
- ItemsPresenter.cs
- ConnectionPool.cs
- FlowDocumentScrollViewer.cs
- ExpressionBinding.cs
- UriParserTemplates.cs
- sqlnorm.cs
- TreeNodeClickEventArgs.cs