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
- SqlClientFactory.cs
- TableLayoutColumnStyleCollection.cs
- ImageClickEventArgs.cs
- ListViewTableCell.cs
- Setter.cs
- MailMessageEventArgs.cs
- ForceCopyBuildProvider.cs
- IncrementalCompileAnalyzer.cs
- SqlSupersetValidator.cs
- StylusOverProperty.cs
- ListView.cs
- WebPartTransformer.cs
- MachineSettingsSection.cs
- WebServiceErrorEvent.cs
- SetIndexBinder.cs
- CollectionsUtil.cs
- MailMessage.cs
- SimpleWorkerRequest.cs
- InternalSafeNativeMethods.cs
- WorkflowRuntimeServicesBehavior.cs
- TransactionContextValidator.cs
- DoubleLinkListEnumerator.cs
- Matrix.cs
- XmlSchemaElement.cs
- CodeAttributeArgument.cs
- InkSerializer.cs
- MessageQueue.cs
- NullReferenceException.cs
- StoreAnnotationsMap.cs
- Decorator.cs
- TemplateControlCodeDomTreeGenerator.cs
- CompositeFontFamily.cs
- SymbolPair.cs
- ControlCollection.cs
- DbConnectionPoolGroup.cs
- ProtocolsConfigurationEntry.cs
- JavaScriptObjectDeserializer.cs
- TypeUtil.cs
- DateTimeConverter2.cs
- PartialList.cs
- ToolStripSeparatorRenderEventArgs.cs
- RowBinding.cs
- FreezableDefaultValueFactory.cs
- ScopedKnownTypes.cs
- HotSpotCollectionEditor.cs
- DataGridViewEditingControlShowingEventArgs.cs
- PackageFilter.cs
- DataGridViewButtonColumn.cs
- AudienceUriMode.cs
- TextBox.cs
- MimeBasePart.cs
- GenericsInstances.cs
- ProbeDuplex11AsyncResult.cs
- NetCodeGroup.cs
- ExecutionContext.cs
- RepeatBehavior.cs
- AutomationPatternInfo.cs
- Variant.cs
- IntSecurity.cs
- ContractTypeNameElement.cs
- BaseCodeDomTreeGenerator.cs
- DocumentSequenceHighlightLayer.cs
- FontFamilyValueSerializer.cs
- EastAsianLunisolarCalendar.cs
- SharedDp.cs
- BaseValidator.cs
- DataControlImageButton.cs
- SQLInt32Storage.cs
- LiteralLink.cs
- RightsManagementEncryptedStream.cs
- XmlSchemaException.cs
- DeclaredTypeValidator.cs
- RankException.cs
- IIS7WorkerRequest.cs
- TriState.cs
- RowTypeElement.cs
- ExpressionBuilderContext.cs
- ConfigurationStrings.cs
- DriveNotFoundException.cs
- TreeNodeBinding.cs
- HScrollProperties.cs
- HttpCapabilitiesSectionHandler.cs
- ArrayList.cs
- DataGridCommandEventArgs.cs
- AddInActivator.cs
- WebPartCollection.cs
- WindowsFormsHelpers.cs
- Config.cs
- ExternalFile.cs
- WebPartEditorOkVerb.cs
- GridViewEditEventArgs.cs
- TextElementCollectionHelper.cs
- Types.cs
- ClientSideQueueItem.cs
- JsonSerializer.cs
- LifetimeServices.cs
- TrustManagerMoreInformation.cs
- ActivityExecutorOperation.cs
- EventLogPermissionEntryCollection.cs
- DNS.cs