Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / peersecurityelement.cs / 1 / peersecurityelement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.ServiceModel.Channels; using System.Globalization; using System.Net; using System.Net.Security; using System.ServiceModel; using System.ServiceModel.Security; using System.ComponentModel; public sealed partial class PeerSecurityElement : ConfigurationElement { [ConfigurationProperty(ConfigurationStrings.Mode, DefaultValue = PeerSecuritySettings.DefaultMode)] [ServiceModelEnumValidator(typeof(SecurityModeHelper))] public SecurityMode Mode { get { return (SecurityMode)base[ConfigurationStrings.Mode]; } set { base[ConfigurationStrings.Mode] = value; } } [ConfigurationProperty(ConfigurationStrings.Transport)] public PeerTransportSecurityElement Transport { get { return (PeerTransportSecurityElement)base[ConfigurationStrings.Transport]; } } internal void ApplyConfiguration(PeerSecuritySettings security) { if (security == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); } security.Mode = this.Mode; if (security.Mode != SecurityMode.None) { this.Transport.ApplyConfiguration(security.Transport); } } internal void InitializeFrom(PeerSecuritySettings security) { if (security == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); } this.Mode = security.Mode; if (security.Mode != SecurityMode.None) { this.Transport.InitializeFrom(security.Transport); } } internal void CopyFrom(PeerSecurityElement source) { if (source == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); } this.Mode = source.Mode; if (source.Mode != SecurityMode.None) { this.Transport.CopyFrom(source.Transport); } } } } // 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
- SqlUserDefinedTypeAttribute.cs
- DataListItem.cs
- TreeNodeCollection.cs
- PointAnimation.cs
- CaseStatement.cs
- SafeNativeMethods.cs
- DataGridViewButtonCell.cs
- ViewValidator.cs
- MouseButtonEventArgs.cs
- TeredoHelper.cs
- _NetRes.cs
- diagnosticsswitches.cs
- DocumentViewerAutomationPeer.cs
- DataGridRelationshipRow.cs
- ImageButton.cs
- ColorBlend.cs
- CacheMemory.cs
- OutputScope.cs
- HMACSHA256.cs
- EntityDataSourceDesignerHelper.cs
- BindingManagerDataErrorEventArgs.cs
- ListCollectionView.cs
- BinaryCommonClasses.cs
- FileInfo.cs
- AstTree.cs
- DbParameterCollectionHelper.cs
- ThreadStaticAttribute.cs
- DataRowExtensions.cs
- __ConsoleStream.cs
- SystemWebExtensionsSectionGroup.cs
- EventSinkActivity.cs
- HostingEnvironment.cs
- externdll.cs
- ExponentialEase.cs
- AccessViolationException.cs
- WebPartCollection.cs
- SyndicationDeserializer.cs
- DynamicDataExtensions.cs
- PrintPreviewDialog.cs
- CommonProperties.cs
- ProfilePropertyMetadata.cs
- FullTrustAssembliesSection.cs
- UpdateTranslator.cs
- ResourceCategoryAttribute.cs
- CursorConverter.cs
- FileUtil.cs
- PrintDialog.cs
- FunctionNode.cs
- Function.cs
- TdsRecordBufferSetter.cs
- BaseValidatorDesigner.cs
- CollectionDataContract.cs
- ProbeMatches11.cs
- MutexSecurity.cs
- DataGridViewComponentPropertyGridSite.cs
- HuffCodec.cs
- DesignerCalendarAdapter.cs
- ToolStripSeparatorRenderEventArgs.cs
- EnvironmentPermission.cs
- IsolatedStorage.cs
- PlatformCulture.cs
- WorkflowServiceAttributesTypeConverter.cs
- Compilation.cs
- ConfigurationManagerInternalFactory.cs
- UnSafeCharBuffer.cs
- XmlTypeMapping.cs
- TypeElement.cs
- FixedSOMSemanticBox.cs
- AssemblyAttributes.cs
- TreeNodeCollection.cs
- PresentationAppDomainManager.cs
- Rect3D.cs
- HostProtectionException.cs
- CqlParserHelpers.cs
- OciEnlistContext.cs
- DataServiceHostWrapper.cs
- XmlObjectSerializerContext.cs
- Events.cs
- CodeAttributeDeclaration.cs
- RegexInterpreter.cs
- CodeSubDirectoriesCollection.cs
- FontStretch.cs
- WebServiceHandler.cs
- IndicShape.cs
- DataGridCell.cs
- PerformanceCounterNameAttribute.cs
- ISessionStateStore.cs
- StylusPointCollection.cs
- InvalidComObjectException.cs
- RegistrySecurity.cs
- DragEventArgs.cs
- ChangeConflicts.cs
- RawAppCommandInputReport.cs
- InteropDesigner.xaml.cs
- BuiltInExpr.cs
- XmlBinaryReader.cs
- FillBehavior.cs
- Point3DCollectionConverter.cs
- IfAction.cs
- BulletedList.cs