@@ -144,54 +144,12 @@ public void ConnectionRejected(string connectionId)
144
144
public void ConnectionQueuedStart ( BaseConnectionContext connection )
145
145
{
146
146
Interlocked . Increment ( ref _connectionQueueLength ) ;
147
- if ( IsEnabled ( ) )
148
- {
149
- ConnectionQueuedStart (
150
- connection . ConnectionId ,
151
- connection . LocalEndPoint ? . ToString ( ) ,
152
- connection . RemoteEndPoint ? . ToString ( ) ) ;
153
- }
154
- }
155
-
156
- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
157
- [ Event ( 6 , Level = EventLevel . Informational ) ]
158
- private void ConnectionQueuedStart ( string connectionId ,
159
- string localEndPoint ,
160
- string remoteEndPoint )
161
- {
162
- WriteEvent (
163
- 6 ,
164
- connectionId ,
165
- localEndPoint ,
166
- remoteEndPoint
167
- ) ;
168
147
}
169
148
170
149
[ NonEvent ]
171
150
public void ConnectionQueuedStop ( BaseConnectionContext connection )
172
151
{
173
152
Interlocked . Decrement ( ref _connectionQueueLength ) ;
174
- if ( IsEnabled ( ) )
175
- {
176
- ConnectionQueuedStop (
177
- connection . ConnectionId ,
178
- connection . LocalEndPoint ? . ToString ( ) ,
179
- connection . RemoteEndPoint ? . ToString ( ) ) ;
180
- }
181
- }
182
-
183
- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
184
- [ Event ( 7 , Level = EventLevel . Informational ) ]
185
- private void ConnectionQueuedStop ( string connectionId ,
186
- string localEndPoint ,
187
- string remoteEndPoint )
188
- {
189
- WriteEvent (
190
- 7 ,
191
- connectionId ,
192
- localEndPoint ,
193
- remoteEndPoint
194
- ) ;
195
153
}
196
154
197
155
[ NonEvent ]
@@ -245,70 +203,24 @@ public void TlsHandshakeFailed(string connectionId)
245
203
public void RequestQueuedStart ( HttpProtocol httpProtocol , string httpVersion )
246
204
{
247
205
Interlocked . Increment ( ref _httpRequestQueueLength ) ;
248
- // avoid allocating the trace identifier unless logging is enabled
249
- if ( IsEnabled ( ) )
250
- {
251
- RequestQueuedStart ( httpProtocol . ConnectionIdFeature , httpProtocol . TraceIdentifier , httpVersion ) ;
252
- }
253
- }
254
-
255
- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
256
- [ Event ( 11 , Level = EventLevel . Informational ) ]
257
- private void RequestQueuedStart ( string connectionId , string requestId , string httpVersion )
258
- {
259
- WriteEvent ( 11 , connectionId , requestId , httpVersion ) ;
260
206
}
261
207
262
208
[ NonEvent ]
263
209
public void RequestQueuedStop ( HttpProtocol httpProtocol , string httpVersion )
264
210
{
265
211
Interlocked . Decrement ( ref _httpRequestQueueLength ) ;
266
- // avoid allocating the trace identifier unless logging is enabled
267
- if ( IsEnabled ( ) )
268
- {
269
- RequestQueuedStop ( httpProtocol . ConnectionIdFeature , httpProtocol . TraceIdentifier , httpVersion ) ;
270
- }
271
- }
272
-
273
- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
274
- [ Event ( 12 , Level = EventLevel . Informational ) ]
275
- private void RequestQueuedStop ( string connectionId , string requestId , string httpVersion )
276
- {
277
- WriteEvent ( 12 , connectionId , requestId , httpVersion ) ;
278
212
}
279
213
280
214
[ NonEvent ]
281
215
public void RequestUpgradedStart ( HttpProtocol httpProtocol )
282
216
{
283
217
Interlocked . Increment ( ref _currentUpgradedHttpRequests ) ;
284
- if ( IsEnabled ( ) )
285
- {
286
- RequestUpgradedStart ( httpProtocol . ConnectionIdFeature , httpProtocol . TraceIdentifier , httpProtocol . HttpVersion , httpProtocol . Path , httpProtocol . MethodText ) ;
287
- }
288
- }
289
-
290
- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
291
- [ Event ( 13 , Level = EventLevel . Informational ) ]
292
- private void RequestUpgradedStart ( string connectionId , string requestId , string httpVersion , string path , string method )
293
- {
294
- WriteEvent ( 13 , connectionId , requestId , httpVersion , path , method ) ;
295
218
}
296
219
297
220
[ NonEvent ]
298
221
public void RequestUpgradedStop ( HttpProtocol httpProtocol )
299
222
{
300
223
Interlocked . Decrement ( ref _currentUpgradedHttpRequests ) ;
301
- if ( IsEnabled ( ) )
302
- {
303
- RequestUpgradedStop ( httpProtocol . ConnectionIdFeature , httpProtocol . TraceIdentifier , httpProtocol . HttpVersion , httpProtocol . Path , httpProtocol . MethodText ) ;
304
- }
305
- }
306
-
307
- [ MethodImpl ( MethodImplOptions . NoInlining ) ]
308
- [ Event ( 14 , Level = EventLevel . Informational ) ]
309
- private void RequestUpgradedStop ( string connectionId , string requestId , string httpVersion , string path , string method )
310
- {
311
- WriteEvent ( 14 , connectionId , requestId , httpVersion , path , method ) ;
312
224
}
313
225
314
226
protected override void OnEventCommand ( EventCommandEventArgs command )
0 commit comments