using System.Collections.Concurrent; using Kruzya.TelegramBot.Core.Cache; using Microsoft.Extensions.DependencyInjection; namespace Kruzya.TelegramBot.Core.Extensions { public static class StartupExtension { public static IServiceCollection AddQueue(this IServiceCollection collection) => collection.AddSingleton>(); public static IServiceCollection AddMemoryCache(this IServiceCollection collection) => collection.AddSingleton>(); } }