He shall commence and prosecute all suits brought or to be brought by the county wherein or whereby any rights, privileges, properties, claims or demands of the county are involved, as well as defend all actions or suits brought against the county, and shall perform all duties now enjoined by law upon county solicitors, and shall do all and every professional act and render legal advice incident to the office, which may be required of him by the commissioners.
16 P.S. § 3902