예제 #1
0
        private static void GlobalSignalRaiser(Signal sig, DateTime time, string stack, string[] args)
        {
            if (((int)sig & 0xFFFF_0000) == 0)
            {
                return;                                // no internal
            }
            var dat = Serializer <SignalPayload> .Serialize(new SignalPayload(sig, time, stack, args));

            _signalBus.Enqueue(dat);
        }
예제 #2
0
        public static void SendData(PackedResult result)
        {
            if (!_isEnsured)
            {
                throw new InvalidOperationException("Not ensured");
            }

            Log.Information($"Data Sent: {result.Type}");

            var dat = Serializer <PackedResult> .Serialize(result);

            _dataBus.Enqueue(dat);
        }