static void Main(string[] args) { var request = "request"; var fooService = new FooService(); ServiceProxy.Invoke(r => fooService.DoFoo(request), "abc"); Console.Read(); }