Esempio n. 1
0
        static void Main(string[] args)
        {
            IApplicationContext ctx = ContextRegistry.GetContext();
            IHello hello            = (IHello)ctx.GetObject("MyHello");

            Console.WriteLine(hello.sayHello("Mike"));
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            IApplicationContext ctx = ContextRegistry.GetContext();
            IHello hello            = (IHello)ctx.GetObject("MyHello");
            string name             = "Mike";
            string result           = hello.sayHello(name);

            Console.WriteLine(result);
        }