Wrap each request in a service scope (#276)
* Wrap each request in a service scope * Change request/notification delegates to return ValueTask * Address feedback
This commit is contained in:
parent
f1cc2d81de
commit
f4c87f5e2f
1 changed files with 477 additions and 306 deletions
|
|
@ -25,7 +25,7 @@ public class NotificationHandlerTests : ClientServerTestBase
|
|||
{
|
||||
Interlocked.Increment(ref counter);
|
||||
tcs.SetResult(true);
|
||||
return Task.CompletedTask;
|
||||
return default;
|
||||
}))
|
||||
{
|
||||
await Server.SendNotificationAsync(NotificationName, TestContext.Current.CancellationToken);
|
||||
|
|
@ -58,7 +58,7 @@ public class NotificationHandlerTests : ClientServerTestBase
|
|||
tcs.TrySetResult(true);
|
||||
}
|
||||
|
||||
return Task.CompletedTask;
|
||||
return default;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue