protected void OnKeepAliveCommand(ITransport commandTransport, KeepAliveInfo info)
{
Tracer.Info("Keep alive message received.");
try
{
if(connected.Value)
{
Tracer.Info("Returning KeepAliveInfo Response.");
info.ResponseRequired = false;
transport.Oneway(info);
}
}
catch(Exception ex)
{
if(!closing.Value && !closed.Value)
{
OnException(ex);
}
}
}