private void OnChannelReconnected(object state)
{
SortedDictionary<uint,IServiceResponse> responses = state as SortedDictionary<uint,IServiceResponse>;
if (responses == null)
{
return;
}
foreach (KeyValuePair<uint,IServiceResponse> response in responses)
{
try
{
SendResponse(response.Key, response.Value);
}
catch (Exception e)
{
Utils.Trace(e, "Unexpected error re-sending request (ID={0}).", response.Key);
}
}
}