public PluginCompilationEngine(
            [NotNull] IStrategiesSourceRepository pluginSourceRepository,
            [NotNull] ICodeEditorService codeEditor,
            [NotNull] IPluginCompiler pluginCompiler,
            [NotNull] IPluginLocator pluginLocator)
        {
            if (pluginSourceRepository == null)
            {
                throw new ArgumentNullException(nameof(pluginSourceRepository));
            }
            if (codeEditor == null)
            {
                throw new ArgumentNullException(nameof(codeEditor));
            }
            if (pluginCompiler == null)
            {
                throw new ArgumentNullException(nameof(pluginCompiler));
            }
            if (pluginLocator == null)
            {
                throw new ArgumentNullException(nameof(pluginLocator));
            }

            _pluginSourceRepository = pluginSourceRepository;
            _codeEditor = codeEditor;
            _pluginCompiler = pluginCompiler;
            _pluginLocator = pluginLocator;
        }
Пример #2
0
        public PluginCompilationEngine(
            [NotNull] IStrategiesSourceRepository pluginSourceRepository,
            [NotNull] ICodeEditorService codeEditor,
            [NotNull] IPluginCompiler pluginCompiler,
            [NotNull] IPluginLocator pluginLocator)
        {
            if (pluginSourceRepository == null)
            {
                throw new ArgumentNullException(nameof(pluginSourceRepository));
            }
            if (codeEditor == null)
            {
                throw new ArgumentNullException(nameof(codeEditor));
            }
            if (pluginCompiler == null)
            {
                throw new ArgumentNullException(nameof(pluginCompiler));
            }
            if (pluginLocator == null)
            {
                throw new ArgumentNullException(nameof(pluginLocator));
            }

            _pluginSourceRepository = pluginSourceRepository;
            _codeEditor             = codeEditor;
            _pluginCompiler         = pluginCompiler;
            _pluginLocator          = pluginLocator;
        }
Пример #3
0
 public ErrorListViewModel(IErrorListView view, IDocumentService documentService, ICodeEditorService codeEditorService, IClipboardService clipboardService)
     : base(view)
 {
     DocumentService        = documentService;
     this.codeEditorService = codeEditorService;
     this.clipboardService  = clipboardService;
     gotoErrorCommand       = new DelegateCommand(GotoError, CanGotoError);
     copyErrorCommand       = new DelegateCommand(CopyError, CanCopyError);
 }