Changes between Version 15 and Version 16 of MapGuideRfc117


Ignore:
Timestamp:
09/12/11 11:23:13 (13 years ago)
Author:
jng
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc117

    v15 v16  
    124124{
    125125   //Use the MgServiceFactory class to create your required services
    126 
    127    MgdFeatureService featSvc = MgServiceFactory.CreateFeatureService();
    128    MgdResourceService resSvc = MgServiceFactory.CreateResourceService();
    129    MgRenderingService renSvc = MgServiceFactory.CreateRenderingService();
     126   MgServiceFactory factory = new MgServiceFactory();
     127
     128   MgdFeatureService featSvc = (MgdFeatureService)factory.CreateService(MgServiceType.FeatureService);
     129   MgdResourceService resSvc = (MgdResourceService)factory.CreateService(MgServiceType.ResourceService);
     130   MgRenderingService renSvc = (MgRenderingService)factory.CreateService(MgServiceType.RenderingService);
    130131}
    131132}}}