Esempio n. 1
0
        public static void Init()
        {
            Creator = new UnityCreator(new UnityContainer().RegisterType <ILog, Logger>());
            Subscribers.Current.WithCreator(Creator)
            .WithAssembly <Bootstrap>().Subscribe <ConsoleEvent>();

            CurrentPublishers = Publishers.Current.WithCreator(Creator)
                                .WithAssembly <Bootstrap>();
        }
Esempio n. 2
0
        public static void Init()
        {
            Creator = new UnityCreator(new UnityContainer().RegisterType<ILog, Logger>());
            Subscribers.Current.WithCreator(Creator)
                .WithAssembly<Bootstrap>().Subscribe<ConsoleEvent>();

            CurrentPublishers = Publishers.Current.WithCreator(Creator)
                .WithAssembly<Bootstrap>();
        }