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

37 IMessageFormatter and other fixes #38

Merged
merged 7 commits into from
Nov 27, 2024
Merged

Conversation

a-gubskiy
Copy link
Member

No description provided.

@a-gubskiy a-gubskiy added the bug Something isn't working label Oct 27, 2024
@a-gubskiy a-gubskiy linked an issue Oct 27, 2024 that may be closed by this pull request
@a-gubskiy a-gubskiy self-assigned this Oct 27, 2024
ConfigAsMinimal(ExampleAppSettings.Token, ExampleAppSettings.ChatId);
// ConfigAsMinimal(ExampleAppSettings.Token, ExampleAppSettings.ChatId);

ConfigAsExtended(ExampleAppSettings.Token, ExampleAppSettings.ChatId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe just an overload of Configure(...)?

IMO, no sense to produce additional cognitive complexity for users

Comment on lines +18 to +20
</ItemGroup>

<ItemGroup>
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can simply use a single ItemGroup

@@ -14,7 +14,7 @@ public static class LoggerConfigurationTelegramExtensions
public static LoggerConfiguration Telegram(
this LoggerSinkConfiguration loggerConfiguration,
Action<TelegramSinkConfiguration> configureAction,
IMessageFormatter messageFormatter,
IMessageFormatter? messageFormatter,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Amazing. That's an important fix as some users already had issues with that!

@a-gubskiy a-gubskiy merged commit cd0ad6c into main Nov 27, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

IMessageFormatter param is not nullable
2 participants