# US 2009/0276791 A1 · Techniques for facilitating server callbacks

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2009/0276791 A1
- Document ID: US20090276791A1
- Status: Published application
- Kind: A1
- Application number: 12/113,211
- Filed: 2008-05-01
- Published: 2009-11-05
- Earliest claimed: 2008-05-01
- Assignees: Microsoft Corporation
- Inventors: Henricus Johannes Maria Meijer
- Web page: https://patentgrep.com/patent/US20090276791A1

## CPC

- G06F 9/542: {Event management; Broadcasting; Multicasting; Notifications}
- G06F 2209/544: Remote
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Various technologies and techniques are disclosed for facilitating server callbacks. A request is received from a client computer to monitor for one or more events for the client computer. The server computer monitors for the one or more events and detects one or more occurrences of the events. Information regarding the one or more occurrences of the events is added to an event queue. On a later communication with the client computer, the event queue is sent as part of a response so the occurrences of the events can be handled on the client computer by one or more event handlers on the client computer. Techniques are also described for enabling server callbacks in execution context splitting scenarios where a region of code has been split across different execution contexts.

## Claims

### Claim 1

A method for facilitating server callbacks comprising the steps of:
receiving a request from a client computer to monitor for one or more events for the client computer;
monitoring for the one or more events;
detecting one or more occurrences of the one or more events;
adding information regarding the one or more occurrences of the one or more events to an event queue; and
on a later communication with the client computer, sending the event queue as part of a response so the one or more occurrences of the one or more events can be handled on the client computer.

### Claim 2 (depends on 1)

The method of claim 1, wherein the information added to the event queue includes one or more event delegates needed to handle the one or more events on the client.

### Claim 3 (depends on 2)

The method of claim 2, wherein the information added to the event queue further includes one or more parameters needed to handle the one or more events on the client computer.

### Claim 4 (depends on 1)

The method of claim 1, wherein the monitoring and detecting steps are handled by a server event handler proxy.

### Claim 5 (depends on 1)

The method of claim 1, wherein the later communication with the client computer is a next communication with the client computer.

### Claim 6 (depends on 1)

The method of claim 1, wherein the later communication with the client computer is a special ping requests that requests the event queue.

### Claim 7 (depends on 1)

The method of claim 1, wherein the later communication with the client computer utilizes an already open connection with the client computer.

### Claim 8 (depends on 1)

The method of claim 1, wherein the receiving, monitoring, detecting, adding, and sending steps enable the one or more events to be detected and raised on a server computer but handled on the client computer.

### Claim 9 (depends on 1)

The method of claim 1, wherein the receiving, monitoring, detecting, adding, and sending steps are repeated for a plurality of client computers.

### Claim 10

A method for handling events on a client that were raised on a server comprising the steps of:
receiving an event queue from a server computer on a later communication with the server computer, the event queue containing information regarding one or more events that were detected on the server computer; and
handling each of the one or more events in the event queue using one or more event handlers.

### Claim 11 (depends on 10)

The method of claim 10, wherein the information regarding one or more events that is contained in the event queue includes one or more event delegates.

### Claim 12 (depends on 10)

The method of claim 10, wherein the information regarding the one or more events that is contained in the event queue includes one or more parameters needed by the one or more event handlers to handle the one or more events.

### Claim 13 (depends on 10)

The method of claim 10, wherein the later communication with the server computer is a next communication with the server computer.

### Claim 14 (depends on 10)

The method of claim 10, wherein the later communication with the server computer is a special ping request sent to the server computer to request the event queue.

### Claim 15 (depends on 10)

The method of claim 10, wherein the later communication with the server computer utilizes an already open connection with the server computer.

### Claim 16

A computer-readable medium having computer-executable instructions for causing a computer to perform steps comprising:
generating a client proxy with an event handler, the event handler being operable to handle a certain event on a client computer; and
generating a server proxy with an event handler proxy, the event handler proxy being operable to detect one or more occurrences of the certain event on a server computer and put information regarding the one or more occurrences into an event queue for later handling by the event handler of the client proxy.

### Claim 17 (depends on 16)

The computer-readable medium of claim 16, wherein the client proxy with the event handler is deployed to the client computer.

### Claim 18 (depends on 16)

The computer-readable medium of claim 16, wherein the server proxy with the event handler proxy is deployed to the server computer.

### Claim 19 (depends on 16)

The computer-readable medium of claim 16, wherein the client proxy and the server proxy are used to implement execution context splitting for a region of code.

### Claim 20 (depends on 16)

The computer-readable medium of claim 16, further having computer-executable instructions for causing a computer to perform steps comprising:
prior to generating the client proxy, accessing one or more annotations associated with a region of code to determine an execution context regarding where the region of code should be executed; and
wherein the client proxy and the server proxy are generated to implement functionality needed to carry out the execution context for the region of code.
