Creating WCF Services Using Dynamic Languages ​​and DLR

I was curious how anyone would use creating WCF-based services using a dynamic language like IronPython or IronRuby. These languages ​​have no concept of interfaces. How will someone define service contracts? Should we rely on static languages ​​for such tasks? I am a big fan of Python in particular and would like to know if this can be done at this point.

+3
source share
2 answers

I did some experiments - see my experiences on the blog .

The good news is that the WCF service can be fully written in IronPython. The bad news is that such a WCF service does not work in IIS because you cannot directly use the compiled IronPython code from C # or VB.

+2
source

IronPython has a new feature in 2.6 for creating regular .NET classes using Python class definition machines. A new feature is included by overriding clrtype in the metaclass. Then you can declare a class with a bunch of decorators, and the metaclass can create a new .NET type. As an example, we have a set of metaclasses that you can use (or customize) on the IronPython CodePlex website for version 2.6.1 .

w/WCF, , . , - Type.GetType(typeName).

+2

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


All Articles