Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Svc file works without codebehind?

Tags:

c#

wcf

svc

<%@ ServiceHost Language="C#" Debug="true" Service="FirstWcfService.Service1"%>

Im hosting my service at WAS using SVC file:

enter image description here

But as you can see it doesnt have CodeBehind Attrbiute as it should. and its working.

How is that ?

http://msdn.microsoft.com/en-us/library/aa967286.aspx

like image 893
Royi Namir Avatar asked Oct 16 '11 16:10

Royi Namir


1 Answers

The service class is compiled into one of the referenced assemblies. The service used is FirstWcfService.Service1 as defined in the svc file:

Service="FirstWcfService.Service1"

CodeBehind only matters to the tooling (Visual Studio). It doesn't matter at runtime, where the system will only look at what types are declared and used.

like image 110
driis Avatar answered Oct 12 '22 08:10

driis