orleans
orleans copied to clipboard
Why not use Response.Dispose?
Response<TResult> is created by ResponsePool, and returns to the pool with the Dispose() method.
Why wasn't Dispose() called in SafeSendResponse?
private void SafeSendResponse(Message message, Response response)
{
try
{
SendResponse(message, (Response)this._deepCopier.Copy(response));
}
catch (Exception exc)
{
LogWarningResponseFailed(this.logger, exc);
SendResponse(message, Response.FromException(exc));
}
//perhaps finally
final{
response.Dispose();
}
}
```Dispose
SafeSendResponse is not the owner of the response, it's not their responsibility to dispose it.
SafeSendResponseis not the owner of the response, it's not their responsibility to dispose it.
Okay, but there's nowhere to call Response<TResult>.Dispose().