C# / .Net API Library Reference  4.3.2-74-ge1d4cca
Public Functions
IRequestManager Interface Reference

The IRequestManager interface provides methods to register and unregister request handlers.

Public Functions

void RegisterRequestHandler (string destination, IRequestHandler handler)
 
bool UnregisterRequestHandler (string destination, IRequestHandler handler)
 

Usage Description

void RegisterRequestHandler ( string  destination,
IRequestHandler  handler 
)

Registers a request handler with StateManager.

Parameters
destinationThe name that you want to give the handler. This will serve as the handler's unique identifier when sending requests to it.
handlerThe handler function that will be executed when the request is received.

Implemented in RequestManager.

bool UnregisterRequestHandler ( string  destination,
IRequestHandler  handler 
)

Unregisters the specified request handler from StateManager. Returns true if the operation is successful, otherwise returns false.

Parameters
destinationThe name that you gave the handler when you registered it.
handlerThe handler that you are unregistering.

Implemented in RequestManager.