コード例 #1
0
        public PreviewGeneratorFactory(
            PreviewSettings settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            _settings = settings;
        }
コード例 #2
0
        public PreviewGenerator(PreviewSettings settings, StreamHelper streamHelper = null)
        {
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            _settings     = settings;
            _streamHelper = streamHelper ?? new StreamHelper();
        }
コード例 #3
0
 public PreviewContext()
 {
     TokenSource = new CancellationTokenSource();
     Settings    = new PreviewSettings();
 }