Table of Contents
API reference

Method TryGetEventProperty

Namespace
DisCatSharp.Hosting.AspNetCore.Ingress.WebhookEvents
Assembly
DisCatSharp.Hosting.AspNetCore.dll

TryGetEventProperty(string, out JsonElement)

Attempts to resolve a property from the nested event object.

public bool TryGetEventProperty(string name, out JsonElement value)

Parameters

name string

The property name to resolve.

value JsonElement

The resolved JSON value.

Returns

bool

true when the property exists on the nested event object.