Skip to content

Conversation

@MIchaelMainer
Copy link
Collaborator

Kicks off a production build. If all goes well, expect a deployment approval request for 1.18.0 after this PR is merged.

Andrew Omondi and others added 10 commits September 25, 2019 10:10
- Adds tests to validate similar behavior to HttpProvider
- Add modified checks to not authenticate SimpleHttprovider when authprovider is presents
- Fixed Ambiguous call in test.
* Improve Error class information
* Added Target, Details, and ClientRequestId properties and updated the ToString() method.
* Added support for adding the raw response body.

**Addresses**

* Fixes #23
* Fixes microsoftgraph/msgraph-sdk-dotnet#316
…vider

Add SimpleHttpProvider for GraphClientFactory compatibility
/// <param name="baseUrl">The base service URL. For example, "https://graph.microsoft.com/v1.0."</param>
/// <param name="httpClient">The custom <see cref="HttpClient"/> to be used for making requests</param>
public BaseClient(
string baseUrl,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MIchaelMainer @peombwa Should we remove the BaseUrl parameter as HttpClient has a BaseAddress property? Or is it better to keep it there for consistency?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to keep this. We don't use the BaseAddress set on HttpClient in the service library. We build the URL from the BaseClient.baseUrl IIRC.

We would need to change the PR in the generator if we remove the BaseUrl parameter.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@darrelmiller I agree with Michael, let's keep it for now. Everything else LGTM.

/// <param name="baseUrl">The base service URL. For example, "https://graph.microsoft.com/v1.0."</param>
/// <param name="httpClient">The custom <see cref="HttpClient"/> to be used for making requests</param>
public BaseClient(
string baseUrl,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@darrelmiller I agree with Michael, let's keep it for now. Everything else LGTM.

@MIchaelMainer MIchaelMainer merged commit 91bf4b3 into master Oct 10, 2019
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.

6 participants