<%@ ServiceHost Language="C#" Debug="true" Service="FirstWcfService.Service1"%>
Run Code Online (Sandbox Code Playgroud)
我使用SVC文件在WAS托管我的服务:
但正如你所看到的那样,它没有应有的CodeBehind Attrbiute.和它的工作.
那个怎么样 ?
服务类被编译到其中一个引用的程序集中.使用的服务是FirstWcfService.Service1
在svc文件中定义的:
Service="FirstWcfService.Service1"
Run Code Online (Sandbox Code Playgroud)
CodeBehind仅对工具(Visual Studio)有用.它在运行时无关紧要,系统只会查看声明和使用的类型.
归档时间: |
|
查看次数: |
4004 次 |
最近记录: |