Ejemplo n.º 1
0
 private void OnEventNext(Request e)
 {
     EventNext.EventInput input = new EventNext.EventInput();
     input.ID         = e.ID;
     input.EventPath  = e.Url;
     input.Properties = e.Header;
     input.Data       = e.Data;
     if (EnableLog(LogType.Debug))
     {
         string info = Newtonsoft.Json.JsonConvert.SerializeObject(input);
         Log(LogType.Debug, $"[{input.ID}]{e.Sesion.RemoteEndPoint} receive event data:{info}");
     }
     input.Token = new NetToken {
         Request = e, Server = e.Sesion.Server, Session = e.Sesion
     };
     EventCenter.Execute(input, new EventCompleted {
         Server = this, Request = e
     });
 }
Ejemplo n.º 2
0
 public void Execute()
 {
     EventCenter.Execute(Input, this);
 }