when we use WCF in asp we use [ServiceContract] and [OperationContract].what it means.I search in google about this but unable to understand.plz help to clear my vision about this.Thanks.
when we use WCF in asp we use [ServiceContract] and [OperationContract] .what it means.I
Share
These attributes helps the framework to expose the respective class/operation (methods) as a service on web.
Basically WCF gives you a flexibility of saying which classes/methods, etc. you want to expose on web as a service and which not. Thus these attributes do come in handy here.
If you rem when doing Nunit test cases, you write [TextFixture] for test cases because Nunit recognizes them that way.