Ejemplo n.º 1
0
        public IRootResolver CreateResolver(bool validateRegistrations)
        {
            var resolver = new EventFlowIoCResolver(_registrations, true);

            if (validateRegistrations)
            {
                resolver.ValidateRegistrations();
            }

            var bootstrapper = resolver.Resolve <IBootstrapper>();

            bootstrapper.Start();

            return(resolver);
        }
        public IRootResolver CreateResolver(bool validateRegistrations)
        {
            var resolver = new EventFlowIoCResolver(
                new ConcurrentDictionary <int, object>(),
                _registrations,
                true);

            if (validateRegistrations)
            {
                resolver.ValidateRegistrations();
            }

            var bootstrapper = resolver.Resolve <IBootstrapper>();

            bootstrapper.Start();

            return(resolver);
        }
        public IRootResolver CreateResolver(bool validateRegistrations)
        {
            var resolver = new EventFlowIoCResolver(
                new ConcurrentDictionary <int, object>(),
                _registrations,
                true);

            if (validateRegistrations)
            {
                resolver.ValidateRegistrations();
            }

            var bootstrapper = resolver.Resolve <IBootstrapper>();

#pragma warning disable 618
            // TODO: Figure out bootstrapping alternative for 1.0
            bootstrapper.Start();
#pragma warning restore 618

            return(resolver);
        }