Exemplo 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>();
        }
Exemplo 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>();
        }