Exemple #1
0
 /// <summary>
 /// Clean up and remove all handlers that were added earlier.
 /// </summary>
 public virtual void Close()
 {
     foreach (RestStreamHandler h in _handlers)
     {
         _httpd.RemoveStreamHandler(h.HttpMethod, h.Path);
     }
     _handlers = null;
     foreach (KeyValuePair <string, IHttpAgentHandler> h in _agents)
     {
         _httpd.RemoveAgentHandler(h.Key, h.Value);
     }
     _agents = null;
 }