Fileless Activation of WCF Service in .NET 4.0(sankarsan.wordpress.com)

submitted by sankarsansankarsan(460) 1 year, 11 months ago

Fileless Activation of WCF Service in .NET 4.0 June 6, 2010 by sankarsan | Edit Every WCF service needs to have a host process.It can be a windows service,IIS or any other .NET program.This host process will create an instance of the System.ServiceModel.ServiceHost class or any custom class deriving from System.ServiceModel.ServiceHostBase.This host class will manage the service configurations, behaviors, channels and make it accessible to the outside world.When a service is hosted in IIS it behaves a little bit differently.Here we need to create a physical file with .svc extension in the virtual directory of the web server.This file actually points to the service class implementing the ServiceContract and System.ServiceModel.Activation.ServiceHostFactory or a derived class System.ServiceModel.Activation.ServiceHostFactoryBase.When IIS receives a request with that .svc file in URI the corresponding ServiceHostFactory creates an instance of the ServiceHost.The markup contained in a .svc file is shown below.....

add a comment |category: |Views: 66

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story