0

There are numerous articles describing how to define and register a new Sitecore event:

Are there any recommendations when to do so?

One can simply raise and handle .NET events in code. Sitecore events can be registered in a config file which might add some visibility and maintenance flexibility; Sitecore events have built-in support for remote communication. Any other reasons to define a Sitecore event?

4

One reason I can think of is decoupling

To subscribe to a regular .NET Event, I need to reference the assembly wherein it is defined. With Sitecore events, this is handled via configuration and therefore the Sitecore Configuration Factory. No reference to your assembly is necessary.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.