API reference
Method TryDeserializeData
- Namespace
- DisCatSharp.Hosting.AspNetCore.Ingress.WebhookEvents
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
TryDeserializeData<T>(out T?)
Attempts to deserialize the nested event data into a typed model.
public bool TryDeserializeData<T>(out T? data) where T : ObservableApiObject
Parameters
dataTThe deserialized payload model when successful.
Returns
Type Parameters
TThe payload model type.
Remarks
This method swallows JSON deserialization failures so callers can fall back to UnknownWebhookEventReceived or other raw-payload handling paths.