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
- FixedSOMTextRun.cs
- DataObject.cs
- ChangePassword.cs
- Vector3DCollectionValueSerializer.cs
- ObjectViewFactory.cs
- BrowserDefinition.cs
- EndEvent.cs
- TreeViewAutomationPeer.cs
- Soap12ProtocolReflector.cs
- TemplateInstanceAttribute.cs
- SqlCacheDependencySection.cs
- CapabilitiesRule.cs
- MsmqTransportSecurity.cs
- Region.cs
- GenericUriParser.cs
- _ListenerAsyncResult.cs
- x509utils.cs
- XsltCompileContext.cs
- AttributeCallbackBuilder.cs
- SchemaNotation.cs
- CompilerGeneratedAttribute.cs
- OptimizerPatterns.cs
- XmlSchemaComplexContentExtension.cs
- ActivationProxy.cs
- LinqDataSourceStatusEventArgs.cs
- HandledMouseEvent.cs
- ToolStripItemBehavior.cs
- FailedToStartupUIException.cs
- IpcManager.cs
- DataKeyCollection.cs
- SqlTypesSchemaImporter.cs
- MultiTrigger.cs
- InputEventArgs.cs
- DiffuseMaterial.cs
- SymbolType.cs
- CharacterShapingProperties.cs
- ProtectedConfiguration.cs
- CaseInsensitiveComparer.cs
- ValuePattern.cs
- StorageTypeMapping.cs
- itemelement.cs
- CheckoutException.cs
- SqlNotificationRequest.cs
- LookupNode.cs
- LayoutTableCell.cs
- SafeArrayTypeMismatchException.cs
- ComboBoxItem.cs
- TemplateField.cs
- SystemFonts.cs
- TypeBinaryExpression.cs
- ReaderWriterLock.cs
- FlagsAttribute.cs
- Exceptions.cs
- XmlElementList.cs
- InfoCardArgumentException.cs
- Site.cs
- TimersDescriptionAttribute.cs
- BehaviorDragDropEventArgs.cs
- DBSqlParser.cs
- Point3D.cs
- CompilerGlobalScopeAttribute.cs
- XmlSchemaDocumentation.cs
- Latin1Encoding.cs
- DataServiceCollectionOfT.cs
- DocumentPaginator.cs
- FrameworkContentElement.cs
- PointCollection.cs
- GroupBox.cs
- ClientApiGenerator.cs
- PrincipalPermission.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- OdbcFactory.cs
- TypeUtil.cs
- TextMarkerSource.cs
- SqlNodeAnnotations.cs
- DataRecord.cs
- StringValueSerializer.cs
- ScriptReferenceEventArgs.cs
- Propagator.JoinPropagator.cs
- ModuleBuilderData.cs
- CultureNotFoundException.cs
- Control.cs
- SapiRecoInterop.cs
- WebConfigurationHostFileChange.cs
- SmtpReplyReader.cs
- DataControlLinkButton.cs
- DragDropManager.cs
- DynamicPropertyReader.cs
- XmlSerializationGeneratedCode.cs
- MenuItemCollection.cs
- WindowsScrollBarBits.cs
- RowToFieldTransformer.cs
- Substitution.cs
- InstallerTypeAttribute.cs
- SynchronizationContext.cs
- MonitorWrapper.cs
- HtmlElement.cs
- XmlValidatingReaderImpl.cs
- ResourceFallbackManager.cs
- CharacterHit.cs