コード例 #1
0
 /// <summary>
 /// A helper to get an instance of the PSTraceSource class.
 /// </summary>
 /// <param name="name">
 /// The name of the category that this class
 /// will control the tracing for.
 /// </param>
 /// <param name="description">
 /// The description to describe what the category
 /// is used for.
 /// </param>
 /// <returns>
 /// An instance of the PSTraceSource class which is initialized
 /// to trace for the specified category. If multiple callers ask for the same category,
 /// the same PSTraceSource will be returned.
 /// </returns>
 internal static PSTraceSource GetTracer(
     string name,
     string description)
 {
     return(PSTraceSource.GetTracer(name, description, true));
 }
コード例 #2
0
ファイル: PSTraceSource.cs プロジェクト: mmoenfly/GitCook2021
 internal static PSTraceSource GetTracer(string name, string description) => PSTraceSource.GetTracer(name, description, true);