@@ -44,7 +44,7 @@ public HubConnectionTests(ServerFixture<Startup> serverFixture, ITestOutputHelpe
4444 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
4545 public async Task CheckFixedMessage ( IHubProtocol protocol , TransportType transportType , string path )
4646 {
47- using ( StartLog ( out var loggerFactory ) )
47+ using ( StartLog ( out var loggerFactory , $ " { nameof ( CheckFixedMessage ) } _ { protocol . Name } _ { transportType } _ { path . TrimStart ( '/' ) } " ) )
4848 {
4949 var connection = new HubConnectionBuilder ( )
5050 . WithUrl ( _serverFixture . Url + path )
@@ -77,7 +77,7 @@ public async Task CheckFixedMessage(IHubProtocol protocol, TransportType transpo
7777 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
7878 public async Task CanSendAndReceiveMessage ( IHubProtocol protocol , TransportType transportType , string path )
7979 {
80- using ( StartLog ( out var loggerFactory ) )
80+ using ( StartLog ( out var loggerFactory , $ " { nameof ( CanSendAndReceiveMessage ) } _ { protocol . Name } _ { transportType } _ { path . TrimStart ( '/' ) } " ) )
8181 {
8282 const string originalMessage = "SignalR" ;
8383 var httpConnection = new HttpConnection ( new Uri ( _serverFixture . Url + path ) , transportType , loggerFactory ) ;
@@ -106,7 +106,7 @@ public async Task CanSendAndReceiveMessage(IHubProtocol protocol, TransportType
106106 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
107107 public async Task MethodsAreCaseInsensitive ( IHubProtocol protocol , TransportType transportType , string path )
108108 {
109- using ( StartLog ( out var loggerFactory ) )
109+ using ( StartLog ( out var loggerFactory , $ " { nameof ( MethodsAreCaseInsensitive ) } _ { protocol . Name } _ { transportType } _ { path . TrimStart ( '/' ) } " ) )
110110 {
111111 const string originalMessage = "SignalR" ;
112112 var uriString = "http://test/" + path ;
@@ -136,7 +136,7 @@ public async Task MethodsAreCaseInsensitive(IHubProtocol protocol, TransportType
136136 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
137137 public async Task CanInvokeClientMethodFromServer ( IHubProtocol protocol , TransportType transportType , string path )
138138 {
139- using ( StartLog ( out var loggerFactory ) )
139+ using ( StartLog ( out var loggerFactory , $ " { nameof ( CanInvokeClientMethodFromServer ) } _ { protocol . Name } _ { transportType } _ { path . TrimStart ( '/' ) } " ) )
140140 {
141141 const string originalMessage = "SignalR" ;
142142
@@ -169,7 +169,7 @@ public async Task CanInvokeClientMethodFromServer(IHubProtocol protocol, Transpo
169169 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
170170 public async Task InvokeNonExistantClientMethodFromServer ( IHubProtocol protocol , TransportType transportType , string path )
171171 {
172- using ( StartLog ( out var loggerFactory ) )
172+ using ( StartLog ( out var loggerFactory , $ " { nameof ( InvokeNonExistantClientMethodFromServer ) } _ { protocol . Name } _ { transportType } _ { path . TrimStart ( '/' ) } " ) )
173173 {
174174 var httpConnection = new HttpConnection ( new Uri ( _serverFixture . Url + path ) , transportType , loggerFactory ) ;
175175 var connection = new HubConnection ( httpConnection , protocol , loggerFactory ) ;
@@ -191,7 +191,7 @@ public async Task InvokeNonExistantClientMethodFromServer(IHubProtocol protocol,
191191 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
192192 public async Task CanStreamClientMethodFromServer ( IHubProtocol protocol , TransportType transportType , string path )
193193 {
194- using ( StartLog ( out var loggerFactory ) )
194+ using ( StartLog ( out var loggerFactory , $ " { nameof ( CanStreamClientMethodFromServer ) } _ { protocol . Name } _ { transportType } _ { path . TrimStart ( '/' ) } " ) )
195195 {
196196 var httpConnection = new HttpConnection ( new Uri ( _serverFixture . Url + path ) , transportType , loggerFactory ) ;
197197 var connection = new HubConnection ( httpConnection , protocol , loggerFactory ) ;
@@ -220,7 +220,7 @@ public async Task CanStreamClientMethodFromServer(IHubProtocol protocol, Transpo
220220 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
221221 public async Task CanCloseStreamMethodEarly ( IHubProtocol protocol , TransportType transportType , string path )
222222 {
223- using ( StartLog ( out var loggerFactory ) )
223+ using ( StartLog ( out var loggerFactory , $ " { nameof ( CanCloseStreamMethodEarly ) } _ { protocol . Name } _ { transportType } _ { path . TrimStart ( '/' ) } " ) )
224224 {
225225 var httpConnection = new HttpConnection ( new Uri ( _serverFixture . Url + path ) , transportType , loggerFactory ) ;
226226 var connection = new HubConnection ( httpConnection , protocol , loggerFactory ) ;
@@ -255,7 +255,7 @@ public async Task CanCloseStreamMethodEarly(IHubProtocol protocol, TransportType
255255 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
256256 public async Task StreamDoesNotStartIfTokenAlreadyCanceled ( IHubProtocol protocol , TransportType transportType , string path )
257257 {
258- using ( StartLog ( out var loggerFactory ) )
258+ using ( StartLog ( out var loggerFactory , $ " { nameof ( StreamDoesNotStartIfTokenAlreadyCanceled ) } _ { protocol . Name } _ { transportType } _ { path . TrimStart ( '/' ) } " ) )
259259 {
260260 var httpConnection = new HttpConnection ( new Uri ( _serverFixture . Url + path ) , transportType , loggerFactory ) ;
261261 var connection = new HubConnection ( httpConnection , protocol , loggerFactory ) ;
@@ -286,7 +286,7 @@ public async Task StreamDoesNotStartIfTokenAlreadyCanceled(IHubProtocol protocol
286286 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
287287 public async Task ExceptionFromStreamingSentToClient ( IHubProtocol protocol , TransportType transportType , string path )
288288 {
289- using ( StartLog ( out var loggerFactory ) )
289+ using ( StartLog ( out var loggerFactory , $ " { nameof ( ExceptionFromStreamingSentToClient ) } _ { protocol . Name } _ { transportType } _ { path . TrimStart ( '/' ) } " ) )
290290 {
291291 var httpConnection = new HttpConnection ( new Uri ( _serverFixture . Url + path ) , transportType , loggerFactory ) ;
292292 var connection = new HubConnection ( httpConnection , protocol , loggerFactory ) ;
@@ -314,7 +314,7 @@ public async Task ExceptionFromStreamingSentToClient(IHubProtocol protocol, Tran
314314 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
315315 public async Task ServerThrowsHubExceptionIfHubMethodCannotBeResolved ( IHubProtocol hubProtocol , TransportType transportType , string hubPath )
316316 {
317- using ( StartLog ( out var loggerFactory ) )
317+ using ( StartLog ( out var loggerFactory , $ " { nameof ( ServerThrowsHubExceptionIfHubMethodCannotBeResolved ) } _ { hubProtocol . Name } _ { transportType } _ { hubPath . TrimStart ( '/' ) } " ) )
318318 {
319319 var httpConnection = new HttpConnection ( new Uri ( _serverFixture . Url + hubPath ) , transportType , loggerFactory ) ;
320320 var connection = new HubConnection ( httpConnection , hubProtocol , loggerFactory ) ;
@@ -341,7 +341,7 @@ public async Task ServerThrowsHubExceptionIfHubMethodCannotBeResolved(IHubProtoc
341341 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
342342 public async Task ServerThrowsHubExceptionOnHubMethodArgumentCountMismatch ( IHubProtocol hubProtocol , TransportType transportType , string hubPath )
343343 {
344- using ( StartLog ( out var loggerFactory ) )
344+ using ( StartLog ( out var loggerFactory , $ " { nameof ( ServerThrowsHubExceptionOnHubMethodArgumentCountMismatch ) } _ { hubProtocol . Name } _ { transportType } _ { hubPath . TrimStart ( '/' ) } " ) )
345345 {
346346 var httpConnection = new HttpConnection ( new Uri ( _serverFixture . Url + hubPath ) , transportType , loggerFactory ) ;
347347 var connection = new HubConnection ( httpConnection , hubProtocol , loggerFactory ) ;
@@ -368,7 +368,7 @@ public async Task ServerThrowsHubExceptionOnHubMethodArgumentCountMismatch(IHubP
368368 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
369369 public async Task ServerThrowsHubExceptionOnHubMethodArgumentTypeMismatch ( IHubProtocol hubProtocol , TransportType transportType , string hubPath )
370370 {
371- using ( StartLog ( out var loggerFactory ) )
371+ using ( StartLog ( out var loggerFactory , $ " { nameof ( ServerThrowsHubExceptionOnHubMethodArgumentTypeMismatch ) } _ { hubProtocol . Name } _ { transportType } _ { hubPath . TrimStart ( '/' ) } " ) )
372372 {
373373 var httpConnection = new HttpConnection ( new Uri ( _serverFixture . Url + hubPath ) , transportType , loggerFactory ) ;
374374 var connection = new HubConnection ( httpConnection , hubProtocol , loggerFactory ) ;
@@ -395,7 +395,7 @@ public async Task ServerThrowsHubExceptionOnHubMethodArgumentTypeMismatch(IHubPr
395395 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
396396 public async Task ServerThrowsHubExceptionIfStreamingHubMethodCannotBeResolved ( IHubProtocol hubProtocol , TransportType transportType , string hubPath )
397397 {
398- using ( StartLog ( out var loggerFactory ) )
398+ using ( StartLog ( out var loggerFactory , $ " { nameof ( ServerThrowsHubExceptionIfStreamingHubMethodCannotBeResolved ) } _ { hubProtocol . Name } _ { transportType } _ { hubPath . TrimStart ( '/' ) } " ) )
399399 {
400400 var httpConnection = new HttpConnection ( new Uri ( _serverFixture . Url + hubPath ) , transportType , loggerFactory ) ;
401401 var connection = new HubConnection ( httpConnection , hubProtocol , loggerFactory ) ;
@@ -423,7 +423,7 @@ public async Task ServerThrowsHubExceptionIfStreamingHubMethodCannotBeResolved(I
423423 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
424424 public async Task ServerThrowsHubExceptionOnStreamingHubMethodArgumentCountMismatch ( IHubProtocol hubProtocol , TransportType transportType , string hubPath )
425425 {
426- using ( StartLog ( out var loggerFactory ) )
426+ using ( StartLog ( out var loggerFactory , $ " { nameof ( ServerThrowsHubExceptionOnStreamingHubMethodArgumentCountMismatch ) } _ { hubProtocol . Name } _ { transportType } _ { hubPath . TrimStart ( '/' ) } " ) )
427427 {
428428 loggerFactory . AddConsole ( LogLevel . Trace ) ;
429429 var httpConnection = new HttpConnection ( new Uri ( _serverFixture . Url + hubPath ) , transportType , loggerFactory ) ;
@@ -452,7 +452,7 @@ public async Task ServerThrowsHubExceptionOnStreamingHubMethodArgumentCountMisma
452452 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
453453 public async Task ServerThrowsHubExceptionOnStreamingHubMethodArgumentTypeMismatch ( IHubProtocol hubProtocol , TransportType transportType , string hubPath )
454454 {
455- using ( StartLog ( out var loggerFactory ) )
455+ using ( StartLog ( out var loggerFactory , $ " { nameof ( ServerThrowsHubExceptionOnStreamingHubMethodArgumentTypeMismatch ) } _ { hubProtocol . Name } _ { transportType } _ { hubPath . TrimStart ( '/' ) } " ) )
456456 {
457457 var httpConnection = new HttpConnection ( new Uri ( _serverFixture . Url + hubPath ) , transportType , loggerFactory ) ;
458458 var connection = new HubConnection ( httpConnection , hubProtocol , loggerFactory ) ;
@@ -480,7 +480,7 @@ public async Task ServerThrowsHubExceptionOnStreamingHubMethodArgumentTypeMismat
480480 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
481481 public async Task ServerThrowsHubExceptionIfNonStreamMethodInvokedWithStreamAsync ( IHubProtocol hubProtocol , TransportType transportType , string hubPath )
482482 {
483- using ( StartLog ( out var loggerFactory ) )
483+ using ( StartLog ( out var loggerFactory , $ " { nameof ( ServerThrowsHubExceptionIfNonStreamMethodInvokedWithStreamAsync ) } _ { hubProtocol . Name } _ { transportType } _ { hubPath . TrimStart ( '/' ) } " ) )
484484 {
485485 var httpConnection = new HttpConnection ( new Uri ( _serverFixture . Url + hubPath ) , transportType , loggerFactory ) ;
486486 var connection = new HubConnection ( httpConnection , hubProtocol , loggerFactory ) ;
@@ -507,7 +507,7 @@ public async Task ServerThrowsHubExceptionIfNonStreamMethodInvokedWithStreamAsyn
507507 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
508508 public async Task ServerThrowsHubExceptionIfStreamMethodInvokedWithInvoke ( IHubProtocol hubProtocol , TransportType transportType , string hubPath )
509509 {
510- using ( StartLog ( out var loggerFactory ) )
510+ using ( StartLog ( out var loggerFactory , $ " { nameof ( ServerThrowsHubExceptionIfStreamMethodInvokedWithInvoke ) } _ { hubProtocol . Name } _ { transportType } _ { hubPath . TrimStart ( '/' ) } " ) )
511511 {
512512 var httpConnection = new HttpConnection ( new Uri ( _serverFixture . Url + hubPath ) , transportType , loggerFactory ) ;
513513 var connection = new HubConnection ( httpConnection , hubProtocol , loggerFactory ) ;
@@ -534,7 +534,7 @@ public async Task ServerThrowsHubExceptionIfStreamMethodInvokedWithInvoke(IHubPr
534534 [ MemberData ( nameof ( HubProtocolsAndTransportsAndHubPaths ) ) ]
535535 public async Task ServerThrowsHubExceptionIfBuildingAsyncEnumeratorIsNotPossible ( IHubProtocol hubProtocol , TransportType transportType , string hubPath )
536536 {
537- using ( StartLog ( out var loggerFactory ) )
537+ using ( StartLog ( out var loggerFactory , $ " { nameof ( ServerThrowsHubExceptionIfBuildingAsyncEnumeratorIsNotPossible ) } _ { hubProtocol . Name } _ { transportType } _ { hubPath . TrimStart ( '/' ) } " ) )
538538 {
539539 var httpConnection = new HttpConnection ( new Uri ( _serverFixture . Url + hubPath ) , transportType , loggerFactory ) ;
540540 var connection = new HubConnection ( httpConnection , hubProtocol , loggerFactory ) ;
@@ -561,7 +561,7 @@ public async Task ServerThrowsHubExceptionIfBuildingAsyncEnumeratorIsNotPossible
561561 [ MemberData ( nameof ( TransportTypes ) ) ]
562562 public async Task ClientCanUseJwtBearerTokenForAuthentication ( TransportType transportType )
563563 {
564- using ( StartLog ( out var loggerFactory ) )
564+ using ( StartLog ( out var loggerFactory , $ " { nameof ( ClientCanUseJwtBearerTokenForAuthentication ) } _ { transportType } " ) )
565565 {
566566 var httpResponse = await new HttpClient ( ) . GetAsync ( _serverFixture . Url + "/generateJwtToken" ) ;
567567 httpResponse . EnsureSuccessStatusCode ( ) ;
@@ -595,7 +595,7 @@ public async Task ClientCanUseJwtBearerTokenForAuthentication(TransportType tran
595595 [ MemberData ( nameof ( TransportTypes ) ) ]
596596 public async Task ClientCanSendHeaders ( TransportType transportType )
597597 {
598- using ( StartLog ( out var loggerFactory ) )
598+ using ( StartLog ( out var loggerFactory , $ " { nameof ( ClientCanSendHeaders ) } _ { transportType } " ) )
599599 {
600600 var hubConnection = new HubConnectionBuilder ( )
601601 . WithUrl ( _serverFixture . Url + "/default" )
@@ -625,7 +625,7 @@ public async Task ClientCanSendHeaders(TransportType transportType)
625625 [ Fact ]
626626 public async Task WebSocketOptionsAreApplied ( )
627627 {
628- using ( StartLog ( out var loggerFactory ) )
628+ using ( StartLog ( out var loggerFactory , $ " { nameof ( WebSocketOptionsAreApplied ) } " ) )
629629 {
630630 // System.Net has a TransportType type which means we need to fully-qualify this rather than 'use' the namespace
631631 var cookieJar = new System . Net . CookieContainer ( ) ;
0 commit comments