예제 #1
0
 private void Revoke(Tick tick)
 {
     var revoke = _revoke;
     if (revoke != null) revoke(tick.Subject);
 }
 private static IEnumerable<string> Encode(Tick tick)
 {
     yield return tick.Trigger + " " + tick.Subject;
     yield return tick.Serial.ToString();
     yield return tick.Publication.ToShortDateString() + " " + tick.Publication.ToLongTimeString();
     yield return tick.Data;
 }
예제 #3
0
 private void Trace(Tick tick)
 {
     //            System.Diagnostics.Trace.WriteLine(tick.Subject+" "+tick.Trigger);
 }
        private void Publish(Tick tick)
        {
            _log("Publish "+tick.Serial);
            var pubsub = _pubsub;
            if (pubsub == null) return;

            //            Trace.WriteLine("0MQ TICK XX " + tick.Serial + " " + tick.Subject + " " + tick.Trigger);

            Send(pubsub, Encode(tick));
        }