 He served as surgeon to a militia battalion and was also coroner for the Bedford District and a justice of the peace in Shefford County.Foster also was a founder and served as administrator for the Shefford Academy in Frost Village.In 1841, he was elected to represent Shefford in the Legislative Assembly of the Province of Canada and was reelected in 1844.