Inheriting from a generic contract in WCF

后端 未结 3 1020
遥遥无期
遥遥无期 2021-01-12 12:13

More WCF woes... :)

All my workflows implement the same 3 methods. After a lot of copy and paste, I decided to make them inherit from the same interface:

<         


        
3条回答
  •  执笔经年
    2021-01-12 12:42

    You must use the standard way of defining generic types in configuration file if you want to use a service contract like IBasicContract

    It is written in the configuration file like this: IBasicContract`2[TRequest,TResponse]

    I also replied on my blog (www.lybecker.com/blog/) as you posted the question their too.

    :-) Anders Lybecker

提交回复
热议问题