Ejemplo n.º 1
0
        private void Write(IKernelEvent e, int id)
        {
            var wrapper = new StreamKernelEvent
            {
                Id        = id,
                Event     = e,
                EventType = e.GetType().Name
            };
            var serialized = wrapper.Serialize();

            _output.Write(serialized);
        }
Ejemplo n.º 2
0
        private void Write(IKernelEvent kernelEvent, int correlationId)
        {
            if (kernelEvent is ReturnValueProduced rvp && rvp.Value is DisplayedValue)
            {
                return;
            }
            var wrapper = new StreamKernelEvent
            {
                Id        = correlationId,
                Event     = kernelEvent,
                EventType = kernelEvent.GetType().Name
            };
            var serialized = wrapper.Serialize();

            _output.Write(serialized);
        }