-
Notifications
You must be signed in to change notification settings - Fork 8
/
processme.txt
35 lines (35 loc) · 1.38 KB
/
processme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"$type": "AOPRoslyn.RewriteCodeFolder, AOPRoslyn",
"ExcludeFileNames": ["TestClassPerson.cs","TestClassPersonWithArguments.cs","AOPMethod.cs","GatherStatistics.cs"],
"FolderName": "@static:Environment.CurrentDirectory@",
"SearchPattern": "*.cs",
"AddDefaultArguments": "true",
"Formatter": {
"$type": "AOPRoslyn.AOPFormatter, AOPRoslyn",
"FormatArguments": {
"$type": "System.Collections.Generic.Dictionary`2[[System.String, System.Private.CoreLib],[System.String, System.Private.CoreLib]], System.Private.CoreLib"
},
"MethodsToLog":1,
"AddDefaultArguments": true,
"FormatterFirstLine": "
//using(new AOPStatistics.AOPMethod(\"{nameClass}\",\"{nameMethod}\",{lineStartNumber})){{
try
{{
System.Console.WriteLine(\"start method {nameClass}_{nameMethod}_{lineStartNumber}\");System.Console.WriteLine(\"!!!arguments \" + {arguments});
",
"FormatterLastLine": "
}}//try
catch(System.Exception ex)
{{
System.Console.WriteLine(\"error in{nameClass}_{nameMethod}_{lineStartNumber}:\" + ex.Message);throw;}}finally{{System.Console.WriteLine(\"end method {nameClass}_{nameMethod}_{lineStartNumber}\");
}}
//}}//using
"
},
"Options": {
"$type": "AOPRoslyn.RewriteOptions, AOPRoslyn",
"PreserveLinesNumber": true,
"NoArguments": "\"No arguments in method {nameMethod} line {lineStartNumber} class {nameClass}\"",
"ArgumentSeparator": "+"
}
}