コード例 #1
0
        public void Start(string bootstrapperName, MarshalByRefObject remoteListener)
        {
            var domainSetup = AppDomain.CurrentDomain.SetupInformation;
            System.Environment.CurrentDirectory = domainSetup.ApplicationBase;
             
            // TODO -- need to handle exceptions gracefully here
            EventAggregator.Start((IRemoteListener) remoteListener);

            var application = new BottleServiceApplication();
            _runner = application.Bootstrap(bootstrapperName);
            _runner.Start();
        }
コード例 #2
0
 public void Activate(IEnumerable<IPackageInfo> packages, IPackageLog log)
 {
     _runner = new BottleServiceRunner(FindServices(log));
     _runner.Start();
 }