public PreviewGeneratorFactory( PreviewSettings settings) { if (settings == null) { throw new ArgumentNullException("settings"); } _settings = settings; }
public PreviewGenerator(PreviewSettings settings, StreamHelper streamHelper = null) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } _settings = settings; _streamHelper = streamHelper ?? new StreamHelper(); }
public PreviewContext() { TokenSource = new CancellationTokenSource(); Settings = new PreviewSettings(); }