Skip to content

Comments

Add Options example to README#21

Merged
Dreamescaper merged 2 commits intomainfrom
add-options-example
Mar 21, 2025
Merged

Add Options example to README#21
Dreamescaper merged 2 commits intomainfrom
add-options-example

Conversation

@Dreamescaper
Copy link
Owner

@Dreamescaper Dreamescaper commented Mar 21, 2025

This case is inspired by this request:
patrickklaeren/AutoRegisterInject#13

@Dreamescaper Dreamescaper requested a review from Copilot March 21, 2025 16:28
Copy link
Contributor

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 adds an example to the README demonstrating how to register Options types using a custom OptionAttribute and a corresponding custom service registration handler.

  • Introduces a code sample showing the definition and usage of OptionAttribute.
  • Provides an extension method registration using a custom AddOption handler.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Dreamescaper Dreamescaper merged commit c9ee2c5 into main Mar 21, 2025
1 check passed
@Dreamescaper Dreamescaper deleted the add-options-example branch March 21, 2025 16:29
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.

1 participant