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
- ObjectTag.cs
- basevalidator.cs
- ToolTipAutomationPeer.cs
- ByteStreamGeometryContext.cs
- TypedServiceChannelBuilder.cs
- OneWayBindingElement.cs
- AppSettings.cs
- Rotation3D.cs
- DependencyProperty.cs
- BaseTransportHeaders.cs
- EasingKeyFrames.cs
- XmlStreamStore.cs
- RowVisual.cs
- ToggleProviderWrapper.cs
- TextFormatter.cs
- HttpPostedFile.cs
- OrderedEnumerableRowCollection.cs
- AppearanceEditorPart.cs
- RelationshipSet.cs
- LineUtil.cs
- ScrollChrome.cs
- Run.cs
- loginstatus.cs
- MailWebEventProvider.cs
- ListItemParagraph.cs
- TextBoxRenderer.cs
- TreeViewItem.cs
- CriticalHandle.cs
- LinqDataSourceInsertEventArgs.cs
- ObjectSpanRewriter.cs
- Binding.cs
- EdmMember.cs
- ManipulationLogic.cs
- odbcmetadatafactory.cs
- LogSwitch.cs
- SimpleTableProvider.cs
- _SecureChannel.cs
- OleDbMetaDataFactory.cs
- StylusDevice.cs
- DataGridColumnCollection.cs
- TogglePatternIdentifiers.cs
- PenContexts.cs
- SiteMap.cs
- _SafeNetHandles.cs
- BooleanAnimationBase.cs
- LocalizationParserHooks.cs
- FileClassifier.cs
- BuildTopDownAttribute.cs
- AutoResetEvent.cs
- XmlNullResolver.cs
- ToolStripDesignerAvailabilityAttribute.cs
- RelationshipConstraintValidator.cs
- GlobalizationSection.cs
- FontNamesConverter.cs
- CellPartitioner.cs
- SqlErrorCollection.cs
- QilUnary.cs
- AudioException.cs
- QueueProcessor.cs
- NameValuePermission.cs
- xml.cs
- DataServiceQueryContinuation.cs
- Label.cs
- TextServicesHost.cs
- ProbeMatchesApril2005.cs
- SubclassTypeValidator.cs
- TextSelectionHighlightLayer.cs
- httpserverutility.cs
- SystemUnicastIPAddressInformation.cs
- BufferedReadStream.cs
- TempFiles.cs
- PermissionRequestEvidence.cs
- VBIdentifierTrimConverter.cs
- MessagePropertyFilter.cs
- AutoCompleteStringCollection.cs
- ConstraintStruct.cs
- BamlTreeMap.cs
- SyntaxCheck.cs
- COAUTHIDENTITY.cs
- FastPropertyAccessor.cs
- ComponentEditorForm.cs
- ParagraphResult.cs
- SymLanguageVendor.cs
- GeneralTransform3DTo2DTo3D.cs
- cookiecontainer.cs
- MissingSatelliteAssemblyException.cs
- GraphicsContext.cs
- MemoryPressure.cs
- BaseDataBoundControl.cs
- XmlSchemaFacet.cs
- BaseTreeIterator.cs
- AmbientLight.cs
- DbParameterCollectionHelper.cs
- DesignOnlyAttribute.cs
- ToolStripPanel.cs
- OdbcRowUpdatingEvent.cs
- XsdBuilder.cs
- TypedTableBase.cs
- TemplateKeyConverter.cs
- FixedTextSelectionProcessor.cs