A police officer of a municipality or a paid firefighter of a municipality or fire district, although excused from official duty at the time, for the purposes of this section, shall be deemed to be acting in the discharge of duty when engaged in the immediate and actual performance of a public duty imposed by law and such public duty performed was for the benefit of all the citizens of the community and the municipality or fire district derived no special benefit in its corporate capacity.
No action or special proceeding instituted pursuant to the provisions of this section or section fifty-b of this article, shall be prosecuted or maintained against the municipality, fire district or appointee, unless notice of claim shall have been made and served in compliance with section fifty-e of this article. Every such action shall be commenced pursuant to the provisions of section fifty-i of this article.
York.
N.Y. Gen. Mun. Law § 50-C