Пример #1
0
 public void Run(string[] commandLineArgs)
 {
     AppComThread.Instance.Execute((sc) =>
     {
         ArgContextSetter.Set(sc, commandLineArgs);
     });
     base.Run();
 }
Пример #2
0
        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            _esapiServ = new ESAPIService(() => VMS.TPS.Common.Model.API.Application.CreateApplication());
            //args = ContextIO.ReadArgsFromFile(@"context.txt");

            if (_args != null)
            {
                _esapiServ.Execute(sac =>
                {
                    ArgContextSetter.Set(sac, _args);
                });
            }

            _ea = Container.Resolve <IEventAggregator>();
            containerRegistry.RegisterInstance(this._esapiServ);
            containerRegistry.RegisterInstance(this.Container);
        }
Пример #3
0
 public void SetContextFromArguments(string[] args)
 {
     ArgContextSetter.Set(this, args);
 }