You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
601 B
C#
23 lines
601 B
C#
using Microsoft.Extensions.DiagnosticAdapter;
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LogStudy.DiagnosticLog
|
|
{
|
|
public class DiagnosticSourceCollector
|
|
{
|
|
[DiagnosticName("CommandExcute")]
|
|
public void OnCommandExcute(string commandType, string commandText)
|
|
{
|
|
Console.WriteLine($"Event Name: OnCommandExcute");
|
|
Console.WriteLine($"CommandType:{commandType}");
|
|
Console.WriteLine($"CommandText:{commandText}");
|
|
}
|
|
}
|
|
}
|