Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • QBank 17 posts 107 karma points
    Jun 02, 2019 @ 12:25
    QBank
    0

    Create New Event

    Is it possible to define our own event.? i am developing package for customer. the idea is to allow umbraco developers to subscribe to event we define in package.

  • Markus Johansson 1701 posts 4879 karma points c-trib
    Jun 02, 2019 @ 14:04
    Markus Johansson
    1

    Hi!

    That should be totally possible, just create a new C#-event and document how this event works.

    https://docs.microsoft.com/en-us/dotnet/standard/events/

    I’ve done this with my Newsletter Studio-package for example.

  • Mario 140 posts 836 karma points c-trib
    Jun 03, 2019 @ 01:46
    Mario
    0

    As Markus said just create a C# event. For your devs to subscribe to it they'll have to use Composition:

    https://our.umbraco.com/documentation/Implementation/Composing/#example---creating-a-component-to-listen-for-contentservicesaving-events

  • QBank 17 posts 107 karma points
    Jun 09, 2019 @ 11:52
    QBank
    0

    Thank all for the support. i was able to resolve the issue

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies