Multiple WCF services referencing the same data contracts

前端 未结 6 1740
被撕碎了的回忆
被撕碎了的回忆 2020-12-31 03:18

I am building a set of WCF services that share common data contracts (or entities if you prefer). These are simple data transfer objects that are decorated with DataContract

6条回答
  •  不知归路
    2020-12-31 03:46

    I happen to have multiple services that share objects on my end. I am not certain why you are having this problem. In my case, I am able to access the objects in this way. . . .

    SERVICE1 client = new SERVICE1()

    client.CommonLibrary.Address. . .

    SERVICE2 client2 = new SERVICE2()

    client2.CommonLibrary.Address . . . .

提交回复
热议问题