我试图使用mailgun webhook数据,但它们的事件数据作为"事件数据"发送
https://documentation.mailgun.com/en/latest/user_manual.html#webhooks-1
所以我看到其他帖子中有JsConfig的东西来全局改变SS的行为(宽容属性?)但我不能从根本上做到这一点.如果我要使用Lenient,它只需要为这项服务,理想的情况下,这一特定的请求后eh.我们正在使用的系统在核心级别实现ServiceStack,因此我们try 的任何JsConfigtry 似乎都会随机 destruct CMS中的内容.但我确实使用并更喜欢SS作为定制服务路由.
我如何让SS在本地处理这个事件数据(事件数据)?
[Route("/mailgun/webhook")]
public class MailgunWebhookListenerRequest : IReturn<string>
{
public MailgunWebhookSignature Signature { get; set; }
public List<Dictionary<string, string>> EventData { get; set; } = new List<Dictionary<string, string>>();
}
{
"signature":
{
"timestamp": "1529006854",
"token": "a8ce0edb2dd8301dee6c2405235584e45aa91d1e9f979f3de0",
"signature": "d2271d12299f6592d9d44cd9d250f0704e4674c30d79d07c47a66f95ce71cf55"
},
"event-data":
{
"event": "opened",
"timestamp": 1529006854.329574,
"id": "DACSsAdVSeGpLid7TN03WA"
}
}