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
- ServiceNameElement.cs
- Properties.cs
- LinkedResourceCollection.cs
- DllNotFoundException.cs
- BrushValueSerializer.cs
- Configuration.cs
- RIPEMD160Managed.cs
- ValidateNames.cs
- DbConnectionPoolGroup.cs
- ConfigurationManagerInternalFactory.cs
- AvtEvent.cs
- TextAutomationPeer.cs
- Root.cs
- EpmSyndicationContentSerializer.cs
- ListViewTableRow.cs
- ScriptBehaviorDescriptor.cs
- Socket.cs
- OrthographicCamera.cs
- CustomGrammar.cs
- MethodCallConverter.cs
- PartialToken.cs
- CodeMemberEvent.cs
- Binding.cs
- BindingCollectionElement.cs
- XhtmlBasicObjectListAdapter.cs
- ScriptControlManager.cs
- ZoneIdentityPermission.cs
- MailDefinitionBodyFileNameEditor.cs
- ResourceReferenceKeyNotFoundException.cs
- TreeViewImageGenerator.cs
- XmlEventCache.cs
- ItemsPresenter.cs
- StorageComplexTypeMapping.cs
- ToolStripItemImageRenderEventArgs.cs
- Enumerable.cs
- ClientSettingsStore.cs
- AppliedDeviceFiltersDialog.cs
- PackageDigitalSignatureManager.cs
- DataProviderNameConverter.cs
- XmlReader.cs
- RuntimeComponentFilter.cs
- PropertyTab.cs
- ZipIOFileItemStream.cs
- WebHttpElement.cs
- WindowsGraphics.cs
- FtpWebResponse.cs
- EndGetFileNameFromUserRequest.cs
- RegisteredExpandoAttribute.cs
- DrawingContextDrawingContextWalker.cs
- TraceHwndHost.cs
- SmtpLoginAuthenticationModule.cs
- BuildDependencySet.cs
- Binding.cs
- KeyTimeConverter.cs
- PrintEvent.cs
- HostingEnvironment.cs
- WhitespaceRuleLookup.cs
- StorageEndPropertyMapping.cs
- FocusWithinProperty.cs
- EditCommandColumn.cs
- XmlValidatingReaderImpl.cs
- ObjectItemNoOpAssemblyLoader.cs
- TimeSpanParse.cs
- HtmlControl.cs
- CodeBlockBuilder.cs
- PropertyToken.cs
- DataBoundControl.cs
- SelectionWordBreaker.cs
- X509DefaultServiceCertificateElement.cs
- DBBindings.cs
- BitmapEffectCollection.cs
- ZipIOLocalFileHeader.cs
- RunWorkerCompletedEventArgs.cs
- DataGridBeginningEditEventArgs.cs
- CaseCqlBlock.cs
- DesignTimeTemplateParser.cs
- SchemaImporterExtension.cs
- SafeNativeMethods.cs
- PointLightBase.cs
- RadioButtonList.cs
- MetadataCache.cs
- FontStyleConverter.cs
- ObjectSecurity.cs
- ToolStripArrowRenderEventArgs.cs
- Content.cs
- listitem.cs
- ImageDrawing.cs
- LinkButton.cs
- LineVisual.cs
- BufferedGraphics.cs
- ProfileService.cs
- FrameworkContentElement.cs
- Camera.cs
- CodeTypeDelegate.cs
- WindowHideOrCloseTracker.cs
- RMEnrollmentPage3.cs
- TextTreeTextNode.cs
- StylusPlugin.cs
- WorkflowControlEndpoint.cs
- NavigationCommands.cs