Initial commit

This commit is contained in:
zavolo
2026-06-05 00:53:35 +03:00
commit e59e4424a4
7686 changed files with 352420 additions and 0 deletions
@@ -0,0 +1,22 @@
using MyTelegram.EventBus.Extensions;
namespace MyTelegram.AuthServer.Extensions;
public static class MyTelegramAuthServerExtensions
{
public static IServiceCollection AddAuthServer(this IServiceCollection services)
{
services.RegisterServices();
services.AddMyTelegramHandlerServices();
services.AddEventHandlers();
return services;
}
private static void AddEventHandlers(this IServiceCollection services)
{
services.AddSubscription<UnencryptedMessage, UnencryptedMessageHandler>();
}
}