Exemple #1
0
 // here changed
 private static void EventsOnOnSend(object sender, TagEventArgs args)
 {
     ProtocolState.Socket.Write(args.Tag.OuterXml);
     //ProtocolState.Socket.Write(args.content);
 }
Exemple #2
0
 /// <summary>
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 public void Send(object sender, TagEventArgs args)
 {
     OnSend?.Invoke(sender, args);
 }
Exemple #3
0
 private static void EventsOnOnNewTag(object sender, TagEventArgs args)
 {
     State.Execute(args.Tag);
 }
Exemple #4
0
 /// <summary>
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 public void NewTag(object sender, TagEventArgs args)
 {
     OnNewTag?.Invoke(sender, args);
 }
Exemple #5
0
 /// <summary>
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 public void NewTag(object sender, TagEventArgs args)
 {
     OnNewTag?.Invoke(sender, args);
 }
Exemple #6
0
 /// <summary>
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 public void Send(object sender, TagEventArgs args)
 {
     OnSend?.Invoke(sender, args);
 }
Exemple #7
0
 /// <summary>
 ///     Send a message to the server via a Tag
 /// </summary>
 /// <param name="args">Event argument containing tag to send to the server</param>
 public void Send(TagEventArgs args)
 {
     ProtocolState.Events.Send(this, args);
 }
Exemple #8
0
 private void Events_OnSend(object sender, TagEventArgs e)
 {
     Write(e.Tag.ToString());
 }
Exemple #9
0
 /// <summary>
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 public void Send(object sender, TagEventArgs args)
 {
     if (OnSend != null)
     {
         OnSend(sender, args);
     }
 }
Exemple #10
0
 /// <summary>
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 public void NewTag(object sender, TagEventArgs args)
 {
     if (OnNewTag != null)
     {
         OnNewTag(sender, args);
     }
 }