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
- MessagePropertyAttribute.cs
- HandleRef.cs
- TreeIterator.cs
- FormsAuthenticationConfiguration.cs
- SqlRowUpdatedEvent.cs
- ProxySimple.cs
- AssociationTypeEmitter.cs
- DataGridRowEventArgs.cs
- AdornerLayer.cs
- BamlBinaryReader.cs
- DateTimeConverter2.cs
- basemetadatamappingvisitor.cs
- InstanceNotFoundException.cs
- RawKeyboardInputReport.cs
- AssemblyBuilder.cs
- EnumerableWrapperWeakToStrong.cs
- TableSectionStyle.cs
- LicenseContext.cs
- SiteMapNodeItemEventArgs.cs
- TimeSpan.cs
- PartitionedStream.cs
- TreeSet.cs
- NativeRightsManagementAPIsStructures.cs
- MsmqHostedTransportConfiguration.cs
- _emptywebproxy.cs
- ElapsedEventArgs.cs
- NumberAction.cs
- IntSecurity.cs
- PageStatePersister.cs
- BufferModeSettings.cs
- CloudCollection.cs
- MgmtConfigurationRecord.cs
- InputLanguageManager.cs
- RequiredAttributeAttribute.cs
- FlatButtonAppearance.cs
- ToolStripComboBox.cs
- SchemaImporterExtensionsSection.cs
- DataObjectEventArgs.cs
- loginstatus.cs
- ScriptingJsonSerializationSection.cs
- CompilerLocalReference.cs
- RequestNavigateEventArgs.cs
- SafeReversePInvokeHandle.cs
- OneOf.cs
- CookieProtection.cs
- CodeVariableReferenceExpression.cs
- TextTreeExtractElementUndoUnit.cs
- WindowsAltTab.cs
- ColumnReorderedEventArgs.cs
- DesignerToolboxInfo.cs
- assemblycache.cs
- Parsers.cs
- InstanceLockQueryResult.cs
- DataGridCaption.cs
- GreaterThanOrEqual.cs
- IDReferencePropertyAttribute.cs
- OdbcEnvironmentHandle.cs
- BreakRecordTable.cs
- Stacktrace.cs
- AppDomainFactory.cs
- BaseComponentEditor.cs
- WaitHandle.cs
- ReadOnlyState.cs
- FileEnumerator.cs
- ResourcePermissionBase.cs
- UnicodeEncoding.cs
- WebPartConnectionsConfigureVerb.cs
- BrowserDefinitionCollection.cs
- DataGridToolTip.cs
- TrackingRecord.cs
- XmlLanguage.cs
- AmbiguousMatchException.cs
- DurableInstanceProvider.cs
- SchemaElementDecl.cs
- MethodMessage.cs
- SqlException.cs
- StylusOverProperty.cs
- BitmapFrameDecode.cs
- OleServicesContext.cs
- HwndStylusInputProvider.cs
- XmlHierarchicalEnumerable.cs
- BamlLocalizabilityResolver.cs
- storagemappingitemcollection.viewdictionary.cs
- SemanticBasicElement.cs
- EventMemberCodeDomSerializer.cs
- MimeTypeAttribute.cs
- MultiPageTextView.cs
- BufferCache.cs
- EUCJPEncoding.cs
- TagPrefixInfo.cs
- assertwrapper.cs
- MenuScrollingVisibilityConverter.cs
- PathGeometry.cs
- TypeDescriptor.cs
- FixedLineResult.cs
- AutomationPatternInfo.cs
- AutomationTextAttribute.cs
- MaterialCollection.cs
- Underline.cs
- SocketInformation.cs