@@ -352,12 +352,12 @@ private static TestServer CreateServer(Action<IServiceCollection> configureServi
352
352
}
353
353
else if ( req . Path == new PathString ( "/me" ) )
354
354
{
355
- Describe ( res , AuthenticateResult . Success ( new AuthenticationTicket ( context . User , null , "Application" ) ) ) ;
355
+ await DescribeAsync ( res , AuthenticateResult . Success ( new AuthenticationTicket ( context . User , null , "Application" ) ) ) ;
356
356
}
357
357
else if ( req . Path . StartsWithSegments ( new PathString ( "/me" ) , out remainder ) )
358
358
{
359
359
var auth = await context . AuthenticateAsync ( remainder . Value . Substring ( 1 ) ) ;
360
- Describe ( res , auth ) ;
360
+ await DescribeAsync ( res , auth ) ;
361
361
}
362
362
else if ( req . Path == new PathString ( "/testpath" ) && testpath != null )
363
363
{
@@ -393,7 +393,7 @@ private static TestServer CreateServer(Action<IServiceCollection> configureServi
393
393
return server ;
394
394
}
395
395
396
- private static void Describe ( HttpResponse res , AuthenticateResult result )
396
+ private static async Task DescribeAsync ( HttpResponse res , AuthenticateResult result )
397
397
{
398
398
res . StatusCode = 200 ;
399
399
res . ContentType = "text/xml" ;
@@ -412,7 +412,7 @@ private static void Describe(HttpResponse res, AuthenticateResult result)
412
412
{
413
413
xml . WriteTo ( writer ) ;
414
414
}
415
- res . Body . Write ( memory . ToArray ( ) , 0 , memory . ToArray ( ) . Length ) ;
415
+ await res . Body . WriteAsync ( memory . ToArray ( ) , 0 , memory . ToArray ( ) . Length ) ;
416
416
}
417
417
}
418
418
0 commit comments