mirror of
https://github.com/opengram-server/opengram.git
synced 2026-09-10 20:44:13 +03:00
Initial commit
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user