コード例 #1
0
 /// <summary>
 /// Log statistic by fireing an SSIS event
 /// </summary>
 public void LogStatistic()
 {
     foreach (int key in _statistic.Keys)
     {
         _events.Fire(IsagEvents.IsagEventType.Status, _statistic[key].ToString());
     }
 }
コード例 #2
0
 public void FireEvent(IsagEvents events)
 {
     if (Parameter != null && Parameter.Length > 0)
     {
         events.Fire(EventType, Message, Parameter);
     }
     else
     {
         events.Fire(EventType, Message);
     }
 }
コード例 #3
0
 /// <summary>
 /// Fire event
 /// </summary>
 /// <param name="eventType">Isag event type</param>
 /// <param name="message">event message</param>
 public static void Log(IsagEvents.IsagEventType eventType, string message)
 {
     Events.Fire(eventType, message + DateTime.Now.ToString() + ":" + DateTime.Now.Millisecond.ToString());
 }