During the War of 1812 , he served as major in the York militia .
During the War of 1812 , he negotiated the terms of surrender when York was first captured by the American forces .
During the War of 1812 , he served as major in the York militia and negotiated the terms of surrender when York was first captured by the American forces .