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
- FixedDSBuilder.cs
- SingleStorage.cs
- AssemblyInfo.cs
- SchemaHelper.cs
- TagMapInfo.cs
- serverconfig.cs
- Vector3D.cs
- SiteMapNodeItemEventArgs.cs
- ConfigXmlAttribute.cs
- EventRoute.cs
- TriggerBase.cs
- ToolStripPanelRow.cs
- CompilationUtil.cs
- SuppressIldasmAttribute.cs
- State.cs
- BindingMAnagerBase.cs
- CalendarDay.cs
- _ListenerResponseStream.cs
- WebPartVerbCollection.cs
- TypeLibConverter.cs
- UInt64.cs
- TextBox.cs
- WebOperationContext.cs
- WindowsMenu.cs
- OneOfElement.cs
- WsiProfilesElement.cs
- DataErrorValidationRule.cs
- SigningCredentials.cs
- serverconfig.cs
- TextEditorThreadLocalStore.cs
- XPathSingletonIterator.cs
- RichTextBoxConstants.cs
- ToolboxItemCollection.cs
- PointLightBase.cs
- TransformProviderWrapper.cs
- LineGeometry.cs
- StorageComplexPropertyMapping.cs
- Point3DKeyFrameCollection.cs
- FontDifferentiator.cs
- DrawingAttributesDefaultValueFactory.cs
- CodeExpressionCollection.cs
- DataListItemCollection.cs
- RemotingServices.cs
- ErrorHandler.cs
- WindowsScroll.cs
- DiagnosticSection.cs
- MachineKeyConverter.cs
- WasEndpointConfigContainer.cs
- ToolStripAdornerWindowService.cs
- DependencyObjectValidator.cs
- ParseChildrenAsPropertiesAttribute.cs
- IndexedString.cs
- DataServiceQueryContinuation.cs
- TemplateBindingExtension.cs
- ContextProperty.cs
- StringExpressionSet.cs
- RegexStringValidatorAttribute.cs
- XmlILConstructAnalyzer.cs
- PackagePartCollection.cs
- UserControlParser.cs
- TextEditorMouse.cs
- GradientBrush.cs
- StackBuilderSink.cs
- FacetDescriptionElement.cs
- Win32.cs
- FilteredXmlReader.cs
- DropShadowEffect.cs
- TypeElement.cs
- SizeKeyFrameCollection.cs
- CqlIdentifiers.cs
- TableParagraph.cs
- Types.cs
- ModelItem.cs
- MetadataCacheItem.cs
- ImplicitInputBrush.cs
- LicenseManager.cs
- XPathConvert.cs
- Process.cs
- Int32AnimationUsingKeyFrames.cs
- CollectionView.cs
- ManagementObjectSearcher.cs
- AudioStateChangedEventArgs.cs
- RoutingChannelExtension.cs
- ArrowControl.xaml.cs
- AppDomainUnloadedException.cs
- Enlistment.cs
- StateManagedCollection.cs
- TemplateColumn.cs
- AccessorTable.cs
- RedistVersionInfo.cs
- SqlTriggerContext.cs
- XmlNamespaceManager.cs
- InitializationEventAttribute.cs
- IDReferencePropertyAttribute.cs
- ContentPosition.cs
- JsonEncodingStreamWrapper.cs
- ToolStripStatusLabel.cs
- Cloud.cs
- TransactionState.cs
- ConfigurationManagerHelper.cs