AK.F1.Timing.F1Timing.Live.ReadAndRecord C# (CSharp) Method

ReadAndRecord() public static method

Creates a live message reader using the specified authentication token and records the messages to the specified path.
/// Thrown when or is /// . /// /// Thrown when is of zero length. /// /// Thrown when an IO error occurs whilst creating the output file or connecting to the /// live-timing message stream. ///
public static ReadAndRecord ( AuthenticationToken token, string path ) : IMessageReader
token AuthenticationToken The authentication token.
path string The path to save the messages to.
return IMessageReader
            public static IMessageReader ReadAndRecord(AuthenticationToken token, string path)
                return new RecordingMessageReader(Read(token), path);