Create or update an OperationContract on the fly

Is there a way to generate or update an OperationContract on the fly?

So for example:

  • The user presses a button on the control panel screen.
  • The web service or WCF service will be updated using the new feature.
  • Other users can then use the new feature from anywhere.

I saw that in action, however, I am not sure how to achieve this, I can only create or create an OperationContract while I am in Visual Studio, but not on the go, while the service is already hosted.

Please, help.

Many thanks

+3
source share
2 answers

You can use System.Reflection to build assemblies on the fly. Check out this link:

http://www.williamb.net/defining-and-hosting-wcf-service-contracts-at-runtime

0

SOAP. SOAP , WSDL. , , , , . , , = > , .

REST, REST , URI HTTP. . . , URI. URI . WCF , , .

, . . , , , , .

0

All Articles