So far, we have published a CDS request message, used our quant library to price the CDS, and published the response. The only thing left to do is to let the world know our results, like this:
public bool ProcessCDSResponse(CreditDefaultSwapResponseMessage cds)
{
Console.WriteLine("calculated spread: " + cds.fairRate);
Console.WriteLine("calculated NPV: " + cds.fairNPV);
return true;
}