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
- XmlUtil.cs
- BamlTreeUpdater.cs
- FormsAuthenticationUserCollection.cs
- CustomValidator.cs
- SecurityCookieModeValidator.cs
- GridViewCellAutomationPeer.cs
- TextEffectResolver.cs
- Pkcs7Signer.cs
- CodeParameterDeclarationExpression.cs
- RightNameExpirationInfoPair.cs
- addressfiltermode.cs
- SmtpNegotiateAuthenticationModule.cs
- ValuePatternIdentifiers.cs
- ToolStripPanelSelectionGlyph.cs
- WebPartsSection.cs
- FloatSumAggregationOperator.cs
- ToolStripSystemRenderer.cs
- ValidatedControlConverter.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- ExclusiveTcpTransportManager.cs
- TypeInitializationException.cs
- CompressionTransform.cs
- RequiredFieldValidator.cs
- ApplicationId.cs
- SelectionRangeConverter.cs
- GridItemProviderWrapper.cs
- FileNotFoundException.cs
- basemetadatamappingvisitor.cs
- PageParser.cs
- DesignerWebPartChrome.cs
- CacheMemory.cs
- PixelFormatConverter.cs
- NoneExcludedImageIndexConverter.cs
- _StreamFramer.cs
- XmlValueConverter.cs
- SourceElementsCollection.cs
- SpecularMaterial.cs
- UserInitiatedNavigationPermission.cs
- FastPropertyAccessor.cs
- FlowDocumentView.cs
- CopyAction.cs
- SafeEventLogReadHandle.cs
- ILGenerator.cs
- TextRunProperties.cs
- CodeDomDecompiler.cs
- DataColumnMappingCollection.cs
- QilNode.cs
- PenThreadPool.cs
- WebBrowserContainer.cs
- BitmapEffectrendercontext.cs
- Hex.cs
- AuthStoreRoleProvider.cs
- CustomPeerResolverService.cs
- DesignerForm.cs
- datacache.cs
- ObjectIDGenerator.cs
- BookmarkTable.cs
- DeflateInput.cs
- XPathPatternParser.cs
- XamlToRtfParser.cs
- WebPartCatalogAddVerb.cs
- BuildDependencySet.cs
- UxThemeWrapper.cs
- XsltInput.cs
- PolyBezierSegment.cs
- FormattedText.cs
- RectValueSerializer.cs
- ConfigurationException.cs
- SqlNode.cs
- EncodingInfo.cs
- ManipulationDeltaEventArgs.cs
- RSACryptoServiceProvider.cs
- AsyncDataRequest.cs
- ProxySimple.cs
- DoWorkEventArgs.cs
- PtsPage.cs
- CngProperty.cs
- ResXDataNode.cs
- DataServiceContext.cs
- AnonymousIdentificationSection.cs
- RunClient.cs
- PersistenceContext.cs
- BitmapEffectDrawingContextWalker.cs
- TimeZone.cs
- DatagridviewDisplayedBandsData.cs
- SByte.cs
- CreateUserErrorEventArgs.cs
- RevocationPoint.cs
- FixedPageAutomationPeer.cs
- CultureInfoConverter.cs
- DateTimeHelper.cs
- BuildManager.cs
- ImageIndexConverter.cs
- BinaryFormatterWriter.cs
- XsltException.cs
- WebPartUtil.cs
- XmlSchemaAnnotation.cs
- StringValidator.cs
- ActiveXSite.cs
- ExpressionLexer.cs