Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / TransactionBridge / Microsoft / Transactions / Wsat / Messaging / AsyncCallback.cs / 1 / AsyncCallback.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- // Define asynchronous callback classes used when sending async messages using System; using System.ServiceModel.Channels; using System.Diagnostics; using System.ServiceModel; using System.Transactions; using System.Xml; namespace Microsoft.Transactions.Wsat.Messaging { // This class represents the completion of a request/reply message dispatched by ServiceModel class RequestAsyncResult : AsyncResult { Message reply; MessageVersion messageVersion; UniqueId messageID; public RequestAsyncResult (Message message, AsyncCallback callback, object state) : base (callback, state) { this.messageVersion = message.Version; this.messageID = message.Headers.MessageId; } public MessageVersion MessageVersion { get { return this.messageVersion; } } public UniqueId MessageId { get { return this.messageID; } } public Message Reply { get { return this.reply; } } public void Finished (Message reply) { this.reply = reply; this.Complete (false); } public void Finished (Exception exception) { this.Complete (false, exception); } public void End() { AsyncResult.End(this); } } // This class exists to provide the illusion that a BeginSend operation only throws on End class SendMessageFailureAsyncResult : AsyncResult { public SendMessageFailureAsyncResult (Exception e, AsyncCallback callback, object state) : base (callback, state) { base.Complete (true, e); } public void End() { AsyncResult.End (this); } } } // 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
- ListenerAdapter.cs
- IdentityNotMappedException.cs
- StreamGeometry.cs
- HtmlFormWrapper.cs
- ValueUtilsSmi.cs
- LowerCaseStringConverter.cs
- TdsParserSessionPool.cs
- RemoteArgument.cs
- ValidateNames.cs
- DBPropSet.cs
- DataGridViewColumnCollection.cs
- EntityConnection.cs
- TextElementCollection.cs
- ColorConvertedBitmap.cs
- PropertySourceInfo.cs
- SocketElement.cs
- TableRowCollection.cs
- DataGridViewColumnEventArgs.cs
- LostFocusEventManager.cs
- SystemWebCachingSectionGroup.cs
- SectionUpdates.cs
- PenLineJoinValidation.cs
- XPathPatternParser.cs
- AsyncInvokeContext.cs
- RegistrationServices.cs
- TextElementCollectionHelper.cs
- CodeEntryPointMethod.cs
- WindowsListViewItem.cs
- LayoutManager.cs
- SmiMetaDataProperty.cs
- IconConverter.cs
- TemplateBamlTreeBuilder.cs
- XmlSchemaObjectCollection.cs
- WSDualHttpSecurityElement.cs
- XPathNodeInfoAtom.cs
- DataGridViewSortCompareEventArgs.cs
- StorageFunctionMapping.cs
- EntityClassGenerator.cs
- InstanceCreationEditor.cs
- XmlIgnoreAttribute.cs
- AssemblyHash.cs
- ASCIIEncoding.cs
- IdentityNotMappedException.cs
- Thickness.cs
- InputDevice.cs
- MemberMemberBinding.cs
- DataIdProcessor.cs
- MatrixStack.cs
- CommandID.cs
- AttributeUsageAttribute.cs
- LazyTextWriterCreator.cs
- oledbmetadatacollectionnames.cs
- CqlLexer.cs
- HttpStreamMessageEncoderFactory.cs
- LocationReference.cs
- PlainXmlDeserializer.cs
- TrackBar.cs
- TreeNodeBinding.cs
- WinInet.cs
- GeneratedContractType.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- SqlDataSourceEnumerator.cs
- FontDifferentiator.cs
- XmlDataCollection.cs
- ByteStorage.cs
- WebPartHeaderCloseVerb.cs
- CacheChildrenQuery.cs
- CharacterMetricsDictionary.cs
- SoundPlayerAction.cs
- DesignTimeType.cs
- CatalogPart.cs
- BinaryFormatter.cs
- RemotingConfiguration.cs
- SHA1Managed.cs
- SqlDataReader.cs
- AbstractDataSvcMapFileLoader.cs
- TreeWalker.cs
- DataTableReaderListener.cs
- TextTreePropertyUndoUnit.cs
- DateTimePicker.cs
- MergeFailedEvent.cs
- ZipIOModeEnforcingStream.cs
- TextViewDesigner.cs
- ACL.cs
- Highlights.cs
- RenderDataDrawingContext.cs
- ActivityCollectionMarkupSerializer.cs
- XmlSchemaAll.cs
- HttpHandlerActionCollection.cs
- ComponentSerializationService.cs
- ColorConvertedBitmapExtension.cs
- TextLine.cs
- Input.cs
- EncodingTable.cs
- DescendantBaseQuery.cs
- WebBrowserNavigatingEventHandler.cs
- _NegotiateClient.cs
- PropertyChangedEventArgs.cs
- AsyncResult.cs
- DesignRelation.cs