Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / WSFederationHttpBindingElement.cs / 1 / WSFederationHttpBindingElement.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Configuration
{
using System.Configuration;
using System.ServiceModel;
using System.Globalization;
using System.ServiceModel.Security;
using System.ComponentModel;
using System.Text;
using System.ServiceModel.Channels;
public partial class WSFederationHttpBindingElement : WSHttpBindingBaseElement
{
public WSFederationHttpBindingElement(string name)
: base(name)
{
}
public WSFederationHttpBindingElement()
: this(null)
{
}
protected override Type BindingElementType
{
get { return typeof(WSFederationHttpBinding); }
}
[ConfigurationProperty(ConfigurationStrings.PrivacyNoticeAt, DefaultValue = null)]
public Uri PrivacyNoticeAt
{
get { return (Uri) base[ConfigurationStrings.PrivacyNoticeAt]; }
set { base[ConfigurationStrings.PrivacyNoticeAt] = value; }
}
[ConfigurationProperty(ConfigurationStrings.PrivacyNoticeVersion, DefaultValue = 0)]
[IntegerValidator(MinValue = 0)]
public int PrivacyNoticeVersion
{
get { return (int) base[ConfigurationStrings.PrivacyNoticeVersion]; }
set { base[ConfigurationStrings.PrivacyNoticeVersion] = value; }
}
[ConfigurationProperty(ConfigurationStrings.Security)]
public WSFederationHttpSecurityElement Security
{
get { return (WSFederationHttpSecurityElement)base[ConfigurationStrings.Security]; }
}
protected internal override void InitializeFrom(Binding binding)
{
base.InitializeFrom(binding);
WSFederationHttpBinding wspBinding = (WSFederationHttpBinding)binding;
if ( wspBinding.PrivacyNoticeAt != null )
{
this.PrivacyNoticeAt = wspBinding.PrivacyNoticeAt;
this.PrivacyNoticeVersion = wspBinding.PrivacyNoticeVersion;
}
this.Security.InitializeFrom(wspBinding.Security);
}
protected override void OnApplyConfiguration(Binding binding)
{
base.OnApplyConfiguration(binding);
WSFederationHttpBinding wspBinding = (WSFederationHttpBinding)binding;
if (this.PrivacyNoticeAt != null)
{
wspBinding.PrivacyNoticeAt = this.PrivacyNoticeAt;
wspBinding.PrivacyNoticeVersion = this.PrivacyNoticeVersion;
}
this.Security.ApplyConfiguration(wspBinding.Security);
}
}
}
// 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
- LinkConverter.cs
- UnsafeNativeMethods.cs
- URL.cs
- ParallelTimeline.cs
- HtmlTableRow.cs
- HttpRawResponse.cs
- OdbcConnectionFactory.cs
- WorkflowQueueInfo.cs
- CachedRequestParams.cs
- RoleBoolean.cs
- ScaleTransform.cs
- FlowPanelDesigner.cs
- X509ThumbprintKeyIdentifierClause.cs
- AssociatedControlConverter.cs
- SqlBulkCopy.cs
- ValueProviderWrapper.cs
- SvcMapFileLoader.cs
- HealthMonitoringSectionHelper.cs
- CreateWorkflowOwnerCommand.cs
- DynamicPropertyHolder.cs
- PenContext.cs
- WebSysDescriptionAttribute.cs
- SharedUtils.cs
- MDIClient.cs
- ResXResourceSet.cs
- IPHostEntry.cs
- RemotingException.cs
- Trustee.cs
- DbExpressionVisitor_TResultType.cs
- WebDisplayNameAttribute.cs
- WindowsSlider.cs
- CodeLinePragma.cs
- GeneralTransformCollection.cs
- RemoteWebConfigurationHost.cs
- DecoderExceptionFallback.cs
- ProcessStartInfo.cs
- ImageIndexConverter.cs
- SqlCharStream.cs
- assemblycache.cs
- RectAnimationClockResource.cs
- NetworkAddressChange.cs
- LiteralSubsegment.cs
- SQLMembershipProvider.cs
- HttpModuleActionCollection.cs
- OLEDB_Enum.cs
- ComponentEditorPage.cs
- IRCollection.cs
- AspNetHostingPermission.cs
- DelayDesigner.cs
- BasicViewGenerator.cs
- MergeLocalizationDirectives.cs
- StringUtil.cs
- BinaryFormatter.cs
- Rules.cs
- _DigestClient.cs
- ToolStripSettings.cs
- Clock.cs
- MimeMultiPart.cs
- ProgressBarHighlightConverter.cs
- LiteralControl.cs
- DecoderFallbackWithFailureFlag.cs
- IgnoreSectionHandler.cs
- WebPermission.cs
- SettingsSavedEventArgs.cs
- SystemFonts.cs
- EntityDataSourceState.cs
- ExpressionEvaluator.cs
- DbMetaDataColumnNames.cs
- ItemMap.cs
- IDReferencePropertyAttribute.cs
- TransactionManager.cs
- BasePropertyDescriptor.cs
- DataBoundControlHelper.cs
- Monitor.cs
- NavigationPropertyEmitter.cs
- WindowsStreamSecurityElement.cs
- SqlOuterApplyReducer.cs
- Line.cs
- BinaryCommonClasses.cs
- PageContentAsyncResult.cs
- WebPartEditorCancelVerb.cs
- ChtmlMobileTextWriter.cs
- PrintingPermissionAttribute.cs
- HttpRuntime.cs
- TrustManager.cs
- NativeMethods.cs
- XmlNotation.cs
- ReadingWritingEntityEventArgs.cs
- TransactionFlowElement.cs
- ArgumentValidation.cs
- UdpTransportSettings.cs
- RawAppCommandInputReport.cs
- XmlParserContext.cs
- Point3DCollection.cs
- Label.cs
- CodeDirectionExpression.cs
- AnnotationAuthorChangedEventArgs.cs
- ResourceKey.cs
- PageAdapter.cs
- DataGridViewCheckBoxColumn.cs