发明名称 Metadata-based eventing supporting operations on data
摘要 Concepts and technologies are described herein for providing metadata-based eventing supporting operations on data. Application data such as classes and events can be stored in a table and can be associated with and/or described by application metadata. The application metadata also can specify one or more event handlers that reference one or more methods on a class. The event handlers can be invoked via various delegates linked to the one or more application metadata tables. When a create, update, or delete operation on the application data is received, the application metadata can be queried to determine if the application metadata describes event handlers associated with the application data. If event handlers associated with the application data exist, the event handlers can be invoked.
申请公布号 US8793706(B2) 申请公布日期 2014.07.29
申请号 US201012969587 申请日期 2010.12.16
申请人 Microsoft Corporation 发明人 Villadsen Peter;Chen Zhaoqi;Gottumukkala Ramakanthachary S.;Calderon Marcos
分类号 G06F3/00 主分类号 G06F3/00
代理机构 代理人 Rieth Damon;Ross Jim;Minhas Micky
主权项 1. A computer-implemented method for invoking event handlers, the computer-implemented method comprising performing computer-implemented operations for: detecting an operation on application data associated with application metadata, the application data comprising a table having records, wherein the application data is published according to a publish and subscribe model, wherein the table includes references to one or more delegates comprising at least one of a pre-operation delegate or a post-operation delegate, and wherein one or more subscribers are notified if the operation on the application data is completed; in response to detecting the operation on the application data, determining if the application metadata comprises data describing one or more event handlers associated with the operation on the application data, wherein the one or more event handlers references one or more methods on a class; and in response to determining that the application metadata comprises the data describing the one or more event handlers, identifying the one or more event handlers and invoking the one or more event handlers, wherein invoking the one or more event handlers comprises, when the one or more event handlers comprise a plurality of event handlers, determining an order in which the plurality of event handlers are to be invoked, and invoking the plurality of event handlers in the order determined.
地址 Redmond WA US