发明名称 Host agnostic messaging in a continuation based runtime
摘要 Sending or receiving messages in a host agnostic way in a continuation based runtime. A method includes defining a contract between a continuation based runtime and host for sending or receiving a message. The contract defines one or more of: details about what should be included in the messages, operations for sending the message; operations for receiving the message, parameters for cancellation of inflight operations, or notifications about correlation information lifetime. The method further includes identifying a correlation handle. The correlation handle uniquely identifies an executing instance of an activity. The method further comprises identifying a bookmark. The bookmark defines where the continuation based runtime should resume after sending or receiving the message. The method further comprises calling the contract using the correlation handle and the bookmark to allow the message to be correctly routed by the host and for the continuation based runtime to be correctly resumed.
申请公布号 US9536264(B2) 申请公布日期 2017.01.03
申请号 US201113296014 申请日期 2011.11.14
申请人 Microsoft Technology Licensing, LLC 发明人 Kalra Vishal;Cliffe David R.;Wolf Kenneth David;Welicki Leon
分类号 G06Q40/04;G06F9/54 主分类号 G06Q40/04
代理机构 代理人 Tabor Ben;Drakos Kate;Minhas Micky
主权项 1. A host agnostic method of communicating messages in a continuation based runtime, the method comprising: accessing a defined contract, wherein the contact associates a continuation based runtime and a first host, wherein the first host is hosting the continuation based runtime, wherein the contract is associated with sending or receiving a message, wherein the contract defines host specific functionality for the first host, wherein the contract comprises an extension provided by the first host that identifies services provided by the first host such that activities of the continuation based runtime hosted on the first host can invoke members of the extension for the first host following a protocol that governs how the methods in the extension are invoked, wherein a correlation handle and a bookmark are registered with the extension; identifying the correlation handle, that uniquely identifies an executing instance of an activity; identifying the bookmark that comprises a resume location for the continuation based runtime after the message communication is complete; calling the contract using the correlation handle and the bookmark to allow the message to be correctly routed by the first host using host specific functionality specified in the contract,wherein calling the contract includes calling the extension using the contract, the correlation handle and bookmark; and calling the service from the extension.
地址 Redmond WA US