[REFACTOR] Convert message loop classes to sealed classes
This commit is contained in:
parent
af1f431254
commit
1f5af23a0f
@ -12,7 +12,7 @@ namespace TelegramBotBase.MessageLoops;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Thats the default message loop which reacts to Message, EditMessage and CallbackQuery.
|
/// Thats the default message loop which reacts to Message, EditMessage and CallbackQuery.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class FormBaseMessageLoop : IMessageLoopFactory
|
public sealed class FormBaseMessageLoop : IMessageLoopFactory
|
||||||
{
|
{
|
||||||
private static readonly object EvUnhandledCall = new();
|
private static readonly object EvUnhandledCall = new();
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ namespace TelegramBotBase.MessageLoops;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// This message loop reacts to all update types.
|
/// This message loop reacts to all update types.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class FullMessageLoop : IMessageLoopFactory
|
public sealed class FullMessageLoop : IMessageLoopFactory
|
||||||
{
|
{
|
||||||
private static readonly object EvUnhandledCall = new();
|
private static readonly object EvUnhandledCall = new();
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@ namespace TelegramBotBase.MessageLoops;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// This is a minimal message loop which will react to all update types and just calling the Load method.
|
/// This is a minimal message loop which will react to all update types and just calling the Load method.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class MinimalMessageLoop : IMessageLoopFactory
|
public sealed class MinimalMessageLoop : IMessageLoopFactory
|
||||||
{
|
{
|
||||||
private static readonly object EvUnhandledCall = new();
|
private static readonly object EvUnhandledCall = new();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user