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
- TextBox.cs
- CapabilitiesSection.cs
- DataGridColumnHeadersPresenter.cs
- HttpErrorTraceRecord.cs
- CacheMode.cs
- GridViewActionList.cs
- PropertyChangingEventArgs.cs
- SelectorAutomationPeer.cs
- ThreadInterruptedException.cs
- RNGCryptoServiceProvider.cs
- RankException.cs
- ForceCopyBuildProvider.cs
- ReadWriteSpinLock.cs
- listviewsubitemcollectioneditor.cs
- WebPartMovingEventArgs.cs
- WSFederationHttpBinding.cs
- ListBindableAttribute.cs
- IndexerReference.cs
- CancellationToken.cs
- ObjectNavigationPropertyMapping.cs
- CompModSwitches.cs
- GrammarBuilderRuleRef.cs
- DataContext.cs
- MultiByteCodec.cs
- AssemblySettingAttributes.cs
- List.cs
- NumericExpr.cs
- X509Certificate2Collection.cs
- CaseInsensitiveHashCodeProvider.cs
- CalendarTable.cs
- COM2Enum.cs
- WebHttpSecurityElement.cs
- CharacterHit.cs
- XmlDataProvider.cs
- XPathAncestorQuery.cs
- Int32Rect.cs
- ReliableSessionElement.cs
- LayoutEditorPart.cs
- HtmlInputSubmit.cs
- MethodToken.cs
- GridView.cs
- Sequence.cs
- IndexedEnumerable.cs
- WorkingDirectoryEditor.cs
- DataBindingList.cs
- HyperLink.cs
- Context.cs
- ContentElementAutomationPeer.cs
- CodePageEncoding.cs
- DataGridLinkButton.cs
- BackgroundWorker.cs
- ListViewInsertionMark.cs
- MaterialGroup.cs
- QueryRewriter.cs
- IriParsingElement.cs
- UrlParameterReader.cs
- TypeTypeConverter.cs
- TimelineGroup.cs
- SiteMapProvider.cs
- Normalization.cs
- PackWebRequest.cs
- Constants.cs
- SafeSystemMetrics.cs
- OleDbParameterCollection.cs
- MdiWindowListItemConverter.cs
- IsolatedStorageFileStream.cs
- FileReader.cs
- DataRowCollection.cs
- XmlSchemaGroupRef.cs
- LoginView.cs
- ServiceEndpointAssociationProvider.cs
- PropertyEntry.cs
- FixedElement.cs
- RoamingStoreFile.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ByteBufferPool.cs
- ControlOperationBehavior.cs
- InvokeWebService.cs
- ConnectionStringSettingsCollection.cs
- RectIndependentAnimationStorage.cs
- DataViewSettingCollection.cs
- SqlDataSourceSummaryPanel.cs
- HotSpot.cs
- HtmlInputImage.cs
- HandlerFactoryCache.cs
- InputBinding.cs
- FileFormatException.cs
- HandlerFactoryCache.cs
- NullableLongMinMaxAggregationOperator.cs
- ChannelSinkStacks.cs
- Wildcard.cs
- DataErrorValidationRule.cs
- DataGridViewDataConnection.cs
- WindowsGraphicsCacheManager.cs
- SystemIPAddressInformation.cs
- SessionStateModule.cs
- TextElementAutomationPeer.cs
- SqlProfileProvider.cs
- SoapAttributeOverrides.cs
- OleDbReferenceCollection.cs