Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed DI issue and Cleaned up code #77

Closed
wants to merge 1 commit into from

Conversation

rafsanulhasan
Copy link

@rafsanulhasan rafsanulhasan commented Mar 19, 2023

Closes #20

Registered httpclient and RESFulSense in .NET fashion.

  • used Microsoft.Extensions.Http to register HttpClient
  • setup base url for the http client in the DI
  • Used a DelegatingHangler to set Bearer tokens and Organization id headers in the request
  • Registered IRESTFulSenseHttpFactoryClient
  • Cleaned up initialization code from broker.

Used constant strings instead of magic strings for better readability.

  • Removed magic strings ("Bearer", "application/json")
  • Removed some warnings (, usages)

Used constant strings instead of magic strings for better readability.

Removed some warnings
@hassanhabib
Copy link
Owner

Please review Contribution Rules

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.

MINOR FIX: PENDING New Version of RESTFulSense with HttpFactory
2 participants