C# / .Net API Library Reference
Public Functions
GenericResponseAggregator Class Reference

Class used to assist with implementation of providing session responses. This class is not thread safe.

Public Functions

void AddResponse (Guid sessionId, ResponseInfo response)
 
void AddResponse (Guid sessionId, string destination, ContentInfo content, IDictionary< string, string > parameters)
 
void Clear ()
 
 GenericResponseAggregator ()
 
List< ResponseInfo > GetNextResponses (Guid sessionId)
 
bool HasResponses (Guid sessionId)
 
bool RemoveResponses (Guid sessionId)
 

Usage Description

void AddResponse ( Guid  sessionId,
ResponseInfo  response 
)
inline

Adds a response for the specified session.

Parameters
sessionIdThe session id.
responseThe response.
void AddResponse ( Guid  sessionId,
string  destination,
ContentInfo  content,
IDictionary< string, string >  parameters 
)
inline

Adds a response for the specified session.

Parameters
sessionIdThe session's unique identifier.
destinationThe destination for the response.
contentThe content of the response.
parametersThe parameters included with the response.
void Clear ( )
inline

Clears this instance.

List<ResponseInfo> GetNextResponses ( Guid  sessionId)
inline

Gets the next responses for the specified session.

bool HasResponses ( Guid  sessionId)
inline

Determines whether the specified session has responses. Returns true if the specified session has responses; otherwise, returns false.

bool RemoveResponses ( Guid  sessionId)
inline

Removes the responses for the specified session. Returns true if responses for the session existed and were removed, otherwise returns false.