Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / TransactionBridge / Microsoft / Transactions / Wsat / Messaging / SupportingTokenBindingElement.cs / 1 / SupportingTokenBindingElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- // Defines the SupportingTokenBindingElement, which contributes a SupportingTokenListenerFactory using System; using System.ServiceModel; using System.ServiceModel.Channels; using System.ServiceModel.Security; using Microsoft.Transactions.Wsat.Protocol; namespace Microsoft.Transactions.Wsat.Messaging { class SupportingTokenBindingElement : BindingElement { ProtocolVersion protocolVersion; SupportingTokenServiceCredentials serverCreds = new SupportingTokenServiceCredentials(); public SupportingTokenBindingElement(ProtocolVersion protocolVersion) { this.protocolVersion = protocolVersion; } SupportingTokenBindingElement(SupportingTokenBindingElement other) : base(other) { this.protocolVersion = other.ProtocolVersion; } public ProtocolVersion ProtocolVersion { get { return this.protocolVersion; } } public SupportingTokenServiceCredentials ServiceCredentials { get { return this.serverCreds; } } public override IChannelListenerBuildChannelListener (BindingContext context) { return new SupportingTokenChannelListener (this, context, this.serverCreds.TokenResolver); } public override bool CanBuildChannelListener (BindingContext context) { return context.CanBuildInnerChannelListener (); } public override BindingElement Clone() { return new SupportingTokenBindingElement(this); } public override T GetProperty (BindingContext context) { return context.GetInnerProperty (); } } } // 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
- Menu.cs
- TabControlDesigner.cs
- DataControlExtensions.cs
- ColorTransformHelper.cs
- DocumentOrderComparer.cs
- CodeMemberEvent.cs
- Helpers.cs
- EntityKeyElement.cs
- UIElementAutomationPeer.cs
- IntSecurity.cs
- WindowsTooltip.cs
- ManualResetEvent.cs
- SvcFileManager.cs
- Stopwatch.cs
- HtmlDocument.cs
- PointLight.cs
- StringUtil.cs
- filewebrequest.cs
- SecUtil.cs
- LinqExpressionNormalizer.cs
- AnonymousIdentificationSection.cs
- InspectionWorker.cs
- ClientBuildManager.cs
- ColorBlend.cs
- _WebProxyDataBuilder.cs
- EqualityComparer.cs
- NetworkCredential.cs
- RoutedEventHandlerInfo.cs
- EntryIndex.cs
- RawStylusSystemGestureInputReport.cs
- DataSourceControl.cs
- SqlError.cs
- IMembershipProvider.cs
- ObjectSet.cs
- FastEncoderWindow.cs
- PropertyToken.cs
- BaseParser.cs
- WebEventTraceProvider.cs
- PropertyManager.cs
- XmlMembersMapping.cs
- BitmapFrameEncode.cs
- ITextView.cs
- FixedTextView.cs
- BuildProviderCollection.cs
- ImageCodecInfo.cs
- StylusDevice.cs
- WindowsSidIdentity.cs
- MeshGeometry3D.cs
- AudioFileOut.cs
- CompatibleIComparer.cs
- ObjectDisposedException.cs
- GenericEnumConverter.cs
- ResizeGrip.cs
- MouseOverProperty.cs
- OdbcException.cs
- SystemFonts.cs
- LinqDataSourceContextEventArgs.cs
- Window.cs
- TextParagraph.cs
- SHA256Cng.cs
- SequentialActivityDesigner.cs
- Logging.cs
- XamlTypeMapperSchemaContext.cs
- PersonalizationAdministration.cs
- AssemblyResourceLoader.cs
- PropertyStore.cs
- FunctionNode.cs
- Error.cs
- ConfigXmlComment.cs
- AddInStore.cs
- DataExchangeServiceBinder.cs
- TextBox.cs
- MimeMapping.cs
- ToolStripContainer.cs
- DragDeltaEventArgs.cs
- CollectionViewProxy.cs
- WCFModelStrings.Designer.cs
- DataBinder.cs
- GPPOINTF.cs
- RSAOAEPKeyExchangeDeformatter.cs
- MsmqIntegrationMessagePool.cs
- BitmapSizeOptions.cs
- XmlNullResolver.cs
- Types.cs
- DbProviderFactoriesConfigurationHandler.cs
- ClassGenerator.cs
- CodeLabeledStatement.cs
- DynamicMetaObject.cs
- Path.cs
- RijndaelCryptoServiceProvider.cs
- BindingMAnagerBase.cs
- ToolStripLocationCancelEventArgs.cs
- ChtmlMobileTextWriter.cs
- ProfileService.cs
- Permission.cs
- SerializationFieldInfo.cs
- PathFigure.cs
- GridLengthConverter.cs
- QilNode.cs
- EdmProviderManifest.cs