Changes between Version 32 and Version 33 of MapGuideRfc68
- Timestamp:
- 09/08/09 17:41:19 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideRfc68
v32 v33 32 32 == Proposed Solution == 33 33 34 In order to make backward compatible with the existing MapGuide applications, the old assembly !MapGuieDotNetApi.dll still exists. However, it contains some TypeForwardedTo attributes only. TypeForwardedTo attribute allows you to move a type to another assembly without having to recompile applications that use the original assembly. This is solution that Microsoft recommend to keep backward compatibility of .NET API. You can get more information aboutTypeForwardedTo attribute from MSDN.34 In order to make backward compatible with the existing MapGuide applications, the old assembly !MapGuieDotNetApi.dll still exists. However, it contains some !TypeForwardedTo attributes only. !TypeForwardedTo attribute allows you to move a type to another assembly without having to recompile applications that use the original assembly. This is the solution that Microsoft recommends to keep backward compatibility of .NET API. You can get more information about !TypeForwardedTo attribute from MSDN. 35 35 36 36 http://msdn.microsoft.com/en-us/library/ms404275.aspx 37 37 38 (a) Create the following new assemblies. 38 So the proposed solution is to 39 40 (a) Create the following five new assemblies. 39 41 * OSGeo.!MapGuide.Foundation.dll: contains API in Foundation component. 40 42 * OSGeo.!MapGuide.Geometry.dll: contains API in Geometry compoent. … … 43 45 * OSGeo.!MapGuide.Web.dll: contains API in !WebApp and !HttpHandler components. 44 46 45 (b) Create the following assembly by adding the reference to five assemblies above and some TypeForwardedTo attribute. For example, [assembly: TpeForwardedTo(typeof(OSGeo.MapGuide.MgFeatureService))].47 (b) Create the following assembly by adding the reference to five assemblies above and some !TypeForwardedTo attributes. For example, [assembly: TpeForwardedTo(typeof(OSGeo.MapGuide.MgFeatureService))]. 46 48 * !MapGuideDotNetApi.dll 47 49