开发者

How to specify implemented Service Contract dll in WCF config

开发者 https://www.devze.com 2023-03-27 07:30 出处:网络
开发者_JS百科My service implementation is present in Calc.dll. WCF Service is present in Svc.dll I have added contract inside endpoint tag in the WCF app.config file of Svc.dll.
开发者_JS百科

My service implementation is present in Calc.dll.

WCF Service is present in Svc.dll

I have added contract inside endpoint tag in the WCF app.config file of Svc.dll.

<service behaviorConfiguration="Default" name="MySvc">
   <endpoint contract="Company.ICalc" .... />

How does WCF know that the service is implemented in Calc.dll? We have just specified the contract name.


In order for this to work, your svc.dll project must somehow reference calc.dll - and thus, the .NET / WCF runtime can find the specified namespace and class.

0

精彩评论

暂无评论...
验证码 换一张
取 消