I would like to know if using C# and 

await task.delay(mseconds)

will work if I put it inside OnData.

I want to introduce a small delay (around 1 second) to wait the consolidation of a bar consolidator (if I proceed without delay, data could not be ready)