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
- AlternateView.cs
- CollectionViewGroupRoot.cs
- StreamReader.cs
- ConfigurationPropertyCollection.cs
- DataReaderContainer.cs
- ServiceAppDomainAssociationProvider.cs
- TypeForwardedFromAttribute.cs
- NameTable.cs
- _TimerThread.cs
- RNGCryptoServiceProvider.cs
- QueryResult.cs
- KnownBoxes.cs
- EntityTransaction.cs
- ClassData.cs
- FigureHelper.cs
- PropertyMetadata.cs
- AggregationMinMaxHelpers.cs
- PersonalizationStateInfoCollection.cs
- VSWCFServiceContractGenerator.cs
- SecurityDescriptor.cs
- TemplateControlBuildProvider.cs
- DetailsView.cs
- FusionWrap.cs
- XmlWrappingWriter.cs
- SQLInt16.cs
- XmlIlTypeHelper.cs
- XmlMembersMapping.cs
- XmlSchemaInferenceException.cs
- IntSecurity.cs
- WindowsButton.cs
- PaperSize.cs
- ToolBar.cs
- LocatorPartList.cs
- DataTableMapping.cs
- MemberDescriptor.cs
- LicenseManager.cs
- XmlExtensionFunction.cs
- PenContext.cs
- SafeRightsManagementSessionHandle.cs
- FontCacheUtil.cs
- ServiceThrottle.cs
- SequentialUshortCollection.cs
- EventSetterHandlerConverter.cs
- ToolStripOverflowButton.cs
- SelfIssuedSamlTokenFactory.cs
- TextModifierScope.cs
- WebPartMinimizeVerb.cs
- Double.cs
- Sequence.cs
- OleDbError.cs
- NumberSubstitution.cs
- DbProviderFactories.cs
- RepeaterCommandEventArgs.cs
- Ray3DHitTestResult.cs
- ProgressPage.cs
- RangeValidator.cs
- UnsafeNativeMethods.cs
- Brush.cs
- XamlTypeMapper.cs
- RectangleGeometry.cs
- ComplusTypeValidator.cs
- ScriptControlDescriptor.cs
- PartialTrustVisibleAssembliesSection.cs
- AsyncCallback.cs
- XmlStreamStore.cs
- Vector3DConverter.cs
- QilInvokeEarlyBound.cs
- AnimationClockResource.cs
- _NegoState.cs
- TimersDescriptionAttribute.cs
- RelAssertionDirectKeyIdentifierClause.cs
- TextSimpleMarkerProperties.cs
- MouseButtonEventArgs.cs
- HwndMouseInputProvider.cs
- AttributeXamlType.cs
- WebPartZoneBaseDesigner.cs
- WebSysDisplayNameAttribute.cs
- SafeNativeMethods.cs
- DataGridViewEditingControlShowingEventArgs.cs
- DispatchChannelSink.cs
- XmlQueryTypeFactory.cs
- ResizeBehavior.cs
- WizardStepBase.cs
- XmlILOptimizerVisitor.cs
- Pair.cs
- CornerRadiusConverter.cs
- SoapHttpTransportImporter.cs
- ResumeStoryboard.cs
- TextSchema.cs
- DesignerForm.cs
- FlowLayoutPanel.cs
- Blend.cs
- TreeNodeMouseHoverEvent.cs
- ImpersonateTokenRef.cs
- XmlArrayItemAttributes.cs
- EntityContainerEmitter.cs
- TemplateColumn.cs
- XmlSignatureProperties.cs
- UTF8Encoding.cs
- AssemblyInfo.cs