I find it odd that when calling the AddSubscription API in the WebhookSubscriptionAppService, I can pass in the IsActive property and it is honored. But when I try to "toggle" the IsActive property with UpdateSubscription API, the IsActive is not honored. Feels like a bug to me but maybe I'm not understanding something??
3 Answer(s)
-
0
Hi @japnolt
As far as I can see from source code, both methods use
AddOrUpdateSubscriptionAsync
method ofIWebhookSubscriptionManager
and its implementation doesn't have any special check for IsActive. But, I will check this problem, please follow https://github.com/aspnetzero/aspnet-zero-core/issues/5052. We shouldn't use entities as input parameter in app services, I will fix it as well. -
0
There is also no way to delete a webhook subscription. Is this by design or an oversight?
-
0
Hi,
I think deletion is not provided on purpose but I will check the source code and exlain it in the issue.