static void Main(string[] args) { var client = new MyRequest(OnSuccess); client.Function(); //Output: //I'm in the callback //Foo.Bar() Console.ReadKey(); }