Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / Diagnostics / DiagnosticTraceSource.cs / 1305376 / DiagnosticTraceSource.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Runtime.Diagnostics { using System; using System.Diagnostics; class DiagnosticTraceSource : TraceSource { const string PropagateActivityValue = "propagateActivity"; internal DiagnosticTraceSource(string name) : base(name) { } protected override string[] GetSupportedAttributes() { return new string[] { DiagnosticTraceSource.PropagateActivityValue }; } internal bool PropagateActivity { get { bool retval = false; string attributeValue = this.Attributes[DiagnosticTraceSource.PropagateActivityValue]; if (!string.IsNullOrEmpty(attributeValue)) { if (!bool.TryParse(attributeValue, out retval)) { retval = false; } } return retval; } set { this.Attributes[DiagnosticTraceSource.PropagateActivityValue] = value.ToString(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Runtime.Diagnostics { using System; using System.Diagnostics; class DiagnosticTraceSource : TraceSource { const string PropagateActivityValue = "propagateActivity"; internal DiagnosticTraceSource(string name) : base(name) { } protected override string[] GetSupportedAttributes() { return new string[] { DiagnosticTraceSource.PropagateActivityValue }; } internal bool PropagateActivity { get { bool retval = false; string attributeValue = this.Attributes[DiagnosticTraceSource.PropagateActivityValue]; if (!string.IsNullOrEmpty(attributeValue)) { if (!bool.TryParse(attributeValue, out retval)) { retval = false; } } return retval; } set { this.Attributes[DiagnosticTraceSource.PropagateActivityValue] = value.ToString(); } } } } // 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
- FileDetails.cs
- ButtonChrome.cs
- NotifyParentPropertyAttribute.cs
- ConstructorArgumentAttribute.cs
- ChannelBinding.cs
- EntityDataSourceWizardForm.cs
- TrackingProfileDeserializationException.cs
- COM2PropertyDescriptor.cs
- StructuredTypeInfo.cs
- InvalidDataException.cs
- DataBindingExpressionBuilder.cs
- DataGridViewRowsRemovedEventArgs.cs
- WebPartTracker.cs
- PtsHelper.cs
- StringUtil.cs
- MobileResource.cs
- ToolStripPanelRenderEventArgs.cs
- PowerModeChangedEventArgs.cs
- RuntimeArgumentHandle.cs
- WindowsAuthenticationEventArgs.cs
- LogRestartAreaEnumerator.cs
- CfgSemanticTag.cs
- AttachedProperty.cs
- PersonalizationProvider.cs
- TypeInformation.cs
- TextElement.cs
- _HeaderInfo.cs
- Point4DConverter.cs
- UidManager.cs
- WebEventCodes.cs
- CharEnumerator.cs
- HttpDictionary.cs
- ClientUtils.cs
- ProfileParameter.cs
- EntityContainerRelationshipSetEnd.cs
- UserControlBuildProvider.cs
- MemoryStream.cs
- lengthconverter.cs
- RecommendedAsConfigurableAttribute.cs
- FontStretch.cs
- HtmlTableRowCollection.cs
- ToolStripSplitStackLayout.cs
- Part.cs
- SqlDataSourceFilteringEventArgs.cs
- Context.cs
- SizeAnimation.cs
- DataControlButton.cs
- FileClassifier.cs
- SQLInt16.cs
- HttpServerChannel.cs
- BinaryObjectWriter.cs
- TableLayoutPanel.cs
- EntityDataSourceContextDisposingEventArgs.cs
- TreeNodeSelectionProcessor.cs
- ActivityStateRecord.cs
- ItemAutomationPeer.cs
- MarkupCompilePass1.cs
- CallbackValidator.cs
- ProjectionCamera.cs
- ControlTemplate.cs
- ScalarRestriction.cs
- DecoderReplacementFallback.cs
- RepeatBehavior.cs
- Point3D.cs
- ImageSource.cs
- SecurityTokenProviderContainer.cs
- IPEndPointCollection.cs
- IOException.cs
- StringBuilder.cs
- Tablet.cs
- InputManager.cs
- DBNull.cs
- TabControl.cs
- SessionStateSection.cs
- WebPartConnectionsConnectVerb.cs
- DataGridViewColumnCollectionDialog.cs
- PersonalizationProviderCollection.cs
- UnsafeNativeMethods.cs
- GroupBox.cs
- SortExpressionBuilder.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- WebConfigurationHost.cs
- ConfigXmlReader.cs
- CompModSwitches.cs
- XmlBoundElement.cs
- SystemColors.cs
- KeyInfo.cs
- BitArray.cs
- ResizeBehavior.cs
- ContainerSelectorGlyph.cs
- HttpServerVarsCollection.cs
- SrgsGrammarCompiler.cs
- SmtpNtlmAuthenticationModule.cs
- DesignerAutoFormatStyle.cs
- ChameleonKey.cs
- RenamedEventArgs.cs
- FormsAuthentication.cs
- CharUnicodeInfo.cs
- XhtmlTextWriter.cs
- ScaleTransform.cs