Example #1
0
        public static void Initialize <T>() where T : class, IStartup, new()
        {
            T   startup   = new T();
            var container = IoCFactory.Create();

            startup.ConfigureServices(container);
        }
Example #2
0
 static ServiceLocator()
 {
     container = IoCFactory.Create();
 }