As one mole of the complex gives two moles of AgCl this means that the complex has two ionisable Cr ions in one molecule. Thus, two Cl− ions satisfy primary valency while third Cl− ion satisfy secondary valency.
[Co(NH3)5Cl]Cl2(aq)⇌[Co(NH3)5Cl]2+(aq)+2Cl−(aq)