Click here to Skip to main content
15,886,199 members
Articles / Programming Languages / XML

A Custom ServiceHostFactory

Rate me:
Please Sign up or sign in to vote.
4.83/5 (4 votes)
8 Sep 2008CPOL2 min read 71.7K   1.4K   17  
A custom derivative of ServiceHostFactory to control how WCF service hosts are created.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyModule
{
    class MyHandler : System.Web.IHttpHandler
    {
        #region IHttpHandler Members

        public bool IsReusable
        {
            get { throw new NotImplementedException(); }
        }

        public void ProcessRequest(System.Web.HttpContext context)
        {
            //
        }

        #endregion
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Brazil Brazil
Yesterday C++, today C#.

Comments and Discussions