diff --git a/src/Boxes.Integration/BoxesWrapperBase.cs b/src/Boxes.Integration/BoxesWrapperBase.cs index c0d5ec4..85677d4 100644 --- a/src/Boxes.Integration/BoxesWrapperBase.cs +++ b/src/Boxes.Integration/BoxesWrapperBase.cs @@ -73,7 +73,7 @@ protected BoxesWrapperBase(TContainer container) protected abstract void Initalise(TContainer container); /// - /// access to the container (builder in the case of Autofac?) + /// access to the container (kernel in the case of Ninject) /// protected virtual TContainer Container { get; private set; } diff --git a/src/Boxes.Integration/ContainerSetup/IBoxesContainerSetup.cs b/src/Boxes.Integration/ContainerSetup/IBoxesContainerSetup.cs index 01761ff..30439ac 100644 --- a/src/Boxes.Integration/ContainerSetup/IBoxesContainerSetup.cs +++ b/src/Boxes.Integration/ContainerSetup/IBoxesContainerSetup.cs @@ -32,10 +32,11 @@ public interface IBoxesContainerSetup /// /// The lifestyle manager to use /// The Dependency interface to register with the lifecycle + [Obsolete("use the other overload")] void RegisterLifeStyle(); /// - /// Advanced way to register a type (can be as simple as does it implement a Dependency or to apply a filter) + /// Register a type (can be as simple as does it implement a Dependency or to apply a filter) /// /// The registration with details on how setup the IoC with the types which match the where clause void RegisterLifeStyle(Registration registration); diff --git a/src/Boxes.Integration/LoaderProxy.cs b/src/Boxes.Integration/LoaderProxy.cs index 7910c39..5baf740 100644 --- a/src/Boxes.Integration/LoaderProxy.cs +++ b/src/Boxes.Integration/LoaderProxy.cs @@ -17,7 +17,7 @@ namespace Boxes.Integration using Loading; /// - /// Loader proxy allows a thrid party class to see which new packages have + /// Loader proxy allows a third party class to see which new packages have /// been loaded /// internal class LoaderProxy : ILoader diff --git a/src/Boxes.Integration/ProcessPackageContext.cs b/src/Boxes.Integration/ProcessPackageContext.cs index 2fa0869..9480d76 100644 --- a/src/Boxes.Integration/ProcessPackageContext.cs +++ b/src/Boxes.Integration/ProcessPackageContext.cs @@ -53,30 +53,8 @@ public override int GetHashCode() public override bool Equals(object obj) { var temp = obj as ProcessPackageContext; - if (obj == null) return false; + if (temp == null) return false; return GetHashCode() == temp.GetHashCode(); } } - - - //TODO: look to remove - internal class ProcessPackageTypeContext - { - private readonly int _hash; - public ProcessPackageTypeContext(Package package, Type dependencyType) - { - Package = package; - DependencyType = dependencyType; - - _hash = package.GetHashCode() + dependencyType.GetHashCode(); - } - - public Package Package { get; private set; } - public Type DependencyType { get; private set; } - - public override int GetHashCode() - { - return _hash; - } - } } \ No newline at end of file