private void OnServerError(RestHttpServer restHttpServer, Exception exception) { if (Error != null) { Error(this, exception); } }
public RestService(int port, bool useSsl, params string[] domains) { IsListening = false; IgnoreFaviconRequests = false; m_requestTree = new RestRequestTree(); UsingSsl = useSsl; m_httpServer = new RestHttpServer(port, useSsl, domains); m_httpServer.Message += OnServerMessage; m_httpServer.Error += OnServerError; m_httpServer.Request += OnHttpRequest; }
private void OnServerMessage(RestHttpServer restHttpServer, string message) { SendMessage(message); }