单项选择题

______ I was going out, it began to rain.

A.When
B.While
C.As
D.Since