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
- BitmapEffectOutputConnector.cs
- DataBindEngine.cs
- AuthStoreRoleProvider.cs
- PropertyMetadata.cs
- VerificationException.cs
- MultiPageTextView.cs
- ViewLoader.cs
- WhitespaceSignificantCollectionAttribute.cs
- AccessibleObject.cs
- SourceFileInfo.cs
- ListChangedEventArgs.cs
- ListControlConvertEventArgs.cs
- RelationshipConverter.cs
- DataMemberFieldConverter.cs
- XPathDocumentBuilder.cs
- StringInfo.cs
- _SafeNetHandles.cs
- AtomicFile.cs
- SecurityUtils.cs
- Simplifier.cs
- FaultException.cs
- FileDialogCustomPlaces.cs
- DataControlImageButton.cs
- DateTimeOffsetStorage.cs
- DocumentXmlWriter.cs
- HtmlControlPersistable.cs
- DbConnectionClosed.cs
- SupportsEventValidationAttribute.cs
- ObsoleteAttribute.cs
- x509utils.cs
- AppliedDeviceFiltersDialog.cs
- CommandManager.cs
- ExtentCqlBlock.cs
- MemberDomainMap.cs
- SlipBehavior.cs
- XMLDiffLoader.cs
- DataGridViewHeaderCell.cs
- CursorConverter.cs
- ValuePattern.cs
- DoubleCollectionConverter.cs
- FileDialogCustomPlacesCollection.cs
- VerificationAttribute.cs
- AttributeEmitter.cs
- CounterSetInstanceCounterDataSet.cs
- AutomationPropertyChangedEventArgs.cs
- FormViewUpdateEventArgs.cs
- OdbcConnectionString.cs
- TransformerInfoCollection.cs
- InkCanvasSelection.cs
- GenericUI.cs
- BaseCollection.cs
- Compiler.cs
- SelectionItemPattern.cs
- EventManager.cs
- TagMapInfo.cs
- MailMessage.cs
- IssuedSecurityTokenProvider.cs
- TextRangeEditTables.cs
- tooltip.cs
- MobilePage.cs
- RewritingProcessor.cs
- XmlDictionaryWriter.cs
- Regex.cs
- EncryptedHeaderXml.cs
- OutOfMemoryException.cs
- _RequestCacheProtocol.cs
- AccessibleObject.cs
- SectionInformation.cs
- EventSource.cs
- UriPrefixTable.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- RuntimeWrappedException.cs
- HeaderedItemsControl.cs
- ValidatorCompatibilityHelper.cs
- PolyBezierSegment.cs
- StructuredTypeInfo.cs
- ComAwareEventInfo.cs
- TimeSpanConverter.cs
- StateBag.cs
- CookieProtection.cs
- ObjectManager.cs
- Repeater.cs
- QueryableDataSourceHelper.cs
- Point.cs
- PrintDialog.cs
- BaseCollection.cs
- PhysicalAddress.cs
- ReaderOutput.cs
- LinqDataSource.cs
- EditingCoordinator.cs
- TextPatternIdentifiers.cs
- AssociationEndMember.cs
- XmlNullResolver.cs
- BindableTemplateBuilder.cs
- Wrapper.cs
- Stack.cs
- AutoGeneratedField.cs
- ComponentConverter.cs
- DataContractSerializerFaultFormatter.cs
- safelinkcollection.cs