Пример #1
0
 public BiliBiliHandler(EventManager eventManager,
                        ILogger <BiliBiliHandler> logger, ConfigService globalService, IServiceProvider provider)
 {
     _eventManager = eventManager;
     _logger       = logger;
     eventManager.OnGroupMessage   += HandlerExpansion.ToGroupHandler(Handler);
     eventManager.OnPrivateMessage += HandlerExpansion.ToPrivateHandler(Handler);
     _globalService = globalService;
     _provider      = provider;
 }
Пример #2
0
 public YandeHandler(EventManager eventManager,
                     ILogger <YandeHandler> logger, ConfigService globalService, IServiceProvider provider, Lazy <YandeService> yandeService)
 {
     //_provider = provider;
     _eventManager = eventManager;
     _logger       = logger;
     eventManager.OnGroupMessage   += HandlerExpansion.ToGroupHandler(Handler);
     eventManager.OnPrivateMessage += HandlerExpansion.ToPrivateHandler(Handler);
     _globalService = globalService;
     _yandeService  = yandeService;
 }