real time c# example