public SlimerJsProcces(SlimerJsSettings slimerJsSettings)
 {
     if (slimerJsSettings == null) throw new ArgumentNullException(nameof(slimerJsSettings));
     _slimerJsSettings = slimerJsSettings;
     _slimerJsProcess = new Process() { EnableRaisingEvents = true, StartInfo = CreateProcessStartInfo() };
     _slimerErrors = new List<string>();
 }
Beispiel #2
0
        public SlimerJs(SlimerJsSettings slimerJsSettings, ISlimerJsProcessProvider slimerJsProcessProvider)
        {
            if (slimerJsSettings == null) throw new ArgumentNullException(nameof(slimerJsSettings));
            if (slimerJsProcessProvider == null) throw new ArgumentNullException(nameof(slimerJsProcessProvider));

            _slimerJsSettings = slimerJsSettings;
            _slimerJsProcessProvider = slimerJsProcessProvider;
        }
 public ISlimerJsProcces Create(SlimerJsSettings settings)
 {
     if (settings == null) throw new ArgumentNullException(nameof(settings));
     return new SlimerJsProcces(settings);
 }
Beispiel #4
0
 public SlimerJs(SlimerJsSettings slimerJsSettings):this(slimerJsSettings, new SlimerJsProcessProvider())
 {
 }