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
- XmlBindingWorker.cs
- CorrelationTokenTypeConvertor.cs
- GlyphInfoList.cs
- ElapsedEventArgs.cs
- StrokeSerializer.cs
- TreeWalker.cs
- DesignerForm.cs
- sqlstateclientmanager.cs
- objectresult_tresulttype.cs
- EncryptedData.cs
- X509SecurityTokenAuthenticator.cs
- ParameterInfo.cs
- DesignerSerializationVisibilityAttribute.cs
- PreviewKeyDownEventArgs.cs
- EmptyStringExpandableObjectConverter.cs
- ResponseStream.cs
- InvalidEnumArgumentException.cs
- NamespaceMapping.cs
- PassportAuthenticationEventArgs.cs
- SmiRecordBuffer.cs
- OleDbParameterCollection.cs
- FunctionUpdateCommand.cs
- PackWebRequest.cs
- GestureRecognitionResult.cs
- MenuBase.cs
- Model3DCollection.cs
- InputLangChangeEvent.cs
- HttpServerChannel.cs
- ColumnHeaderConverter.cs
- Win32Exception.cs
- Memoizer.cs
- CollectionsUtil.cs
- WorkflowRuntimeService.cs
- DirectoryObjectSecurity.cs
- DataSourceCacheDurationConverter.cs
- TextSpan.cs
- HttpValueCollection.cs
- RangeBase.cs
- FrameworkElement.cs
- Setter.cs
- WebServiceFaultDesigner.cs
- InputBinding.cs
- ContentFileHelper.cs
- HandlerMappingMemo.cs
- CacheOutputQuery.cs
- InvalidOleVariantTypeException.cs
- BindingRestrictions.cs
- HttpServerVarsCollection.cs
- AddInBase.cs
- TypeLibConverter.cs
- RealizationContext.cs
- ButtonRenderer.cs
- RoleManagerModule.cs
- ArrayExtension.cs
- ThreadStateException.cs
- ToolTipAutomationPeer.cs
- AssociationType.cs
- Win32.cs
- DataGridAddNewRow.cs
- AssertFilter.cs
- PrintEvent.cs
- OleDbConnection.cs
- ToolStripItemRenderEventArgs.cs
- ObjectListCommandEventArgs.cs
- PermissionAttributes.cs
- ReferentialConstraint.cs
- OutputCacheModule.cs
- NavigationProgressEventArgs.cs
- XmlSchemaInfo.cs
- SQLSingleStorage.cs
- DataGrid.cs
- Int64Storage.cs
- ParameterCollection.cs
- ObjectHelper.cs
- TiffBitmapEncoder.cs
- ChannelSinkStacks.cs
- BinaryEditor.cs
- ReverseInheritProperty.cs
- UdpUtility.cs
- DispatcherExceptionFilterEventArgs.cs
- AsyncCompletedEventArgs.cs
- ConsumerConnectionPointCollection.cs
- SpecularMaterial.cs
- Menu.cs
- Currency.cs
- CompilationSection.cs
- DecimalStorage.cs
- GridErrorDlg.cs
- XmlCharCheckingReader.cs
- ConfigurationConverterBase.cs
- WSFederationHttpSecurity.cs
- SQLChars.cs
- ConfigurationElement.cs
- ControlIdConverter.cs
- SafeFileMappingHandle.cs
- DesignerActionService.cs
- NativeMethods.cs
- GlyphRunDrawing.cs
- SafeNativeMethods.cs
- GestureRecognizer.cs