public WebhookMiddleware(RequestDelegate next, IOptions <WebhookConfiguration> options) { _next = next; _configuration = options.Value; _router = TweetinviContainer.Resolve <IWebhookRouter>(); }
public AccountActivityRequestHandler( IWebhookDispatcher dispatcher, IWebhooksRoutes routes, IWebhooksHelper webhooksHelper, IFactory <AccountActivityStream> accountActivityStreamFactory, ITwitterClient client) { _dispatcher = dispatcher; _accountActivityStreamFactory = accountActivityStreamFactory; _router = new WebhookRouter(dispatcher, routes, webhooksHelper); _consumerOnlyCredentials = new ConsumerOnlyCredentials(client.Credentials); }