You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My understanding is that we create the DataPortelErrorInfo and assign it to the ErrorData property. But the result object is never actually returned. The only "value" is the ConverResponse picks up the error but can't do a thing to influence the program flow.
Should we remove the unnecessary object creation?
It affects the following portals:
HttpPortal
GrpcPortal
RabbitMqPortal
The text was updated successfully, but these errors were encountered:
Or the throw has to be removed. I'm not sure if the finally block is in a case of an exception obsolete, too?
A user can "ConvertResponse" to something that's entirely ignored.
When this is addressed, whoever does the work needs to look at the higher level and see how (and if) the error info is created, and ensure that the ConvertResponse is invoked in some manner. That's the hook for compression or encryption or whatever someone would want to do to the byte stream.
During my NRT work I've found the referenced code.
csla/Source/Csla.Web.Mvc.Shared/Server/Hosts/HttpPortal.cs
Lines 70 to 78 in c005a93
My understanding is that we create the
DataPortelErrorInfo
and assign it to theErrorData
property. But theresult
object is never actually returned. The only "value" is theConverResponse
picks up the error but can't do a thing to influence the program flow.Should we remove the unnecessary object creation?
It affects the following portals:
The text was updated successfully, but these errors were encountered: