Is there any reason to support the WCF interface in a separate file?

Just a personal style, I think, but I don’t like having 2 files for my WCF services. I like to copy / paste the interface into the .cs file, so I only need to deal with one file.

Any dangers in doing so?

+3
source share
2 answers

There are no dangers per se - but there are times when it is very useful to have a separate assembly with your service, work and data contracts (only contracts, interfaces, basically) - when you need to share between the server and the client side.

( , ), .

: (, , ), , . , .

( : ) ( ) .

+3

, . . - . WCF. "" .

Testivus: " () ; ".

+1

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


All Articles