[%siteTitle%]
Search Results for

    [%custom-skipDocumentationFor%]
    Show / Hide Table of Contents Show / Hide Table of Contents
    NamespaceSystemLibrary.Common.Framework.App SystemLibrary.Common.Framework.Client.dll

    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

    Inheritance
    object
    ClientResponse
    ClientResponse<T>
    Examples
    Arguments
    X

    Properties

    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)

    Remarks
    X

    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.

    public object Data { get; }

    X
    Property Value
    Type Description
    object

    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)

    public bool IsSuccess { get; }

    X
    Property Value
    Type Description
    bool

    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)

    [JsonIgnore] public HttpResponseMessage Response { get; }

    X
    Property Value
    Type Description
    HttpResponseMessage

    Extension Methods

    ObjectExtensions.Json(object, bool)
    ObjectExtensions.Json(object, JsonSerializerOptions, bool, params JsonConverter[])
    ObjectExtensions.Json(object, params JsonConverter[])
    ObjectExtensions.Xml(object)

    }

    In This Article
    Package: nuget
    Source: github
    Website: [%footerSiteTitle%]