Exemplo n.º 1
0
 public Session(IConnection con)
 {
     _connection = con;
     _connection.UserCommand += new UserCommandEventHandler(ConnectionUserCommand);
     _outputParser = ObjectFactory.GetInstance<IOutputParser>();
     this.SetContext(new StartContext(this));
 }
Exemplo n.º 2
0
 public Session(IConnection con)
 {
     _connection              = con;
     _connection.UserCommand += new UserCommandEventHandler(ConnectionUserCommand);
     _outputParser            = ObjectFactory.GetInstance <IOutputParser>();
     this.SetContext(new StartContext(this));
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        /// <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);
                }
            }
        }
Exemplo n.º 5
0
 public SimpleProcessRun(IOutputParser standardOutputParser, IOutputParser standardErrorParser)
 {
     _standardOutputParser = standardOutputParser;
     _standardErrorParser = standardErrorParser;
 }
Exemplo n.º 6
0
 public ReportExecuter(IQueryExecutor queryExecutor, IOutputParser outputParser, IUnitOfWork unitOfWork)
 {
     _queryExecutor = queryExecutor;
     _userReportRepository = unitOfWork.Get<UserReport>(); //userReportRepository;
     _outputParser = outputParser;
 }