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
- RenamedEventArgs.cs
- HttpHeaderCollection.cs
- ScrollBar.cs
- FixedSOMLineRanges.cs
- AssemblyUtil.cs
- XmlValidatingReader.cs
- PasswordRecovery.cs
- MarkupCompilePass2.cs
- ToolStripInSituService.cs
- ListenerElementsCollection.cs
- ObjectQuery_EntitySqlExtensions.cs
- SelectingProviderEventArgs.cs
- DrawingAttributesDefaultValueFactory.cs
- ColorContextHelper.cs
- HierarchicalDataSourceConverter.cs
- Comparer.cs
- SrgsItemList.cs
- TextEditor.cs
- DataServiceHost.cs
- BitmapFrameEncode.cs
- ActiveDocumentEvent.cs
- RTLAwareMessageBox.cs
- CorrelationResolver.cs
- _Semaphore.cs
- DataServiceContext.cs
- XamlPathDataSerializer.cs
- SrgsItemList.cs
- PagerSettings.cs
- Automation.cs
- JoinElimination.cs
- TemplateBamlRecordReader.cs
- TextBoxBase.cs
- Cursors.cs
- FlowPanelDesigner.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- JournalEntryStack.cs
- CompoundFileIOPermission.cs
- TypeSource.cs
- CurrencyManager.cs
- SimpleTextLine.cs
- WarningException.cs
- AuthenticationModulesSection.cs
- TypeHelpers.cs
- XmlArrayItemAttribute.cs
- HeaderCollection.cs
- FacetValues.cs
- EventData.cs
- DeploymentSectionCache.cs
- ZipPackage.cs
- XmlDataDocument.cs
- PerformanceCounterPermissionEntryCollection.cs
- CryptoConfig.cs
- SelectedPathEditor.cs
- AuthorizationSection.cs
- TemplateControlParser.cs
- RelationshipNavigation.cs
- SqlCacheDependencyDatabaseCollection.cs
- AmbiguousMatchException.cs
- DescendantBaseQuery.cs
- NegationPusher.cs
- CacheEntry.cs
- XmlImplementation.cs
- Rect3DConverter.cs
- LicenseManager.cs
- DBNull.cs
- TabPanel.cs
- InstalledVoice.cs
- WebPartChrome.cs
- PropertyItemInternal.cs
- DelegatingConfigHost.cs
- GlobalizationSection.cs
- PropertyOrder.cs
- DateTimeFormatInfoScanner.cs
- TabControlCancelEvent.cs
- NullRuntimeConfig.cs
- NewExpression.cs
- ProcessStartInfo.cs
- DataSourceHelper.cs
- XmlSchemaSimpleContentRestriction.cs
- TickBar.cs
- SettingsBindableAttribute.cs
- CoreSwitches.cs
- URIFormatException.cs
- ChannelBinding.cs
- BinaryReader.cs
- ButtonBase.cs
- Material.cs
- PropertyGridView.cs
- DataMemberConverter.cs
- BufferedMessageWriter.cs
- GridViewUpdateEventArgs.cs
- DbCommandDefinition.cs
- MinMaxParagraphWidth.cs
- X509Certificate2Collection.cs
- ZipPackage.cs
- SqlGenerator.cs
- MatrixTransform.cs
- XmlComment.cs
- DropTarget.cs