public IoCContainer(IIocOptions options, IIoCProvider parentProvider = null) { Options = options ?? new IocOptions(); if (parentProvider != null) { _parentProvider = parentProvider; } }
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 }
private IoCProvider(IIocOptions options) { _provider = new IoCContainer(options); }