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
- AmbientProperties.cs
- MailBnfHelper.cs
- ResourceReferenceExpressionConverter.cs
- DataGridViewComboBoxCell.cs
- DataObjectMethodAttribute.cs
- Odbc32.cs
- Encoding.cs
- CompensatableTransactionScopeActivity.cs
- HotSpot.cs
- UInt64Storage.cs
- SourceFileBuildProvider.cs
- IImplicitResourceProvider.cs
- Tablet.cs
- Repeater.cs
- KeyManager.cs
- AutoGeneratedFieldProperties.cs
- DataGridItemEventArgs.cs
- PngBitmapEncoder.cs
- XmlWrappingReader.cs
- DataGridAddNewRow.cs
- ISAPIWorkerRequest.cs
- Size.cs
- DataServiceQueryOfT.cs
- ContainerControl.cs
- TreeViewImageKeyConverter.cs
- EncryptedPackageFilter.cs
- CompilerCollection.cs
- SessionStateContainer.cs
- SafeRightsManagementEnvironmentHandle.cs
- QuaternionAnimation.cs
- WindowsButton.cs
- SizeLimitedCache.cs
- CombinedGeometry.cs
- DTCTransactionManager.cs
- CompositionTarget.cs
- SQLRoleProvider.cs
- CalendarButtonAutomationPeer.cs
- TextFormatterImp.cs
- SHA1CryptoServiceProvider.cs
- ListenerSingletonConnectionReader.cs
- BitmapVisualManager.cs
- Model3DGroup.cs
- PropertyGeneratedEventArgs.cs
- SystemIcmpV6Statistics.cs
- ProfileServiceManager.cs
- SmiEventSink.cs
- securitycriticaldataformultiplegetandset.cs
- SmiEventSink.cs
- HttpAsyncResult.cs
- LinqDataSourceDeleteEventArgs.cs
- MatrixTransform.cs
- ToolBarButton.cs
- ManipulationPivot.cs
- WebContext.cs
- PerformanceCountersElement.cs
- DoubleAnimationClockResource.cs
- OrderedDictionaryStateHelper.cs
- PropertyGroupDescription.cs
- EncodingDataItem.cs
- SqlConnectionPoolProviderInfo.cs
- ControlBindingsCollection.cs
- AutomationPropertyInfo.cs
- PrintPageEvent.cs
- WindowsTokenRoleProvider.cs
- UpdateException.cs
- WebPartDesigner.cs
- relpropertyhelper.cs
- CommandManager.cs
- UdpConstants.cs
- AggregationMinMaxHelpers.cs
- CodeCompileUnit.cs
- TabItemAutomationPeer.cs
- ColumnClickEvent.cs
- WindowsAuthenticationEventArgs.cs
- StringAttributeCollection.cs
- DecodeHelper.cs
- XmlDocumentSerializer.cs
- StateChangeEvent.cs
- ReversePositionQuery.cs
- DisplayMemberTemplateSelector.cs
- _HelperAsyncResults.cs
- ExpressionNode.cs
- CharacterBuffer.cs
- AbandonedMutexException.cs
- _Connection.cs
- Animatable.cs
- BinaryMethodMessage.cs
- LinqDataSourceDisposeEventArgs.cs
- RuleSettingsCollection.cs
- ApplicationException.cs
- StrokeFIndices.cs
- VisualBrush.cs
- ColorEditor.cs
- BitmapEffectInput.cs
- ToolStripSettings.cs
- ClrProviderManifest.cs
- SqlNotificationEventArgs.cs
- DependsOnAttribute.cs
- InkCanvasFeedbackAdorner.cs
- ScaleTransform.cs