Configuration Via XML

Aug 1, 2009 at 12:10 AM

I heard that there was some additional changes that would allow configuration via XML.  Is this ready?  If not can you give a high level description of how to use the ModuleInit class to configure the services and items?  The documentation on the web seems to be missing on how to bootstrap the whole process so I find myself coding this in the main of my sample application...

 

       RootWorkItem.Services.AddNew<MockServiceProvider, IOCServiceProvider>();
            RootWorkItem.Services.AddNew<ServiceLocator>();
            //RootWorkItem.Services.AddNew<ServiceLocator, ServiceLocator>();
            //RootWorkItem.Services.AddNew(typeof (ServiceLocator));
            ServiceLocator sl = RootWorkItem.Services.Get<ServiceLocator>(true);

       RootWorkItem.Services.AddNew<MockServiceProvider, IOCServiceProvider>();

       RootWorkItem.Services.AddNew<ServiceLocator>();

       ServiceLocator sl = RootWorkItem.Services.Get<ServiceLocator>(true);

 

Thanks

 

Coordinator
Aug 2, 2009 at 8:59 PM

Yes, configuration via XML (from a file, database, or wherever) is supported.  The XML is a subset of what is supported by the SCSF.  For an example, look at the ProfileCatalog.xml file in the WiFiSurvey sample.