static void Main(string[] args) { List <string> namespaces = new List <string>(); namespaces.Add("DaoThingi.DomainObjects"); namespaces.Add("DaoThingi.TestDI"); GrgContext grgContext = new GrgContext(); grgContext.AddBean("DaoThingi.SqlThingis.Implementation.Logger", "myLogger", GrgScope.Singleton); grgContext.AddBean("DaoThingi.SqlThingis.Implementation.AdoTemplate", "myAdoTemplate", GrgScope.Singleton); grgContext.AddBean("DaoThingi.SqlThingis.Implementation.DefaultConnectionFactory", "myDefaultConnectionFactory", GrgScope.Singleton); grgContext.AddBean("DaoThingi.DomainObjects.Person", "myPerson", GrgScope.Prototype); grgContext.AddBean("DaoThingi.SqlThingis.Dao.PersonDao", "myPersonDao", GrgScope.Singleton); Console.WriteLine("\n\n\n\nCOntext Data"); grgContext.ListBeans(); grgContext.ListInjectables(); grgContext.ListAutowire(); PersonDao personDao = (PersonDao)grgContext.GetBeanById("myPersonDao"); }