C# / .Net API Library Reference  4.3.2-74-ge1d4cca
Public Functions | Properties
ValueResponseAggregator< TValue > Class Template Reference

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

Public Functions

void AddResponseValue (Guid sessionId, TValue value)
 
void Clear ()
 
List< ResponseInfo > GetNextResponses (Guid sessionId)
 
bool HasResponses (Guid sessionId)
 
bool RemoveResponses (Guid sessionId)
 
 ValueResponseAggregator (string destination, IContentAdaptor< TValue > adaptor)
 

Properties

string Destination [get]
 

Usage Description

void AddResponseValue ( Guid  sessionId,
TValue  value 
)
inline

Adds a response value for the specified session.

Parameters
sessionIdThe session id.
valueThe value.
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 it does; 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.

Property Documentation

string Destination
get

Gets the destination.