message handler
常見例句
- Listing 1 shows a message handler that reads the request body while the request is being sent.
清單 1 顯示了一個消息處理程序,用于在發(fā)送請求時讀取請求主體。 - 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)用來向您通知事件,而這些事件可能與您的插件無關(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)當首先檢查由平臺傳入的事件,如果該事件與您的插件無關(guān),那么立即返回此事件。 返回 message handler