I assume this is a portable class library or a Windows Store / Phone project focused on Windows Runtime that does not have this design.
An alternative and recommended way would be to use:
await Task.Delay(TimeSpan.FromSeconds(2));
or for a blocking call if you are not in an asynchronous context:
Task.Delay(TimeSpan.FromSeconds(2)).Wait();
A similar problem is also revealed in this post .
Jaanus varus
source share