开发者

How to specify implemented Service Contract dll in WCF config

开发者_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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜