🚧 Core API and abstractions extending

This commit is contained in:
2020-03-02 00:00:44 +04:00
parent ed255e2506
commit e86049f4fd
7 changed files with 198 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
using System.Collections.Concurrent;
using Microsoft.Extensions.DependencyInjection;
namespace Kruzya.TelegramBot.Core.Extensions
{
public static class StartupExtension
{
public static IServiceCollection AddQueue<T>(this IServiceCollection collection)
{
return collection.AddSingleton<ConcurrentQueue<T>>();
}
}
}