mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
13 lines
377 B
C#
13 lines
377 B
C#
|
|
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>>();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|