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
- PipelineDeploymentState.cs
- MarshalByValueComponent.cs
- ScalarType.cs
- cookie.cs
- LostFocusEventManager.cs
- complextypematerializer.cs
- TypeSemantics.cs
- PointCollectionValueSerializer.cs
- XappLauncher.cs
- EdgeProfileValidation.cs
- CngKey.cs
- TransformedBitmap.cs
- SchemaImporter.cs
- UnsafeNativeMethods.cs
- OLEDB_Enum.cs
- EntityContainer.cs
- ResourcesBuildProvider.cs
- CqlLexerHelpers.cs
- NetworkInterface.cs
- ReadOnlyNameValueCollection.cs
- HostExecutionContextManager.cs
- SafeViewOfFileHandle.cs
- WebPartRestoreVerb.cs
- MSAANativeProvider.cs
- DummyDataSource.cs
- DataSvcMapFileSerializer.cs
- GenericsInstances.cs
- MethodMessage.cs
- MenuItem.cs
- Selector.cs
- LayoutEditorPart.cs
- Section.cs
- TraceHandler.cs
- EntityTypeBase.cs
- ProfileEventArgs.cs
- Executor.cs
- FileSecurity.cs
- XmlDataSourceView.cs
- ShapeTypeface.cs
- DateTimeParse.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- CodeConstructor.cs
- SqlConnectionManager.cs
- SafeCryptHandles.cs
- ContractUtils.cs
- MsmqEncryptionAlgorithm.cs
- ExpandCollapseIsCheckedConverter.cs
- JsonReader.cs
- WorkflowApplicationTerminatedException.cs
- ConvertTextFrag.cs
- EpmSyndicationContentSerializer.cs
- ZoneIdentityPermission.cs
- RangeExpression.cs
- HostVisual.cs
- MimeBasePart.cs
- EmptyQuery.cs
- XmlWriterTraceListener.cs
- SystemEvents.cs
- HwndAppCommandInputProvider.cs
- WebBrowserNavigatedEventHandler.cs
- CurrentTimeZone.cs
- WindowsBrush.cs
- QilPatternFactory.cs
- TextRenderer.cs
- CompilerResults.cs
- RowUpdatingEventArgs.cs
- ApplicationGesture.cs
- RelOps.cs
- AnimationClock.cs
- EDesignUtil.cs
- MgmtConfigurationRecord.cs
- PropertyTab.cs
- BaseDataList.cs
- ProviderException.cs
- ProxyGenerationError.cs
- MetabaseServerConfig.cs
- ObjectDataSourceChooseMethodsPanel.cs
- SQLInt16.cs
- SoapSchemaImporter.cs
- ContextMenu.cs
- webbrowsersite.cs
- InfoCardBinaryReader.cs
- LinkButton.cs
- DefaultBindingPropertyAttribute.cs
- Int32Collection.cs
- ScrollChrome.cs
- Clock.cs
- NeutralResourcesLanguageAttribute.cs
- ScalarType.cs
- XPathNodeList.cs
- SessionParameter.cs
- DataListItem.cs
- LassoSelectionBehavior.cs
- SerializerDescriptor.cs
- QueryReaderSettings.cs
- ReadOnlyDataSource.cs
- Enum.cs
- SystemIPv4InterfaceProperties.cs
- GenerateTemporaryTargetAssembly.cs
- CustomPopupPlacement.cs