message handler
常見(jiàn)例句
- Listing 1 shows a message handler that reads the request body while the request is being sent.
清單 1 顯示了一個(gè)消息處理程序,用于在發(fā)送請(qǐng)求時(shí)讀取請(qǐng)求主體。 - The trouble with this approach is that your message handler is called many times to notify you of events that are not relevant for your plug-in.
這種方法的弊端是,消息處理程序?qū)⒈欢啻握{(diào)用來(lái)向您通知事件,而這些事件可能與您的插件無(wú)關(guān)。 - The first step that your message handler should take is to examine the event passed in from the platform and return it immediately if it is not relevant.
因此,消息處理程序應(yīng)當(dāng)首先檢查由平臺(tái)傳入的事件,如果該事件與您的插件無(wú)關(guān),那么立即返回此事件。 返回 message handler