SocketLabs.EventWebhooks.Extensions 1.0.14

dotnet add package SocketLabs.EventWebhooks.Extensions --version 1.0.14
NuGet\Install-Package SocketLabs.EventWebhooks.Extensions -Version 1.0.14
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SocketLabs.EventWebhooks.Extensions" Version="1.0.14" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SocketLabs.EventWebhooks.Extensions --version 1.0.14
#r "nuget: SocketLabs.EventWebhooks.Extensions, 1.0.14"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SocketLabs.EventWebhooks.Extensions as a Cake Addin
#addin nuget:?package=SocketLabs.EventWebhooks.Extensions&version=1.0.14

// Install SocketLabs.EventWebhooks.Extensions as a Cake Tool
#tool nuget:?package=SocketLabs.EventWebhooks.Extensions&version=1.0.14

<img src="https://static.socketlabs.com/logos/logo-dark-sans-tag-507x64.png" alt="SocketLabs Logo" width="253" height="32" />

Build status

SocketLabs.EventWebhooks.Extensions

Library to make consuming SocketLabs webhooks easier.

Getting Started

Prerequisites

  • Visual Studio or VSCode
  • .NET 8

Usage

Import using dotnet CLI or the Package Manager console in Visual Studio

dotnet cli
dotnet add package SocketLabs.EventWebhooks.Extensions
Package Manager
Install-Package SocketLabs.EventWebhooks.Extensions

Inject the webhook services

var builder = WebApplication.CreateBuilder(args);

// Code removed for brevity ...

// Add the webhook endpoints
builder.Services.AddWebhookEndpoints(builder.Configuration);

// Add custom implementation of IWebhookEventHandler
builder.Services.AddSingleton<IWebhookEventHandler, WebhookEventHandler>();

Add webhook configurations

appsettings.json
{
  "WebhookOptions": {
    "WebhookEndpoints": [
      {
        "Name": "cc0b4dc6-d867-49f5-9d8e-8357997789af",
        "SecretKey": "Z123456AbcD1234563Ef"
      }
    ]
  }
}

Configure Endpoint URL in portal

https://example.com/api/v1/webhookevents/cc0b4dc6-d867-49f5-9d8e-8357997789af

Release History

  • 1.0.0 Initial Release

License

MIT License

Contributing

Contributor Guidelines

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.14 200 12/21/2023
1.0.12 84 12/21/2023