-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add connectionToken property from IConnection #714
Conversation
@@ -314,11 +314,11 @@ protected virtual ValueTask OnSessionClosedAsync(IAppSession session, CloseEvent | |||
if (closedHandler != null) | |||
return closedHandler.Invoke(session, e); | |||
|
|||
#if NETSTANDARD2_1 | |||
#if NETSTANDARD2_1 | |||
return GetCompletedTask(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indent
@@ -471,20 +467,20 @@ public async Task StartAsync(CancellationToken cancellationToken) | |||
|
|||
protected virtual ValueTask OnStartedAsync() | |||
{ | |||
#if NETSTANDARD2_1 | |||
#if NETSTANDARD2_1 | |||
return GetCompletedTask(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indent
} | ||
|
||
protected virtual ValueTask OnStopAsync() | ||
{ | ||
#if NETSTANDARD2_1 | ||
#if NETSTANDARD2_1 | ||
return GetCompletedTask(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indent
Also need think about KestrelPipeConnection. context.ConnectionClosed |
@@ -52,6 +52,7 @@ protected PipeConnectionBase(PipeReader inputReader, PipeWriter outputWriter, Co | |||
Logger = options.Logger; | |||
InputReader = inputReader; | |||
OutputWriter = outputWriter; | |||
ConnectionToken = _cts.Token; | |||
} | |||
|
|||
protected virtual Task StartTask<TPackageInfo>(IObjectPipe<TPackageInfo> packagePipe) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_cts.Token can be replaced with ConnectionToken in this file. And then we will see how to improve _cts and we should let it work together with KestrelPipeConnection.
No description provided.