예제 #1
0
 protected override void EmitBatch(IEnumerable <LogEvent> events)
 {
     foreach (var logEvent in events)
     {
         IfxEvent.Log(logEvent.GetIfxEvent(_formatter));
     }
 }
예제 #2
0
        /// <summary>
        /// This sample illustrates how to emit an event that is derived from Ifx PartA.
        /// </summary>
        public static void PartADerivedEventSample()
        {
            // MyEvent is defined in PartC.bond.
            SampleIfx.MyEvent myEvent = new SampleIfx.MyEvent
            {
                PartCField1 = "PartC Field 1",
                PartCField2 = "PartC Field 2"
            };

            IfxEvent.Log(myEvent);
        }
예제 #3
0
        public void Emit(LogEvent logEvent)
        {
            var e = logEvent.GetIfxEvent(_formatter);

            IfxEvent.Log(e);
        }