コード例 #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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        public IRootResolver CreateResolver(bool validateRegistrations)
        {
            var resolver = new EventFlowIoCResolver(_registrations, true);

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

            var bootstraps = OrderBootstraps(resolver.ResolveAll(typeof(IBootstrap)).Select(i => (IBootstrap)i));

            using (var a = AsyncHelper.Wait)
            {
                a.Run(StartAsync(bootstraps, CancellationToken.None));
            }

            return(resolver);
        }
コード例 #4
0
        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);
        }