Customize application startup by using delegates
In Dynamics AX 2012, there were customization points that allowed you to subscribe to events (Application.Startup delegates) that were raised when the client was initializing. These events were deprecated because there is no concept of a rich client. On the server, only server sessions are considered, however because you can migrate logic from previous releases, new events have been added to the ApplicationStartupEventManager class.
The following sections highlight the new data sources that you can add to existing forms by using extensions.
static delegate void onSystemStartup()
- This event occurs when the system starts up.
- It is raised once per AOS upon startup.
static delegate void onFirstTimeUserInteractiveSessionCreated()
- This event occurs when the system is creating an interactive session for the first time for a user.
- It is raised once per user per AOS.
static delegate void onFirstTimeUserNonInteractiveSessionCreated()
- This event occurs when the system is creating a non-interactive session for the first time for a user.
- It is raised once per user per AOS.
static delegate void onInteractiveSessionCreated()
- This event occurs when an interactive session is created and ready for use.
- It is raised once per interactive session creation for any user.
static delegate void onSessionCreated(boolean _isBatch, boolean _isInteractive)
- This event occurs when the session is created and ready for use.
- It is raised once per interactive session creation for any user.
- _isBatch specifies whether the system is running a batch job.
- _isInteractive specifies whether the session is interactive.
意見反映
https://aka.ms/ContentUserFeedback。
即將推出:我們會在 2024 年淘汰 GitHub 問題,並以全新的意見反應系統取代並作為內容意見反應的渠道。 如需更多資訊,請參閱:提交及檢視以下的意見反映: