Beispiel #1
0
        void IDependencyLoader.Load(IDependencyRegistry registry)
        {
            registry.RegisterInstance <IConfigViewer>(m_configViewer);
            registry.RegisterInstance <ILogProvider>(m_logProvider);

            registry.LoadFrom <Auth.DependencyLoader>();

            // If the user provided a type for their core loader, load from it
            // TODO: this seems kinda lame. Reconsider.
            if (m_dependencyLoaderType != null)
            {
                var method = typeof(IDependencyRegistry)
                             .GetMethod("LoadFrom")
                             .MakeGenericMethod(m_dependencyLoaderType);

                method.Invoke(registry, null);
            }
        }