コード例 #1
0
 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>();
 }
コード例 #2
0
ファイル: SlimerJS.cs プロジェクト: MiningCat/NetSlimerJS
        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;
        }
コード例 #3
0
 public ISlimerJsProcces Create(SlimerJsSettings settings)
 {
     if (settings == null) throw new ArgumentNullException(nameof(settings));
     return new SlimerJsProcces(settings);
 }
コード例 #4
0
ファイル: SlimerJS.cs プロジェクト: MiningCat/NetSlimerJS
 public SlimerJs(SlimerJsSettings slimerJsSettings):this(slimerJsSettings, new SlimerJsProcessProvider())
 {
 }