コード例 #1
0
        public WebhookMiddleware(RequestDelegate next, IOptions <WebhookConfiguration> options)
        {
            _next          = next;
            _configuration = options.Value;

            _router = TweetinviContainer.Resolve <IWebhookRouter>();
        }
コード例 #2
0
        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);
        }