public Session(IConnection con) { _connection = con; _connection.UserCommand += new UserCommandEventHandler(ConnectionUserCommand); _outputParser = ObjectFactory.GetInstance<IOutputParser>(); this.SetContext(new StartContext(this)); }
public Session(IConnection con) { _connection = con; _connection.UserCommand += new UserCommandEventHandler(ConnectionUserCommand); _outputParser = ObjectFactory.GetInstance <IOutputParser>(); this.SetContext(new StartContext(this)); }
public BindingPane(BindingPackage package) : base(null) { StringCache stringCache = new StringCache(); this.package = package; this.outputParser = new WpfOutputParser(stringCache); this.viewModel = new BindingPaneViewModel(package.Telemetry, stringCache); this.control = new BindingPaneControl(this.package, this.viewModel); this.controller = new BindingPaneController(package, this.viewModel, this.control.TableControl); this.cancellationTokenSource = new CancellationTokenSource(); this.Caption = Resource.ToolWindow_Title; this.Content = this.control; this.ToolBarCommandTarget = this.controller; this.ToolBarLocation = (int)VSTWT_LOCATION.VSTWT_TOP; this.ToolBar = new CommandID(Constants.GuidBindingPaneCommandSet, Constants.BindingPaneToolbarId); }
/// <summary> /// Should be done on demand rather than during init /// </summary> private void GetOutputParsers() { IComponentModel componentModel = this.GetService <SComponentModel, IComponentModel>(); foreach (IOutputParserProvider provider in componentModel.GetExtensions <IOutputParserProvider>()) { try { IOutputParser outputParser = provider.GetOutputParser(); if (outputParser != null) { this.outputParsers.Add(outputParser); } } catch (Exception ex) { this.package.Telemetry.TrackException(ex); } } }
public SimpleProcessRun(IOutputParser standardOutputParser, IOutputParser standardErrorParser) { _standardOutputParser = standardOutputParser; _standardErrorParser = standardErrorParser; }
public ReportExecuter(IQueryExecutor queryExecutor, IOutputParser outputParser, IUnitOfWork unitOfWork) { _queryExecutor = queryExecutor; _userReportRepository = unitOfWork.Get<UserReport>(); //userReportRepository; _outputParser = outputParser; }