Commits

Anonymous committed 3f70a81

Reading extended error info and passing it down to the
connected clients.

Comments (0)

Files changed (1)

src/Elmah.SignalR.Test/PostError.ashx.cs

     {
         public void ProcessRequest(HttpContext context)
         {
-            var error = Decode(context.Request.Params["error"]);
+            var error           = Decode(context.Request.Params["error"]);
+            var applicationName = context.Request.Params["applicationName"];
+            var handshakeToken  = context.Request.Params["handshakeToken"];
+
+            var source = ErrorsStore.Store[handshakeToken];
+            if (source == null) 
+                return;
 
             var js = new JavaScriptSerializer();
 
             var e = js.Deserialize<Error>(error);
-
-            Hub.GetClients<ElmahRHub>().notifyError(e);
+            var a = new Application {id = source.Id, name = applicationName, error = e};
+            Hub.GetClients<ElmahRHub>().notifyError(a);
         }
 
         public bool IsReusable