C# Класс Microsoft.AspNet.WebHooks.SlackWebHookReceiver

Provides an IWebHookReceiver implementation which supports WebHooks generated by Slack. A sample WebHook URI is of the form 'https://<host>/api/webhooks/incoming/slack/{id}'. For security reasons, the WebHook URI must be an https URI and the WebHook 'token' parameter must have the same value as configured in the 'MS_WebHookReceiverSecret_Slack' application setting. For details about Slack WebHooks, see https://api.slack.com/outgoing-webhooks.
Наследование: Microsoft.AspNet.WebHooks.WebHookReceiver
Показать файл Открыть проект

Открытые методы

Метод Описание
ReceiveAsync ( string id, System.Web.Http.Controllers.HttpRequestContext context, HttpRequestMessage request ) : Task

Приватные методы

Метод Описание
GetSubtext ( string trigger, string text ) : string

The 'text' parameter provided by Slack contains both the trigger and the rest of the phrase. This isolates just the rest of the phrase making it easier to get in handlers.

Описание методов

ReceiveAsync() публичный Метод

public ReceiveAsync ( string id, System.Web.Http.Controllers.HttpRequestContext context, HttpRequestMessage request ) : Task
id string
context System.Web.Http.Controllers.HttpRequestContext
request System.Net.Http.HttpRequestMessage
Результат Task