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
- Ops.cs
- CaseExpr.cs
- EventArgs.cs
- DataGridColumnHeader.cs
- XmlQualifiedNameTest.cs
- UInt16Storage.cs
- _LocalDataStore.cs
- ProgressPage.cs
- TypeElement.cs
- XmlValidatingReaderImpl.cs
- HostingEnvironmentSection.cs
- TargetControlTypeAttribute.cs
- SmiGettersStream.cs
- QilLoop.cs
- Parser.cs
- WindowsStatusBar.cs
- TypedTableBaseExtensions.cs
- XmlSerializableWriter.cs
- DrawingState.cs
- TextTreeText.cs
- ArglessEventHandlerProxy.cs
- SvcMapFileSerializer.cs
- ComponentDesigner.cs
- HttpProfileGroupBase.cs
- ProfileProvider.cs
- PersonalizableAttribute.cs
- Package.cs
- ImpersonateTokenRef.cs
- TreeNodeEventArgs.cs
- JoinTreeNode.cs
- FacetValues.cs
- CheckBox.cs
- ContextProperty.cs
- ConfigurationManagerHelperFactory.cs
- XmlDocument.cs
- WindowProviderWrapper.cs
- CreateUserWizardStep.cs
- TheQuery.cs
- ReverseInheritProperty.cs
- BinarySerializer.cs
- DataSourceXmlElementAttribute.cs
- InkPresenter.cs
- BorderSidesEditor.cs
- brushes.cs
- MustUnderstandBehavior.cs
- ThreadAbortException.cs
- LogEntryHeaderDeserializer.cs
- InputBinding.cs
- DeploymentExceptionMapper.cs
- XmlUnspecifiedAttribute.cs
- MsmqQueue.cs
- PerspectiveCamera.cs
- SafeFileMappingHandle.cs
- JsonReaderWriterFactory.cs
- prefixendpointaddressmessagefilter.cs
- FormViewUpdatedEventArgs.cs
- CellTreeSimplifier.cs
- EllipseGeometry.cs
- X509CertificateStore.cs
- ObjectConverter.cs
- EntityDataSourceContextDisposingEventArgs.cs
- PolyLineSegment.cs
- CodeDomConfigurationHandler.cs
- ReadOnlyPermissionSet.cs
- ObjectStateManagerMetadata.cs
- AssociationTypeEmitter.cs
- OutputCacheModule.cs
- SafePEFileHandle.cs
- EntityType.cs
- sqlnorm.cs
- BatchParser.cs
- ConfigViewGenerator.cs
- ProcessHost.cs
- ContentElement.cs
- EntityContainerEmitter.cs
- DataGridViewCellEventArgs.cs
- AnimationClockResource.cs
- InvalidTimeZoneException.cs
- TextBoxRenderer.cs
- SQLGuidStorage.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- IntMinMaxAggregationOperator.cs
- MetaColumn.cs
- LambdaSerializationException.cs
- TemplateControlParser.cs
- DocumentApplicationJournalEntry.cs
- BitmapDecoder.cs
- Column.cs
- PackagingUtilities.cs
- ServicesExceptionNotHandledEventArgs.cs
- TreeNodeConverter.cs
- KeyInterop.cs
- Overlapped.cs
- TextTrailingCharacterEllipsis.cs
- PointHitTestParameters.cs
- CdpEqualityComparer.cs
- UIElement3D.cs
- PointCollectionValueSerializer.cs
- LinearQuaternionKeyFrame.cs
- LowerCaseStringConverter.cs