|
4 | 4 | using System;
|
5 | 5 | using System.Diagnostics.CodeAnalysis;
|
6 | 6 | using System.Diagnostics.Tracing;
|
7 |
| -using System.Reflection; |
8 | 7 |
|
9 | 8 | namespace Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics
|
10 | 9 | {
|
@@ -113,7 +112,7 @@ protected void WriteEvent(int eventNum, string a, string b, int c, string d, str
|
113 | 112 | [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")]
|
114 | 113 | protected void WriteEvent(int eventNum, string a, string b, string c, string d, string e, string f, string g, string h, string i, string j, string k)
|
115 | 114 | {
|
116 |
| - int count = MethodBase.GetCurrentMethod().GetParameters().Length; |
| 115 | + int count = 11; |
117 | 116 | fixed (char* aPtr = a,
|
118 | 117 | bPtr = b,
|
119 | 118 | cPtr = c,
|
@@ -158,7 +157,7 @@ protected void WriteEvent(int eventNum, string a, string b, string c, string d,
|
158 | 157 | [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")]
|
159 | 158 | protected void WriteEvent(int eventNum, string a, string b, string c, string d, string e, string f, string g, string h, string i, string j, string k, string l, string m)
|
160 | 159 | {
|
161 |
| - int count = MethodBase.GetCurrentMethod().GetParameters().Length; |
| 160 | + int count = 13; |
162 | 161 | fixed (char* aPtr = a,
|
163 | 162 | bPtr = b,
|
164 | 163 | cPtr = c,
|
@@ -209,7 +208,7 @@ protected void WriteEvent(int eventNum, string a, string b, string c, string d,
|
209 | 208 | [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")]
|
210 | 209 | protected void WriteEvent(int eventNum, string a, string b, string c, string d, long e, long f, long g, long h, string i, string j)
|
211 | 210 | {
|
212 |
| - int count = MethodBase.GetCurrentMethod().GetParameters().Length; |
| 211 | + int count = 10; |
213 | 212 | fixed (char* aPtr = a,
|
214 | 213 | bPtr = b,
|
215 | 214 | cPtr = c,
|
@@ -248,7 +247,7 @@ protected void WriteEvent(int eventNum, string a, string b, string c, string d,
|
248 | 247 | [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")]
|
249 | 248 | protected void WriteEvent(int eventNum, string a, string b, string c, string d, string e, string f)
|
250 | 249 | {
|
251 |
| - int count = MethodBase.GetCurrentMethod().GetParameters().Length; |
| 250 | + int count = 6; |
252 | 251 | fixed (char* aPtr = a,
|
253 | 252 | bPtr = b,
|
254 | 253 | cPtr = c,
|
|
0 commit comments