Skip to content

SillycoryRestClient thread safety #23

Description

@kutluarasli

According to RestSharp (which is underlying dependecy of SillycoreRestClient) discussions, RestSharp.RestClient has thread safety issues.

This also hurt SillycoreRestClient thread safety and creating a new client for each request drives a new access token to be retrieved everytime.

Possible Solutions:

  1. Access token lifecycle and RestSharp.RestClient lifecycle may be decoupled which is handled in OAuth2Decorator. SillycoreRestClient can inject CachingTokenClient and Oath2Decorator is initiated for each call under the hood (or can be initiated for each call).

  2. Giving up RestSharp (which will break the interface). I just said :)

I expect to hear you comments :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions