/// <summary> /// Logs an object implementing <see cref="IFlightEventInfo" /> /// with a failure indication. /// </summary> /// <param name="eventInfo">The event information.</param> /// <param name="isError">Indicates whether the operation succeeded or failed.</param> public void Log(IFlightEventInfo eventInfo, bool isError) { FlightEvent flightEvent; flightEvent = new FlightEvent(); flightEvent.TimeUtc = SysTime.ExternalNow; flightEvent.OrganizationID = this.OrganizationID; flightEvent.UserID = this.UserID; flightEvent.SessionID = this.SessionID; flightEvent.Source = this.Source; flightEvent.SourceVersion = this.SourceVersion; flightEvent.Operation = eventInfo.SerializeOperation(); flightEvent.IsError = isError; flightEvent.Details = eventInfo.SerializeDetails(); Log(flightEvent); }
/// <summary> /// Logs an object implementing <see cref="IFlightEventInfo" />. /// </summary> /// <param name="eventInfo">The event information.</param> public void Log(IFlightEventInfo eventInfo) { Log(eventInfo, false); }