Esempio n. 1
0
 private static void PrintOutNameAndConnection(XmlApplicationContext ctx)
 {
     foreach (var name in ctx.GetObjectNamesForType(typeof (MyService)))
     {
         var svc = (MyService) ctx.GetObject(name);
         Console.WriteLine("{0} : {1}", name, svc.Connection);
     }
 }