Which preposition to use with eyepiece

of Occurrences 3%

It is said that he watched the operations in comfort while seated before the eyepiece of a periscope carried up through the roof.

with Occurrences 1%

It should have a good prism eyepiece with an angle tube attached so it would not be necessary to break one's neck in reading high altitudes.

Which preposition to use with  eyepiece