by
0
7
1,052
2
Top 1% !
Popular
Famous
Easy-to-find
Specified
Refined
OpenSource
Popularity: 28376th place

Published on:

InputName0operationName
InputType0string
LanguageCSharp
LicenseMIT_X11
MethodNameTraceStartLogicalOperation
OSWindows
OutputTypevoid

TraceStartLogicalOperation: Starts logical operation in trace repository

<summary>
Starts logical operation in trace repository
</summary>
<param name="operationName"></param>
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/290148/TraceStartLogicalOperation--Starts-logic?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
#endregion #region Public Methods /// <summary> /// Starts logical operation in trace repository /// </summary> /// <param name="operationName"></param> [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2135:SecurityRuleSetLevel2MethodsShouldNotBeProtectedWithLinkDemandsFxCopRule"), SecurityPermission(SecurityAction.LinkDemand)] static public void TraceStartLogicalOperation(string operationName) { if (String.IsNullOrEmpty(operationName)) throw new ArgumentNullException("operationName","Trace message is null or empty string"); System.Diagnostics.Trace.CorrelationManager.ActivityId = Guid.NewGuid(); System.Diagnostics.Trace.CorrelationManager.StartLogicalOperation(operationName); }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus