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
- ListGeneralPage.cs
- TextEditorCopyPaste.cs
- TraceEventCache.cs
- ContentHostHelper.cs
- TypeExtensions.cs
- ToolStripButton.cs
- MultiBindingExpression.cs
- IsolatedStorage.cs
- XsltSettings.cs
- GridViewUpdateEventArgs.cs
- ExpandCollapsePattern.cs
- CodeArgumentReferenceExpression.cs
- MemoryFailPoint.cs
- TextParentUndoUnit.cs
- TextServicesDisplayAttributePropertyRanges.cs
- SoapExtensionReflector.cs
- WarningException.cs
- XmlSerializerAssemblyAttribute.cs
- TemplateInstanceAttribute.cs
- WebPartCancelEventArgs.cs
- PackagePartCollection.cs
- _NTAuthentication.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- EncryptedKey.cs
- BamlMapTable.cs
- HScrollBar.cs
- ByteStreamGeometryContext.cs
- SafeNativeMethods.cs
- UIElementHelper.cs
- Panel.cs
- WsdlInspector.cs
- CellConstant.cs
- RectKeyFrameCollection.cs
- GeneralTransform3DCollection.cs
- BrowserCapabilitiesFactory35.cs
- FormViewRow.cs
- ItemCollection.cs
- DataGridViewCellCollection.cs
- ThreadStateException.cs
- TraceUtility.cs
- Pen.cs
- X509ClientCertificateCredentialsElement.cs
- NopReturnReader.cs
- ScopeCollection.cs
- SyntaxCheck.cs
- NopReturnReader.cs
- DataPagerFieldItem.cs
- CodeNamespaceImportCollection.cs
- _DisconnectOverlappedAsyncResult.cs
- SamlAuthorityBinding.cs
- SQLBytes.cs
- HeaderUtility.cs
- WizardStepCollectionEditor.cs
- Set.cs
- ObjectViewListener.cs
- ImageFormatConverter.cs
- GroupBoxRenderer.cs
- Classification.cs
- ChtmlImageAdapter.cs
- NumericExpr.cs
- arabicshape.cs
- ConfigXmlText.cs
- TextBox.cs
- ButtonColumn.cs
- IntSecurity.cs
- RestClientProxyHandler.cs
- RowUpdatedEventArgs.cs
- InputProviderSite.cs
- ExceptionHandler.cs
- HttpWriter.cs
- FormViewInsertEventArgs.cs
- XmlSchemaChoice.cs
- ExpressionContext.cs
- MultiAsyncResult.cs
- DataRecord.cs
- DataPagerFieldCommandEventArgs.cs
- WebRequestModuleElement.cs
- SqlGenericUtil.cs
- TaiwanCalendar.cs
- TypeUtil.cs
- CacheAxisQuery.cs
- DbMetaDataColumnNames.cs
- HierarchicalDataSourceControl.cs
- MatrixValueSerializer.cs
- PrePostDescendentsWalker.cs
- DbProviderManifest.cs
- Certificate.cs
- BamlResourceSerializer.cs
- ObjectComplexPropertyMapping.cs
- ProcessInfo.cs
- RectangleHotSpot.cs
- AssemblyBuilderData.cs
- DetailsViewInsertEventArgs.cs
- LongAverageAggregationOperator.cs
- TargetInvocationException.cs
- RequestUriProcessor.cs
- HTTPNotFoundHandler.cs
- FormsAuthenticationCredentials.cs
- METAHEADER.cs
- CancellationState.cs