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
- TerminatorSinks.cs
- FormClosingEvent.cs
- BitmapEffectDrawingContextState.cs
- LayoutInformation.cs
- ExtendLockAsyncResult.cs
- XmlnsCompatibleWithAttribute.cs
- ConfigXmlElement.cs
- ShapingWorkspace.cs
- SymmetricAlgorithm.cs
- DataSourceCache.cs
- SqlExpander.cs
- COM2ICategorizePropertiesHandler.cs
- ReadWriteObjectLock.cs
- Pts.cs
- ToolboxItemSnapLineBehavior.cs
- XmlHierarchyData.cs
- ToggleButton.cs
- HostingMessageProperty.cs
- cryptoapiTransform.cs
- DataGridPageChangedEventArgs.cs
- ContextBase.cs
- ChangeBlockUndoRecord.cs
- TreeNodeConverter.cs
- BaseDataBoundControlDesigner.cs
- InputQueue.cs
- RadioButtonPopupAdapter.cs
- Sequence.cs
- ListenerSingletonConnectionReader.cs
- XPathMultyIterator.cs
- XmlEntityReference.cs
- BlurBitmapEffect.cs
- DataGridViewRowStateChangedEventArgs.cs
- LineServicesCallbacks.cs
- PagesChangedEventArgs.cs
- SchemaConstraints.cs
- SafeMILHandle.cs
- ChineseLunisolarCalendar.cs
- BrowserCapabilitiesFactory.cs
- OleDbInfoMessageEvent.cs
- ResolveNameEventArgs.cs
- Scene3D.cs
- TextFormatter.cs
- PersistenceTypeAttribute.cs
- FixedTextContainer.cs
- DataServiceException.cs
- Point4DValueSerializer.cs
- Attributes.cs
- ILGenerator.cs
- EntityDataSourceChangedEventArgs.cs
- ActivityTypeCodeDomSerializer.cs
- ColumnMapCopier.cs
- WindowVisualStateTracker.cs
- XPathNodeHelper.cs
- MultipleViewPatternIdentifiers.cs
- XmlLanguage.cs
- ObjectSet.cs
- TraceSource.cs
- RSAPKCS1KeyExchangeFormatter.cs
- GifBitmapDecoder.cs
- XDRSchema.cs
- DeploymentExceptionMapper.cs
- IsolatedStorageFileStream.cs
- SchemaTableColumn.cs
- SafeBitVector32.cs
- ControlPropertyNameConverter.cs
- DataGridViewLinkCell.cs
- SwitchLevelAttribute.cs
- WebPartHelpVerb.cs
- FilteredSchemaElementLookUpTable.cs
- SystemInformation.cs
- ToolStripProgressBar.cs
- Deflater.cs
- ProfileService.cs
- CalculatedColumn.cs
- OrderingQueryOperator.cs
- QilCloneVisitor.cs
- XmlHierarchicalEnumerable.cs
- TaiwanCalendar.cs
- DBBindings.cs
- NonVisualControlAttribute.cs
- TextLineBreak.cs
- TextCompositionEventArgs.cs
- RouteUrlExpressionBuilder.cs
- DataRelationCollection.cs
- QueryRewriter.cs
- BinHexEncoder.cs
- ellipse.cs
- ColumnWidthChangedEvent.cs
- DiagnosticsConfigurationHandler.cs
- StrongNameHelpers.cs
- sqlcontext.cs
- SetIterators.cs
- ProfileProvider.cs
- Part.cs
- TextTrailingCharacterEllipsis.cs
- XmlCDATASection.cs
- FileClassifier.cs
- SmiContextFactory.cs
- PersonalizationStateQuery.cs
- PartialCachingControl.cs