cs-codex-dist-tests/Tools/OverwatchTranscript/Transcript.cs

21 lines
520 B
C#
Raw Normal View History

2024-07-25 14:00:51 +00:00
namespace OverwatchTranscript
{
public static class Transcript
{
public static ITranscriptWriter NewWriter()
{
return new TranscriptWriter(NewWorkDir());
}
public static ITranscriptReader NewReader(string transcriptFile)
{
return new TranscriptReader(NewWorkDir(), transcriptFile);
}
private static string NewWorkDir()
{
return Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
}
}
}