Example #1
0
 public IoCContainer(IIocOptions options, IIoCProvider parentProvider = null)
 {
     Options = options ?? new IocOptions();
     if (parentProvider != null)
     {
         _parentProvider = parentProvider;
     }
 }
Example #2
0
        public static void Initialize(IIocOptions options = null)
        {
            if (Instance != null)
            {
                return;
            }

            // create a new ioc container - it will register itself as the singleton
            // ReSharper disable ObjectCreationAsStatement
            new IoCProvider(options);
            // ReSharper restore ObjectCreationAsStatement
        }
Example #3
0
 private IoCProvider(IIocOptions options)
 {
     _provider = new IoCContainer(options);
 }