NamespaceSystemLibrary.Common.Framework.App
Base class of a ClientResponse
- Contains the HttpResponseMessage itself
Used when you do not want to return 'object' nor generic type, but you want to be clear in what object is returned in your C# functions- Contains 'data' variable for serializing purposes, so 'data' variable is never undefined in JS world (depends on the JSON serialization options youve set, but out of the box its null if not set)
ClientResponse
public class ClientResponse
Properties
Remarks
Note: This variable is null or the 'data' variable from the generic ClientResponse
This variable is defined here too, to avoid undefined scenarios in JS world
And this class is then used as base class for all responses so you can always cast anything to this class and then do a serialize that just gives the data without all other statuscode, httpmessage etc.
Property Value
Type | Description |
---|---|
object |
Property Value
Type | Description |
---|---|
bool |
Property Value
Type | Description |
---|---|
HttpResponseMessage |
Extension Methods
}