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
- DataGridViewButtonCell.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- ObjectStorage.cs
- StateManagedCollection.cs
- EntityCollection.cs
- ProfilePropertySettings.cs
- DataGridColumn.cs
- ThumbButtonInfoCollection.cs
- UserControlCodeDomTreeGenerator.cs
- QilPatternVisitor.cs
- BroadcastEventHelper.cs
- WsdlInspector.cs
- AutomationIdentifier.cs
- IconHelper.cs
- PropertyDescriptor.cs
- XmlMembersMapping.cs
- WebPartConnectionsEventArgs.cs
- FaultDesigner.cs
- WebUtil.cs
- TraceSection.cs
- EntityDataSourceQueryBuilder.cs
- QueryGenerator.cs
- NetSectionGroup.cs
- CheckPair.cs
- ValidatorCollection.cs
- FixedSOMContainer.cs
- MultiView.cs
- DirectoryNotFoundException.cs
- HttpCachePolicy.cs
- SqlUserDefinedTypeAttribute.cs
- SiteMembershipCondition.cs
- HtmlInputFile.cs
- PropertyCondition.cs
- ExpressionBuilderContext.cs
- EtwProvider.cs
- EntityClientCacheEntry.cs
- SortedList.cs
- EdmScalarPropertyAttribute.cs
- Hashtable.cs
- COM2ExtendedBrowsingHandler.cs
- ConfigXmlCDataSection.cs
- Hyperlink.cs
- WizardForm.cs
- DebugController.cs
- InputScope.cs
- UserInitiatedRoutedEventPermission.cs
- NegationPusher.cs
- WindowInteractionStateTracker.cs
- BinaryEditor.cs
- GradientStop.cs
- ComboBox.cs
- Solver.cs
- SharedConnectionInfo.cs
- BoolExpr.cs
- CompilerGlobalScopeAttribute.cs
- RuntimeIdentifierPropertyAttribute.cs
- PopupRoot.cs
- ForEachAction.cs
- WebPartMovingEventArgs.cs
- DataGridViewMethods.cs
- DataKeyPropertyAttribute.cs
- HeaderedItemsControl.cs
- WebPartManagerInternals.cs
- ExtenderHelpers.cs
- ControlAdapter.cs
- SessionEndingCancelEventArgs.cs
- QueryStringParameter.cs
- KnownColorTable.cs
- GACIdentityPermission.cs
- DisplayNameAttribute.cs
- EventRecordWrittenEventArgs.cs
- ActivityFunc.cs
- TextFormatter.cs
- XmlSchema.cs
- NonBatchDirectoryCompiler.cs
- VSWCFServiceContractGenerator.cs
- MergeFailedEvent.cs
- KeyNotFoundException.cs
- DbTransaction.cs
- AnimatedTypeHelpers.cs
- FormViewModeEventArgs.cs
- TextRunCache.cs
- XmlSchemaObjectCollection.cs
- LocalsItemDescription.cs
- XslCompiledTransform.cs
- SinglePageViewer.cs
- Nullable.cs
- RowToFieldTransformer.cs
- SurrogateChar.cs
- TypedReference.cs
- EventlogProvider.cs
- OpCopier.cs
- NamespaceEmitter.cs
- MaterialGroup.cs
- NodeInfo.cs
- validation.cs
- AnnotationService.cs
- GridProviderWrapper.cs
- ComponentResourceKeyConverter.cs
- UmAlQuraCalendar.cs