Ejemplo n.º 1
0
 private void OnServerError(RestHttpServer restHttpServer, Exception exception)
 {
     if (Error != null)
     {
         Error(this, exception);
     }
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 private void OnServerMessage(RestHttpServer restHttpServer, string message)
 {
     SendMessage(message);
 }