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
- ListDictionaryInternal.cs
- StrokeCollection.cs
- CacheRequest.cs
- NameTable.cs
- EnumerableCollectionView.cs
- Column.cs
- TemplatedWizardStep.cs
- CustomAttributeFormatException.cs
- WebConfigurationHost.cs
- RangeValueProviderWrapper.cs
- ApplicationId.cs
- UntrustedRecipientException.cs
- smtppermission.cs
- XXXOnTypeBuilderInstantiation.cs
- DataTrigger.cs
- DataRecord.cs
- PublisherIdentityPermission.cs
- DesignerContextDescriptor.cs
- CallSiteBinder.cs
- DesignTimeParseData.cs
- indexingfiltermarshaler.cs
- FocusChangedEventArgs.cs
- MembershipValidatePasswordEventArgs.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- LostFocusEventManager.cs
- WebControlToolBoxItem.cs
- Main.cs
- FullTextBreakpoint.cs
- X509CertificateCollection.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- TextOptions.cs
- CustomValidator.cs
- TailPinnedEventArgs.cs
- DragDeltaEventArgs.cs
- ConsoleKeyInfo.cs
- MediaTimeline.cs
- ViewCellSlot.cs
- SoapSchemaMember.cs
- DataGridViewLinkColumn.cs
- Literal.cs
- TileModeValidation.cs
- DesignerTransactionCloseEvent.cs
- BufferedGraphicsManager.cs
- PriorityChain.cs
- CultureData.cs
- FontDialog.cs
- DesignerActionUI.cs
- SecurityTraceRecordHelper.cs
- SqlDataSourceConfigureFilterForm.cs
- ConfigurationManagerHelper.cs
- RulePatternOps.cs
- FocusWithinProperty.cs
- Popup.cs
- _HTTPDateParse.cs
- SerializationSectionGroup.cs
- CombinedGeometry.cs
- ToolStripContainerDesigner.cs
- RepeatInfo.cs
- VisualStyleInformation.cs
- InstalledFontCollection.cs
- File.cs
- ByteFacetDescriptionElement.cs
- newinstructionaction.cs
- PageThemeCodeDomTreeGenerator.cs
- HttpConfigurationSystem.cs
- Socket.cs
- DoubleLink.cs
- FixedSchema.cs
- Tokenizer.cs
- TransformerInfoCollection.cs
- SplitterEvent.cs
- ToolStripLocationCancelEventArgs.cs
- Pen.cs
- shaperfactoryquerycacheentry.cs
- PackageFilter.cs
- WinEventQueueItem.cs
- IListConverters.cs
- TypeNameConverter.cs
- DateTimeConverter.cs
- FlatButtonAppearance.cs
- SharedPersonalizationStateInfo.cs
- mediaeventargs.cs
- IEnumerable.cs
- CommandExpr.cs
- UnionCodeGroup.cs
- CriticalFinalizerObject.cs
- ThreadSafeList.cs
- DataSourceSelectArguments.cs
- Visual3DCollection.cs
- WebBrowserBase.cs
- SiteMapNodeItem.cs
- FormViewDeletedEventArgs.cs
- SamlSubject.cs
- CommonDialog.cs
- FrameSecurityDescriptor.cs
- BitmapFrameEncode.cs
- Trustee.cs
- OpCodes.cs
- CopyAction.cs
- StringComparer.cs