Example #1
0
        private void InitailizeBus(string asmName)
        {
            string logfile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "log4net.config");

            XmlConfigurator.ConfigureAndWatch(new FileInfo(logfile));

            assemblyName = asmName;

            CreateBootStrapper();

            log4net.GlobalContext.Properties["BusName"] = bootStrapper.GetType().Namespace;

            InitializeContainer();

            bootStrapper.BeginStart();

            logger.Debug("Starting bus");
            startable = bootStrapper.GetInstance <IStartable>();
        }