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
- CodeBinaryOperatorExpression.cs
- TemplatedWizardStep.cs
- MemberListBinding.cs
- SrgsSubset.cs
- WebBrowserSiteBase.cs
- WorkflowServiceInstance.cs
- WebPartConnectionsCloseVerb.cs
- CodeGroup.cs
- CrossAppDomainChannel.cs
- DbQueryCommandTree.cs
- ZoneLinkButton.cs
- RectKeyFrameCollection.cs
- MessageFilter.cs
- BitmapEffectInputConnector.cs
- JoinTreeSlot.cs
- SQLInt32.cs
- SchemaTypeEmitter.cs
- EntityCodeGenerator.cs
- XmlTypeAttribute.cs
- Point3DAnimationBase.cs
- HttpListenerException.cs
- DateTimeOffset.cs
- ListControlBuilder.cs
- ToggleProviderWrapper.cs
- UrlRoutingHandler.cs
- ReflectPropertyDescriptor.cs
- IndexedWhereQueryOperator.cs
- WorkerRequest.cs
- CodeMemberEvent.cs
- ExitEventArgs.cs
- CapabilitiesSection.cs
- TransformValueSerializer.cs
- KeyInfo.cs
- DbException.cs
- ToolBar.cs
- CodeDirectoryCompiler.cs
- CompareInfo.cs
- Camera.cs
- webproxy.cs
- ItemType.cs
- Schema.cs
- ClientBuildManagerCallback.cs
- DataGridLinkButton.cs
- DtdParser.cs
- WebConfigurationFileMap.cs
- TileBrush.cs
- ColorAnimation.cs
- DelegatingTypeDescriptionProvider.cs
- _HTTPDateParse.cs
- WSFederationHttpSecurityElement.cs
- FormViewRow.cs
- FindSimilarActivitiesVerb.cs
- ClientSettingsProvider.cs
- InstanceStoreQueryResult.cs
- ObjectTag.cs
- SecureStringHasher.cs
- StateMachineSubscription.cs
- TextSelectionHelper.cs
- NumberSubstitution.cs
- PropertyGridView.cs
- ArraySubsetEnumerator.cs
- ImportCatalogPart.cs
- CachedPathData.cs
- HttpListenerResponse.cs
- SystemNetHelpers.cs
- DataBindEngine.cs
- DbConnectionPoolIdentity.cs
- XmlComplianceUtil.cs
- Token.cs
- StringFreezingAttribute.cs
- CompositeDataBoundControl.cs
- Popup.cs
- baseaxisquery.cs
- IgnoreDataMemberAttribute.cs
- Function.cs
- WindowsTooltip.cs
- SystemIcons.cs
- XmlChildEnumerator.cs
- EnumValidator.cs
- HostingEnvironmentSection.cs
- WebPartTransformerAttribute.cs
- RadioButton.cs
- EntityContainerEmitter.cs
- FaultDesigner.cs
- XmlObjectSerializerWriteContext.cs
- BindingMemberInfo.cs
- DebugTracing.cs
- WorkflowApplicationCompletedException.cs
- InlineCollection.cs
- SplayTreeNode.cs
- DiscoveryOperationContext.cs
- GPPOINTF.cs
- PlanCompiler.cs
- MulticastDelegate.cs
- ListViewPagedDataSource.cs
- MethodRental.cs
- SqlDataSourceConfigureFilterForm.cs
- CompositionTarget.cs
- InlineCollection.cs
- Baml2006KnownTypes.cs