Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / WindowsServiceElement.cs / 1 / WindowsServiceElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System; using System.ServiceModel; using System.Configuration; using System.ServiceModel.Security; using System.ServiceModel.Channels; using System.Xml; using System.Security.Cryptography.X509Certificates; public sealed partial class WindowsServiceElement : ConfigurationElement { public WindowsServiceElement() { } [ConfigurationProperty(ConfigurationStrings.IncludeWindowsGroups, DefaultValue = SspiSecurityTokenProvider.DefaultExtractWindowsGroupClaims)] public bool IncludeWindowsGroups { get { return (bool)base[ConfigurationStrings.IncludeWindowsGroups]; } set { base[ConfigurationStrings.IncludeWindowsGroups] = value; } } [ConfigurationProperty(ConfigurationStrings.AllowAnonymousLogons, DefaultValue = SspiSecurityTokenProvider.DefaultAllowUnauthenticatedCallers)] public bool AllowAnonymousLogons { get { return (bool)base[ConfigurationStrings.AllowAnonymousLogons]; } set { base[ConfigurationStrings.AllowAnonymousLogons] = value; } } public void Copy(WindowsServiceElement from) { if (this.IsReadOnly()) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(SR.GetString(SR.ConfigReadOnly))); } if (null == from) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("from"); } this.AllowAnonymousLogons = from.AllowAnonymousLogons; this.IncludeWindowsGroups = from.IncludeWindowsGroups; } internal void ApplyConfiguration(WindowsServiceCredential windows) { if (windows == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("windows"); } windows.AllowAnonymousLogons = this.AllowAnonymousLogons; windows.IncludeWindowsGroups = this.IncludeWindowsGroups; } } } // 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
- dataobject.cs
- RequestQueue.cs
- coordinatorfactory.cs
- ToolStripDropDownItem.cs
- XmlWhitespace.cs
- SamlSerializer.cs
- URLBuilder.cs
- SqlWebEventProvider.cs
- MeasurementDCInfo.cs
- SimpleType.cs
- BehaviorEditorPart.cs
- Ray3DHitTestResult.cs
- MemberMaps.cs
- RemoteX509AsymmetricSecurityKey.cs
- COM2Properties.cs
- SimpleHandlerFactory.cs
- WinFormsSecurity.cs
- XmlAttributeOverrides.cs
- WpfGeneratedKnownProperties.cs
- CodeCommentStatementCollection.cs
- CollectionChangeEventArgs.cs
- ObjectListCommand.cs
- DBSqlParserColumn.cs
- Item.cs
- SqlUdtInfo.cs
- MethodBuilder.cs
- SectionUpdates.cs
- DataSpaceManager.cs
- GridViewCommandEventArgs.cs
- XslTransform.cs
- XmlPreloadedResolver.cs
- PhysicalAddress.cs
- AuthStoreRoleProvider.cs
- Ops.cs
- SystemIPAddressInformation.cs
- NetTcpSectionData.cs
- Base64Stream.cs
- TokenBasedSet.cs
- SqlConnectionHelper.cs
- LayoutEditorPart.cs
- InkSerializer.cs
- EventOpcode.cs
- EntitySetRetriever.cs
- SkinIDTypeConverter.cs
- recordstatefactory.cs
- SequentialUshortCollection.cs
- DataContractAttribute.cs
- EntityTransaction.cs
- ToolStripContentPanelRenderEventArgs.cs
- DiscoveryServerProtocol.cs
- PictureBox.cs
- TimelineClockCollection.cs
- SapiGrammar.cs
- RSAPKCS1SignatureFormatter.cs
- HuffmanTree.cs
- DateTimeFormat.cs
- Transform.cs
- Literal.cs
- StreamSecurityUpgradeAcceptor.cs
- ConsumerConnectionPointCollection.cs
- SqlSupersetValidator.cs
- AuthenticatingEventArgs.cs
- DNS.cs
- SqlAliaser.cs
- SystemIPv6InterfaceProperties.cs
- CompilationLock.cs
- Paragraph.cs
- DbSourceCommand.cs
- StrictAndMessageFilter.cs
- ImageFormatConverter.cs
- ServiceModelStringsVersion1.cs
- UIElementIsland.cs
- LoadGrammarCompletedEventArgs.cs
- Binding.cs
- XmlDesignerDataSourceView.cs
- PageClientProxyGenerator.cs
- QueryGenerator.cs
- SafeHandles.cs
- TextEndOfSegment.cs
- MailMessageEventArgs.cs
- Positioning.cs
- ConfigurationErrorsException.cs
- ThousandthOfEmRealDoubles.cs
- WorkflowElementDialog.cs
- RegexMatch.cs
- TcpAppDomainProtocolHandler.cs
- ComponentManagerBroker.cs
- CompensateDesigner.cs
- Base64Decoder.cs
- SynchronizingStream.cs
- XpsManager.cs
- MultiTrigger.cs
- CompensationDesigner.cs
- PathFigureCollectionConverter.cs
- TrustLevel.cs
- LicenseProviderAttribute.cs
- RoleManagerModule.cs
- TraceFilter.cs
- ButtonFieldBase.cs
- TokenBasedSet.cs