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?

1 Answer 1

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.

1
  • Make sense, thanks! Any other ideas? Commented Apr 13, 2017 at 9:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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