novuhq / novu-dotnet

.NET SDK for Novu - The open-source notification infrastructure for engineers. 🚀
MIT License
25 stars 13 forks source link

Did not found EventTriggerDataDto #74

Closed uzzaircuremd closed 11 months ago

uzzaircuremd commented 11 months ago

I di not found EventTriggerDataDto in C# std. while its mention in code suggestion.

image

toddb commented 11 months ago

That documentation does not belong to this repository and is the documentation for Novu itself (and is outdated although in issue #72 you can see the authors are trying to get up to date).

EvenTriggerDataDto is obsolete as of 0.3.0 of this library and the documentation on the readme) has the new implementation which I will repeat:

await Event.Trigger(
            new EventCreateData
            {
                EventName = 'event-name',
                To = { SubscriberId =subscriberId },
                Payload = new Payload("Bogus payload"),
            });