public TwitchWebSocketMiddleware( RequestDelegate next, TwitchWebSocketManager wsMgr, IOptions <TwitchConfig> options) { _next = next; _wsMgr = wsMgr; _config = options.Value; }
public TwitchWebhooksController( TwitchWebSocketManager wsMgr, TwitchActionsWebSocketManager fitzyWsMgr, IOptions <TwitchConfig> twitchOptions, VbContext context, IMemoryCache cache, ILogger <TwitchWebhooksController> logger) { _wsMgr = wsMgr; _fitzyWsMgr = fitzyWsMgr; _twitchConfig = twitchOptions.Value; _context = context; _cache = cache; _logger = logger; }