AK.F1.Timing.Service.Program.ConvertIcs C# (CSharp) Method

ConvertIcs() public method

Converts the specified BBC ICS file to a race XML document expected by the service.
/// Thrown when is . /// /// Thrown when is of zero length. ///
public ConvertIcs ( string path, int startTimeOffset = -2 ) : void
path string The path of the ICS file.
startTimeOffset int The start time offset (in minutes).
return void
        public void ConvertIcs(string path, int startTimeOffset = -2)
        {
            try
            {
                IcsConverter.ToXDocument(path, startTimeOffset).Save(Console.Out);
            }
            catch (Exception exc)
            {
                Log.Error(exc);
            }
        }