Skip to content

ApiClient using obsolete (currently deprecated) RestClientOptions property #133

@JTU10

Description

@JTU10

In a constructor for ApiClient, a RestClient is newed up as follows:

RestClient = new RestClient(options: new RestClientOptions() { BaseUrl = new Uri("https://play.orkes.io/api"), MaxTimeout = timeOut });

The option property "MaxTimeout" was marked obsolete with backwards compatibility up through RestSharp v112.
https://restsharp.dev/docs/v111/changelog/#v1110 RestSharp v113 and beyond no longer support this backwards compatibility.
The newer versions use public TimeSpan? Timeout { get; set; }

I'm requesting this be updated to something functionally along the lines of:

RestClient = new RestClient(options: new RestClientOptions
{
    BaseUrl = new Uri("https://play.orkes.io/api"),
    Timeout = TimeSpan.FromMilliseconds(timeOut)
});

in order to be compatible with the latest versions of RestSharp.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions