Ejemplo n.º 1
0
 public Webhook(WebhookId id, TenantId tenantId, IEnumerable <EventTypeId> eventTypeIds, PostbackUrl postbackUrl, Secret secret)
 {
     Id           = id;
     TenantId     = tenantId;
     EventTypeIds = eventTypeIds;
     PostbackUrl  = postbackUrl;
     Secret       = secret;
 }
Ejemplo n.º 2
0
 public static Webhook Create(Guid tenantId, IEnumerable <Guid> eventTypeIds, string postbackUrl, string secret) =>
 Create(WebhookId.Create(), tenantId, eventTypeIds, postbackUrl, secret);