From 2d97fe533961be3739088b36ddf349a49da30b8a Mon Sep 17 00:00:00 2001 From: Rikitav Date: Tue, 19 Aug 2025 05:39:22 +0400 Subject: [PATCH] Removed Method GetDescriptorsList from IHandlersCollection --- Telegrator.Hosting.Web/Telegrator.Hosting.Web.csproj | 2 +- Telegrator.Hosting/Telegrator.Hosting.csproj | 2 +- Telegrator/MadiatorCore/IHandlersCollection.cs | 7 ------- Telegrator/Providers/HandlersCollection.cs | 8 ++++---- Telegrator/Telegrator.csproj | 2 +- 5 files changed, 7 insertions(+), 14 deletions(-) diff --git a/Telegrator.Hosting.Web/Telegrator.Hosting.Web.csproj b/Telegrator.Hosting.Web/Telegrator.Hosting.Web.csproj index 2f3453b..cd0ecc2 100644 --- a/Telegrator.Hosting.Web/Telegrator.Hosting.Web.csproj +++ b/Telegrator.Hosting.Web/Telegrator.Hosting.Web.csproj @@ -15,7 +15,7 @@ True LICENSE README.md - 1.15.2 + 1.15.3 diff --git a/Telegrator.Hosting/Telegrator.Hosting.csproj b/Telegrator.Hosting/Telegrator.Hosting.csproj index ff5435d..822f40b 100644 --- a/Telegrator.Hosting/Telegrator.Hosting.csproj +++ b/Telegrator.Hosting/Telegrator.Hosting.csproj @@ -16,7 +16,7 @@ True LICENSE README.md - 1.15.2 + 1.15.3 diff --git a/Telegrator/MadiatorCore/IHandlersCollection.cs b/Telegrator/MadiatorCore/IHandlersCollection.cs index 09f44ab..5352c2c 100644 --- a/Telegrator/MadiatorCore/IHandlersCollection.cs +++ b/Telegrator/MadiatorCore/IHandlersCollection.cs @@ -37,12 +37,5 @@ namespace Telegrator.MadiatorCore /// The handler descriptor to add. /// The updated . public IHandlersCollection AddDescriptor(HandlerDescriptor descriptor); - - /// - /// Gets the for the specified . - /// - /// The handler descriptor. - /// The handler descriptor list containing the descriptor. - public HandlerDescriptorList GetDescriptorList(HandlerDescriptor descriptor); } } diff --git a/Telegrator/Providers/HandlersCollection.cs b/Telegrator/Providers/HandlersCollection.cs index f683611..55c0a53 100644 --- a/Telegrator/Providers/HandlersCollection.cs +++ b/Telegrator/Providers/HandlersCollection.cs @@ -91,11 +91,11 @@ namespace Telegrator.Providers } /// - /// Gets or creates a descriptor list for the specified update type. + /// Gets the for the specified . /// - /// The handler descriptor to get the list for. - /// The descriptor list for the update type. - public virtual HandlerDescriptorList GetDescriptorList(HandlerDescriptor descriptor) + /// The handler descriptor. + /// The handler descriptor list containing the descriptor. + protected virtual HandlerDescriptorList GetDescriptorList(HandlerDescriptor descriptor) { UpdateType updateType = UpdateTypeExtensions.SuppressTypes.TryGetValue(descriptor.UpdateType, out UpdateType suppressType) ? suppressType diff --git a/Telegrator/Telegrator.csproj b/Telegrator/Telegrator.csproj index 6f6589b..f08ca91 100644 --- a/Telegrator/Telegrator.csproj +++ b/Telegrator/Telegrator.csproj @@ -17,7 +17,7 @@ telegram;bot;mediator;attributes;aspect;hosting;host;framework;easy;simple;handlers README.md LICENSE - 1.15.2 + 1.15.3