Skip to content

Use TaskConverter from Activout.RestClient - #58

Merged
twogood merged 2 commits into
mainfrom
task-converter
Oct 7, 2026
Merged

twogood merged 2 commits into
mainfrom
task-converter

Conversation

@twogood

@twogood twogood commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Replaces ITaskConverter and TaskConverter3<T> with TaskConverter from Activout.RestClient (Activout.RestClient/Implementation/TaskConverter.cs on main), copied with only the namespace changed.

TaskConverter.Create(resultType) returns a Func<Task<object?>, object> bound to a generic Convert<T> through delegate return type covariance. That removes the interface, the generic class, and the Activator.CreateInstance call in MethodHandler.

Tested: dotnet test (19 passed).

🤖 Generated with Claude Code

Replaces ITaskConverter and TaskConverter3<T> with the delegate-based
TaskConverter from Activout.RestClient.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bd479bb6-69b8-489a-8805-64023ad566cf
📥 Commits

Reviewing files that changed from the base of the PR and between 64d6db6 and c2c4c4c.

📒 Files selected for processing (4)
  • Activout.DatabaseClient/ITaskConverter.cs
  • Activout.DatabaseClient/Implementation/MethodHandler.cs
  • Activout.DatabaseClient/Implementation/TaskConverter.cs
  • Activout.DatabaseClient/Implementation/TaskConverter3.cs
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

# Conflicts:
#	Activout.DatabaseClient/Implementation/MethodHandler.cs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The refactoring preserves covered asynchronous behavior while simplifying converter construction.

0 open findings

What changed in this PR

Replaces reflection-instantiated task converter classes with a delegate-based converter copied from Activout.RestClient.

Changes:

  • Adds TaskConverter.Create using a bound generic delegate.
  • Updates MethodHandler to invoke the converter delegate.
  • Removes the obsolete converter interface and implementation.
File Description
Activout.DatabaseClient/​ITaskConverter.cs Removes the obsolete interface.
Activout.DatabaseClient/​Implementation/​TaskConverter3.cs Removes the generic converter class.
Activout.DatabaseClient/​Implementation/​TaskConverter.cs Adds delegate-based task conversion.
Activout.DatabaseClient/​Implementation/​MethodHandler.cs Uses the new converter delegate.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@twogood
twogood merged commit 498daa5 into main Oct 7, 2026
7 checks passed
@twogood
twogood deleted the task-converter branch October 7, 2026 18:58
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