Skip to content

Refactor ensure successful status code#152

Closed
ATimmeh33 wants to merge 7 commits intomasterfrom
fix/add-ensure-signhost-status-code
Closed

Refactor ensure successful status code#152
ATimmeh33 wants to merge 7 commits intomasterfrom
fix/add-ensure-signhost-status-code

Conversation

@ATimmeh33
Copy link
Copy Markdown
Collaborator

@ATimmeh33 ATimmeh33 commented Sep 26, 2025

Based on #153 - only last commit

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors two methods to use explicit status code validation instead of relying on HttpClient's built-in error handling for stream operations.

  • Replaces GetStreamAsync() calls with GetAsync() followed by explicit status code validation
  • Adds EnsureSignhostSuccessStatusCodeAsync() calls for consistent error handling
  • Manually extracts stream content from the response after validation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Modernizes the codebase by upgrading to .NET 10, enabling use of newer language features and APIs.
Removes legacy netstandard1.4 support and related conditional logic to simplify maintenance.
Improves compatibility with future .NET releases.
- Replaced Newtonsoft.Json with System.Text.Json for JSON serialization and deserialization across the API client.
- Updated interfaces and classes to reflect consistent naming conventions (e.g., ISignHostApiClient to ISignhostApiClient).
- Removed obsolete JsonConverter classes that were specific to Newtonsoft.Json.
- Introduced centralized JSON serializer options in SignhostJsonSerializerOptions for consistent serialization behavior.
- Added new JSON test resources for various transaction scenarios to ensure compatibility with the updated serialization logic.
@ATimmeh33 ATimmeh33 force-pushed the fix/add-ensure-signhost-status-code branch from 690d2bf to 1c8c7b3 Compare November 21, 2025 18:15
@ATimmeh33
Copy link
Copy Markdown
Collaborator Author

Rebased on #153

@ATimmeh33
Copy link
Copy Markdown
Collaborator Author

@ATimmeh33 ATimmeh33 closed this Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants