We’ve just released some changes to our C# .NET library to make it easier to work with while supporting some of the more recent features of the .NET framework.

In certain very specific use cases your integration may break, so we’ve incremented our version number to v3.0.0.

BREAKING CHANGE: Exception Handling

Trigger calls that result in a non-200 response from the Pusher HTTP API now result in a TriggerResponseException being thrown. This is a breaking change as previously you could inspect the ITriggerResult.StatusCode to detect a failed request.

Specifying a Host and Port

You can now specify a host and port for your API connections using PusherOptions.HostName & PusherOptions.Port properties.

Async API Calls

We now support asynchronous programming in .NET 4.5+ on the core API methods.

Travis Build

The .NET library now builds with Travis, with all tests passing.

Other Changes

We’ve made a bunch of other small tweaks and minor fixes. See the changelog for more information.

Version 3.0.0 of the library is now available on NuGet and we’ve updated our docs. If you have any questions please don’t hesitate to contact support.

Thanks to John McLoughlin for his help with this release.

About Sam Stagg

VP of Engineering