Run the class library as a "WCF data service"

Is it possible to provide a .NET library (class) through a WCF data service ? Is that the meaning of the script? Or is pure WCF used the best and only way in this case?

Background: I have several (old) C # class classes (which encapsulate access to various data sources) that I want to use with Ajax and Silverlight . I cannot and should not access data sources and must use libraries (due to backward compatibility).

+4
source share
1 answer

It is worth noting that the XML serialization of objects does not correspond to the OO constructs that you have in the code, i.e. XML has no concept of inheritance. If your class library is complicated in this regard, I would advise doing this.

Can you create an independent service that just uses your class library under it? By this I mean creating a new service and service interface, rather than turning a class library into a service interface.

+2
source

Source: https://habr.com/ru/post/1315513/


All Articles