Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / TransactionBridge / Microsoft / Transactions / Wsat / Messaging / CompletionProxy.cs / 1 / CompletionProxy.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- // Define the interfaces and infrastructure needed to send completion messages using System; using System.ServiceModel.Channels; using System.ServiceModel; using System.Transactions; namespace Microsoft.Transactions.Wsat.Messaging { class CompletionCoordinatorProxy : DatagramProxy { public CompletionCoordinatorProxy(CoordinationService coordination, EndpointAddress to, EndpointAddress from) : base(coordination, to, from) { } public IAsyncResult BeginSendCommit(AsyncCallback callback, object state) { Message message = new CommitMessage(this.messageVersion, this.protocolVersion); return BeginSendMessage(message, callback, state); } public IAsyncResult BeginSendRollback(AsyncCallback callback, object state) { Message message = new RollbackMessage(this.messageVersion, this.protocolVersion); return BeginSendMessage(message, callback, state); } } class CompletionParticipantProxy : DatagramProxy { public CompletionParticipantProxy(CoordinationService coordination, EndpointAddress to) : base(coordination, to, null) { } public IAsyncResult BeginSendCommitted(AsyncCallback callback, object state) { Message message = new CommittedMessage(this.messageVersion, this.protocolVersion); return BeginSendMessage(message, callback, state); } public IAsyncResult BeginSendAborted(AsyncCallback callback, object state) { Message message = new AbortedMessage(this.messageVersion, this.protocolVersion); return BeginSendMessage(message, callback, state); } } } // 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
- CryptoKeySecurity.cs
- NestedContainer.cs
- ColumnClickEvent.cs
- StylusOverProperty.cs
- BitmapEffect.cs
- CultureInfoConverter.cs
- ArraySegment.cs
- ObjectCache.cs
- PointCollection.cs
- ErrorFormatterPage.cs
- MsmqReceiveParameters.cs
- XmlSchemaSequence.cs
- ImageListDesigner.cs
- SimpleBitVector32.cs
- SmiMetaData.cs
- activationcontext.cs
- XmlSchemaObjectCollection.cs
- ThemeableAttribute.cs
- Stopwatch.cs
- _BaseOverlappedAsyncResult.cs
- FunctionParameter.cs
- ListViewItem.cs
- DuplexClientBase.cs
- NullableFloatMinMaxAggregationOperator.cs
- CompositeCollection.cs
- XmlArrayItemAttribute.cs
- XmlSchemaExporter.cs
- EventLogger.cs
- CommonObjectSecurity.cs
- TemplateNameScope.cs
- MarkupExtensionSerializer.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- IPHostEntry.cs
- ToolstripProfessionalRenderer.cs
- AppSettingsReader.cs
- Part.cs
- KeyEvent.cs
- CalendarTable.cs
- SharedTcpTransportManager.cs
- KeyInterop.cs
- XslCompiledTransform.cs
- Buffer.cs
- BezierSegment.cs
- DataControlImageButton.cs
- InputLanguageEventArgs.cs
- Rect3DConverter.cs
- GeneralTransform.cs
- SqlProcedureAttribute.cs
- XslException.cs
- PersonalizableTypeEntry.cs
- ContourSegment.cs
- SafeFileMapViewHandle.cs
- MailWebEventProvider.cs
- File.cs
- KnownColorTable.cs
- InstanceData.cs
- XamlFigureLengthSerializer.cs
- AsymmetricCryptoHandle.cs
- Registry.cs
- SetStoryboardSpeedRatio.cs
- ToolStripDropDownButton.cs
- _FtpDataStream.cs
- HeaderedContentControl.cs
- RemotingService.cs
- IISUnsafeMethods.cs
- ExpressionVisitorHelpers.cs
- OperatingSystem.cs
- SerializationEventsCache.cs
- StylusPointPropertyInfo.cs
- ForeignKeyConstraint.cs
- RequestCacheEntry.cs
- ActivationServices.cs
- ChameleonKey.cs
- KeyGestureConverter.cs
- CompatibleIComparer.cs
- ZipIOLocalFileDataDescriptor.cs
- ImmutableObjectAttribute.cs
- XmlSerializerFormatAttribute.cs
- CapabilitiesPattern.cs
- ConfigurationManagerHelperFactory.cs
- VirtualDirectoryMappingCollection.cs
- PointAnimation.cs
- Enum.cs
- SerializationException.cs
- ImmutableAssemblyCacheEntry.cs
- RenderContext.cs
- RequestQueryParser.cs
- WebServicesInteroperability.cs
- WmpBitmapDecoder.cs
- WindowsGraphics.cs
- LinkedList.cs
- RangeValuePatternIdentifiers.cs
- ResourceKey.cs
- TrackingMemoryStream.cs
- ApplicationGesture.cs
- CompositeScriptReferenceEventArgs.cs
- MissingMethodException.cs
- XhtmlBasicCommandAdapter.cs
- Geometry3D.cs
- DocumentSequence.cs