Skip to content

Conversation

mavaddat
Copy link
Contributor

Remove Authenticator from RestClient init to RestClientOptions in Usage docs.

Description

Update the Usage documentation so that it conforms to the latest RestSharp API regarding where to set the IAuthenticator? Authenticator.

New deprecation in RestSharp/RestClient.cs:

    [Obsolete("Use RestClientOptions.Authenticator instead")]
    public IAuthenticator? Authenticator => Options.Authenticator;

Deprecation warning CS0618: 'RestClient.Authenticator' is obsolete: 'Use RestClientOptions.Authenticator instead' in live:

CS0618: 'RestClient.Authenticator' is obsolete: 'Use RestClientOptions.Authenticator instead'

Purpose

This pull request is a:

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Conform to updated API
Conform the latest API
@mavaddat
Copy link
Contributor Author

@dotnet-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants