Svix Blog
Published on

New C# Webhooks Library

Authors

Cover image

This new version brings full support of the Svix API to the C# lib, in addition to the already existing signature verification code. The library is available in both sync and an async variants.

Many thanks to @IAmArchaic from the Svix community for writing it!

How do I use it?

Make sure to update to the latest C# library version (>=0.59.1 at the time of this writing), and start using it.

As mentioned above, the library exposes both sync and async variants. The way is structured is that each function either no suffix (sync), or the Async suffix (async).

To use the sync variant:

using Svix;

var svix = new SvixClient("AUTH_TOKEN", new SvixOptions("THE_SERVER_URL"));
applicationOut = svix.Application.Create(
    new ApplicationIn(name: "Application name")
);

For the async variant:

using Svix;

var svix = new SvixClient("AUTH_TOKEN", new SvixOptions("THE_SERVER_URL"));
applicationOut = await svix.Application.CreateAsync(
    new ApplicationIn(name: "Application name")
);

Where can I find the documentation?

Even though this library new, it's already fully documented. The documentation shows the async variant, but using the sync variants is trivial.

For the more tutorial like version of the docs, please refer to the Svix documentation, and for full API documentation, please refer to the Svix API reference.

Reporting issues

This library has been tested, and it's already used by a number of our customers. With that being said, it's still new, and may contain issues.

If you spot anything wrong, please open a ticket on Github, or let us know via email or Slack.

Coming next

We have a lot more in the works that we'll share in upcoming updates, stay tuned! If you have any thoughts or suggestions regarding what we should work on next, please join the Svix Slack and let us know!

This is it for this update, but make sure to follow us on Twitter, Github or RSS for the latest updates for the Svix webhook provider, or join the discussion on our community Slack.