/// <summary> /// Constructs a container using the specified <see cref="IKernel"/> /// implementation. Rarely used. /// </summary> /// <remarks> /// This constructs sets the Kernel.ProxyFactory property to /// <see cref="Proxy.DefaultProxyFactory"/> /// </remarks> /// <param name="kernel"></param> public WindsorContainer(IKernel kernel, IComponentsInstaller installer) { _kernel = kernel; _kernel.ProxyFactory = new Proxy.ProxySmartFactory(); _installer = installer; }
/// <summary> /// Constructs with a given <see cref = "IProxyFactory" />. /// </summary> /// <param name = "proxyFactory">A instance of an <see cref = "IProxyFactory" />.</param> public WindsorContainer(IProxyFactory proxyFactory) { if (proxyFactory == null) { throw new ArgumentNullException("proxyFactory"); } kernel = new DefaultKernel(proxyFactory); installer = new DefaultComponentInstaller(); }
/// <summary> /// Constructs a container using the specified <see cref = "IKernel" /> /// implementation. Rarely used. /// </summary> /// <remarks> /// This constructs sets the Kernel.ProxyFactory property to /// <c>Proxy.DefaultProxyFactory</c> /// </remarks> /// <param name = "name">Container's name</param> /// <param name = "kernel">Kernel instance</param> /// <param name = "installer">Installer instance</param> public WindsorContainer(String name, IKernel kernel, IComponentsInstaller installer) { if (name == null) { throw new ArgumentNullException("name"); } if (kernel == null) { throw new ArgumentNullException("kernel"); } if (installer == null) { throw new ArgumentNullException("installer"); } this.name = name; this.kernel = kernel; this.kernel.ProxyFactory = new DefaultProxyFactory(); this.installer = installer; }
public WindsorContainer(IProxyFactory proxyFactory) { _kernel = new DefaultKernel(proxyFactory); _installer = new Installer.DefaultComponentInstaller(); }
/// <summary> /// Constructs a container using the specified <see cref = "IKernel" /> /// implementation. Rarely used. /// </summary> /// <remarks> /// This constructs sets the Kernel.ProxyFactory property to /// <c>Proxy.DefaultProxyFactory</c> /// </remarks> /// <param name = "kernel">Kernel instance</param> /// <param name = "installer">Installer instance</param> public WindsorContainer(IKernel kernel, IComponentsInstaller installer) : this(Guid.NewGuid().ToString(), kernel, installer) { }
/// <summary> /// Constructs a container using the specified <see cref = "IKernel" /> /// implementation. Rarely used. /// </summary> /// <remarks> /// This constructs sets the Kernel.ProxyFactory property to /// <c>Proxy.DefaultProxyFactory</c> /// </remarks> /// <param name = "kernel">Kernel instance</param> /// <param name = "installer">Installer instance</param> public WindsorContainer(IKernel kernel, IComponentsInstaller installer) : this(MakeUniqueName(), kernel, installer) { }
/// <summary> /// Constructs a container using the specified <see cref = "IKernel" /> /// implementation. Rarely used. /// </summary> /// <remarks> /// This constructs sets the Kernel.ProxyFactory property to /// <c>Proxy.DefaultProxyFactory</c> /// </remarks> /// <param name = "kernel">Kernel instance</param> /// <param name = "installer">Installer instance</param> public WindsorContainer(IKernel kernel, IComponentsInstaller installer) : this(AppDomain.CurrentDomain.FriendlyName + CastleUnicode + ++instanceCount, kernel, installer) { }
public AsyncInitializationContainer(IKernel kernel, IComponentsInstaller installer) : base(kernel, installer) { }
/// <summary> /// Constructs a container using the specified <see cref = "IKernel" /> /// implementation. Rarely used. /// </summary> /// <remarks> /// This constructs sets the Kernel.ProxyFactory property to /// <c>Proxy.DefaultProxyFactory</c> /// </remarks> /// <param name = "kernel">Kernel instance</param> /// <param name = "installer">Installer instance</param> public WindsorContainer(IKernel kernel, IComponentsInstaller installer) #if FEATURE_APPDOMAIN : this(AppDomain.CurrentDomain.FriendlyName + CastleUnicode + ++instanceCount, kernel, installer) #else : this(CastleUnicode + ++instanceCount, kernel, installer)