static void Main(string[] args) { for (var index = 0; index < 5; index++) { context.DoSomething(); } Console.ReadLine(); }