fork download
  1. using System;
  2. using DAL.NotifierEntities;
  3. using Microsoft.AspNet.SignalR;
  4.  
  5. namespace TritronJudge.HUB
  6. {
  7. public class StandingHub : Hub
  8. {
  9. internal NotifierEntity NotifierEntity { get; private set; }
  10.  
  11. public void DispatchToClient()
  12. {
  13. Clients.All.broadcastMessage("Refresh");
  14. }
  15.  
  16. public void Initialize(String value)
  17. {
  18. NotifierEntity = NotifierEntity.FromJson(value);
  19. if (NotifierEntity == null)
  20. return;
  21. Action<String> dispatcher = (t) => { DispatchToClient(); };
  22. PushSqlDependency.Instance(NotifierEntity, dispatcher);
  23. }
  24.  
  25. }
  26. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(2,7): error CS0246: The type or namespace name `DAL' could not be found. Are you missing an assembly reference?
prog.cs(3,17): error CS0234: The type or namespace name `AspNet' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
prog.cs(7,32): error CS0246: The type or namespace name `Hub' could not be found. Are you missing an assembly reference?
prog.cs(9,18): error CS0246: The type or namespace name `NotifierEntity' could not be found. Are you missing an assembly reference?
Compilation failed: 4 error(s), 0 warnings
stdout
Standard output is empty