/// <summary>
 ///  Registers a namespace handler for use with a specific namespace.
 ///  A namespace is the same as a web URI that you might append to
 ///  any web server to get at some resource.
 /// </summary>
 /// <param name="ns">The namespace or path of the resource to be handled.</param>
 /// <param name="nsHandler">The IHttpNamespaceHandler implementation that will handle the request.</param>
 public void RegisterNamespace(string ns, IHttpNamespaceHandler nsHandler)
 {
     if (_nsModules.Contains(ns))
     {
         throw new Exception("The " + ns + " namespace is already registered.");
     }
     _nsModules.Add(ns, nsHandler);
 }
Beispiel #2
0
 /// <summary>
 ///  Registers a namespace handler for use with a specific namespace.
 ///  A namespace is the same as a web URI that you might append to
 ///  any web server to get at some resource.
 /// </summary>
 /// <param name="ns">The namespace or path of the resource to be handled.</param>
 /// <param name="nsHandler">The IHttpNamespaceHandler implementation that will handle the request.</param>
 public void RegisterNamespace(string ns, IHttpNamespaceHandler nsHandler)
 {
     if (_nsModules.Contains(ns))
     {
         throw new Exception("The " + ns + " namespace is already registered.");
     }
     _nsModules.Add(ns, nsHandler);
 }