Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.13 KB

File metadata and controls

26 lines (19 loc) · 1.13 KB
title description author ms.author ms.topic ms.date ms.reviewer audience ms.search.region ms.search.validFrom ms.dyn365.ops.version
Delegates
Learn about how to write extensible code and delegates. If you decide to use delegates, consider ensuring no more than one response where applicable.
MichaelFruergaardPontoppidan
mfp
article
09/09/2018
johnmichalak
Developer
Global
2018-09-09
Platform update 20

Delegates

[!include banner]

Although you can subscribe to existing delegates, don't create new delegates. The Chain of Command (CoC) provides a richer, more robust, and more concise extension mechanism that supersedes delegates.

Instead of creating new delegates, structure your code in small methods that have good names, as described in the guidelines for writing extensible methods.

If you decide to use delegates, consider ensuring no more than one response where applicable. For more information, see EventHandlerResult classes in request or response scenarios.

[!INCLUDEfooter-include]