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
- InlinedAggregationOperator.cs
- ColorTranslator.cs
- MultiAsyncResult.cs
- RoleManagerEventArgs.cs
- Viewport2DVisual3D.cs
- ParameterToken.cs
- DataGridViewHeaderCell.cs
- PropertyDescriptorGridEntry.cs
- SortedSetDebugView.cs
- LocationInfo.cs
- Base64Encoder.cs
- DetailsViewPageEventArgs.cs
- EntityDataSourceUtil.cs
- SamlAssertionKeyIdentifierClause.cs
- DuplexChannelBinder.cs
- HttpWebResponse.cs
- CaseExpr.cs
- CodePrimitiveExpression.cs
- RadioButton.cs
- PersonalizationAdministration.cs
- Int32Rect.cs
- MultitargetingHelpers.cs
- DivideByZeroException.cs
- ClientSettings.cs
- DataConnectionHelper.cs
- WebPartConnection.cs
- DataRowExtensions.cs
- JapaneseLunisolarCalendar.cs
- SequentialUshortCollection.cs
- DataGridViewCellStyleEditor.cs
- ComboBox.cs
- BufferAllocator.cs
- ImageKeyConverter.cs
- TypeSemantics.cs
- ExceptionHandler.cs
- DataGridRowHeaderAutomationPeer.cs
- BufferModeSettings.cs
- DesignerVerb.cs
- FlowDocumentReader.cs
- Query.cs
- DragDrop.cs
- ASCIIEncoding.cs
- ErrorStyle.cs
- ViewStateAttachedPropertyFeature.cs
- GB18030Encoding.cs
- XmlNamedNodeMap.cs
- ExceptionUtil.cs
- CharacterShapingProperties.cs
- ObjectViewListener.cs
- CLSCompliantAttribute.cs
- WebHttpEndpoint.cs
- InputScopeManager.cs
- XmlWriter.cs
- UIElementAutomationPeer.cs
- HttpModulesInstallComponent.cs
- TcpTransportSecurityElement.cs
- SqlRemoveConstantOrderBy.cs
- DeviceOverridableAttribute.cs
- UriTemplateLiteralPathSegment.cs
- BindingCollection.cs
- UnhandledExceptionEventArgs.cs
- DeploymentExceptionMapper.cs
- StructuredProperty.cs
- PackWebRequest.cs
- LocalBuilder.cs
- GeneralTransformGroup.cs
- ConstructorArgumentAttribute.cs
- EdmType.cs
- HtmlTableRow.cs
- FormViewDeleteEventArgs.cs
- ProfileSection.cs
- ReturnEventArgs.cs
- relpropertyhelper.cs
- SqlStream.cs
- ListViewItemMouseHoverEvent.cs
- MarkupCompilePass2.cs
- MDIControlStrip.cs
- Stopwatch.cs
- MenuItemAutomationPeer.cs
- Color.cs
- SevenBitStream.cs
- TraceSection.cs
- SqlConnectionString.cs
- BroadcastEventHelper.cs
- ModelItemDictionary.cs
- CollectionMarkupSerializer.cs
- Instrumentation.cs
- View.cs
- ObjectIDGenerator.cs
- ActivityWithResultValueSerializer.cs
- XmlStreamStore.cs
- HandleValueEditor.cs
- CodeMemberMethod.cs
- SortDescriptionCollection.cs
- ResourceExpressionBuilder.cs
- RequestCachePolicyConverter.cs
- TrustLevelCollection.cs
- TextPattern.cs
- Cursors.cs
- GlyphManager.cs