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
- metadatamappinghashervisitor.cs
- TextBoxAutoCompleteSourceConverter.cs
- DocumentScope.cs
- ToolStripLabel.cs
- TemplateBuilder.cs
- RequestCachePolicy.cs
- Propagator.JoinPropagator.cs
- SingleBodyParameterMessageFormatter.cs
- CodeBlockBuilder.cs
- Tuple.cs
- CodeTypeDeclaration.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- UnsupportedPolicyOptionsException.cs
- MessageQueueConverter.cs
- MsmqInputChannelListener.cs
- dataobject.cs
- FtpRequestCacheValidator.cs
- XmlSignificantWhitespace.cs
- TrustManager.cs
- AttributeCollection.cs
- SafeRightsManagementPubHandle.cs
- StrokeNodeOperations.cs
- UnmanagedHandle.cs
- HotCommands.cs
- BaseHashHelper.cs
- Imaging.cs
- SizeConverter.cs
- WebPartMenu.cs
- DesignerView.xaml.cs
- JsonQueryStringConverter.cs
- DataError.cs
- RadioButton.cs
- ObjectDataSource.cs
- OdbcInfoMessageEvent.cs
- Int32Animation.cs
- PtsHelper.cs
- SystemNetworkInterface.cs
- StringFreezingAttribute.cs
- DurableEnlistmentState.cs
- CompilerScopeManager.cs
- EditorBrowsableAttribute.cs
- SchemaNotation.cs
- DesignerRegionMouseEventArgs.cs
- TextRange.cs
- XmlValidatingReaderImpl.cs
- Merger.cs
- ProgressiveCrcCalculatingStream.cs
- Hash.cs
- MemberDomainMap.cs
- Transform3D.cs
- BinaryObjectInfo.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ComponentManagerBroker.cs
- WizardStepBase.cs
- CriticalFinalizerObject.cs
- TreeChangeInfo.cs
- LinearGradientBrush.cs
- SourceFilter.cs
- PrivilegedConfigurationManager.cs
- ItemChangedEventArgs.cs
- DateTimePicker.cs
- TrackingParameters.cs
- NumberEdit.cs
- SqlProfileProvider.cs
- ParallelTimeline.cs
- HtmlGenericControl.cs
- WsatRegistrationHeader.cs
- Tracer.cs
- ObjectManager.cs
- MouseEventArgs.cs
- DefaultMemberAttribute.cs
- SQLInt32Storage.cs
- SoapSchemaImporter.cs
- RequiredAttributeAttribute.cs
- returneventsaver.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- GcHandle.cs
- StatusBarDrawItemEvent.cs
- ConfigXmlReader.cs
- FixedStringLookup.cs
- HttpProfileGroupBase.cs
- ListContractAdapter.cs
- Hyperlink.cs
- ResourceExpressionBuilder.cs
- QilReference.cs
- CompilationSection.cs
- Application.cs
- WebPartDescriptionCollection.cs
- SingleStorage.cs
- UpDownEvent.cs
- _FixedSizeReader.cs
- ExpressionStringBuilder.cs
- DrawingContext.cs
- TemplateAction.cs
- ExpressionEditorAttribute.cs
- CompositeFontInfo.cs
- QueryOpcode.cs
- CheckBoxField.cs
- VisualTarget.cs
- QuotedStringFormatReader.cs