Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / SMDiagnostics / System / ServiceModel / Diagnostics / MachineSettingsSection.cs / 1305376 / MachineSettingsSection.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; internal class MachineSettingsSection : ConfigurationSection { static bool enableLoggingKnownPii; static bool hasInitialized = false; static object syncRoot = new object(); const string enableLoggingKnownPiiKey = "enableLoggingKnownPii"; ConfigurationPropertyCollection properties; protected override ConfigurationPropertyCollection Properties { get { if (this.properties == null) { ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); properties.Add(new ConfigurationProperty(MachineSettingsSection.enableLoggingKnownPiiKey, typeof(System.Boolean), false, null, null, System.Configuration.ConfigurationPropertyOptions.None)); this.properties = properties; } return this.properties; } } public static bool EnableLoggingKnownPii { get { if (!hasInitialized) { lock (syncRoot) { if (!hasInitialized) { MachineSettingsSection machineSettingsSection = (MachineSettingsSection)ConfigurationManager.GetSection("system.serviceModel/machineSettings"); enableLoggingKnownPii = (bool)machineSettingsSection[MachineSettingsSection.enableLoggingKnownPiiKey]; hasInitialized = true; } } } return enableLoggingKnownPii; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GregorianCalendar.cs
- Convert.cs
- FormsAuthenticationUserCollection.cs
- Int64AnimationBase.cs
- UserPreferenceChangingEventArgs.cs
- Ray3DHitTestResult.cs
- MaskPropertyEditor.cs
- StandardOleMarshalObject.cs
- LineProperties.cs
- SimplePropertyEntry.cs
- XmlnsCache.cs
- RecordManager.cs
- InputScopeManager.cs
- BinaryExpression.cs
- EntityClassGenerator.cs
- SeparatorAutomationPeer.cs
- TakeQueryOptionExpression.cs
- InfoCardTrace.cs
- DefaultHttpHandler.cs
- xml.cs
- UriSectionData.cs
- ListSortDescription.cs
- RSAOAEPKeyExchangeFormatter.cs
- XmlILConstructAnalyzer.cs
- Canvas.cs
- SchemaCollectionPreprocessor.cs
- JoinGraph.cs
- PropertyKey.cs
- MdImport.cs
- WebBodyFormatMessageProperty.cs
- PropertyPushdownHelper.cs
- TypeUnloadedException.cs
- WindowsFormsSynchronizationContext.cs
- ResourceContainer.cs
- HandlerFactoryWrapper.cs
- IgnoreSectionHandler.cs
- SqlReferenceCollection.cs
- MSAAWinEventWrap.cs
- ProtocolsSection.cs
- CompiledRegexRunnerFactory.cs
- UICuesEvent.cs
- _AutoWebProxyScriptEngine.cs
- EnumMemberAttribute.cs
- sitestring.cs
- SearchForVirtualItemEventArgs.cs
- IisTraceWebEventProvider.cs
- Error.cs
- DesignerActionGlyph.cs
- indexingfiltermarshaler.cs
- XmlStreamNodeWriter.cs
- ConfigurationValue.cs
- EventHandlerList.cs
- StrokeNodeData.cs
- HttpRequest.cs
- DataServiceResponse.cs
- QuaternionConverter.cs
- WebPartVerbCollection.cs
- FrameSecurityDescriptor.cs
- connectionpool.cs
- CompareInfo.cs
- SHA256Cng.cs
- ListViewDataItem.cs
- OperandQuery.cs
- OptimalBreakSession.cs
- PriorityQueue.cs
- Verify.cs
- SlotInfo.cs
- Help.cs
- FamilyCollection.cs
- ImageAutomationPeer.cs
- InvokeSchedule.cs
- SmiSettersStream.cs
- Visual3D.cs
- SmtpFailedRecipientException.cs
- EtwTrace.cs
- PersistChildrenAttribute.cs
- PathSegmentCollection.cs
- WebPartConnectionCollection.cs
- AsyncOperation.cs
- SurrogateEncoder.cs
- ConsoleEntryPoint.cs
- ManagementException.cs
- CommentEmitter.cs
- GridView.cs
- _IPv6Address.cs
- DelegateSerializationHolder.cs
- HandlerBase.cs
- ObjectDataSource.cs
- XmlElementAttributes.cs
- ItemChangedEventArgs.cs
- FunctionParameter.cs
- HeaderLabel.cs
- GenericAuthenticationEventArgs.cs
- SqlResolver.cs
- MsdtcClusterUtils.cs
- RangeValuePattern.cs
- AsymmetricSignatureDeformatter.cs
- MonthCalendar.cs
- DiscoveryDocumentReference.cs
- EntityConnectionStringBuilder.cs