Skip to content

Commit

Permalink
house cleaning, before 2nd IoC package support
Browse files Browse the repository at this point in the history
  • Loading branch information
dbones committed Jun 2, 2013
1 parent 376a618 commit ba5c8fa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/Boxes.Integration/BoxesWrapperBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected BoxesWrapperBase(TContainer container)
protected abstract void Initalise(TContainer container);

/// <summary>
/// access to the container (builder in the case of Autofac?)
/// access to the container (kernel in the case of Ninject)
/// </summary>
protected virtual TContainer Container { get; private set; }

Expand Down
3 changes: 2 additions & 1 deletion src/Boxes.Integration/ContainerSetup/IBoxesContainerSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ public interface IBoxesContainerSetup
/// </summary>
/// <typeparam name="TLifeStyle">The lifestyle manager to use</typeparam>
/// <typeparam name="TInterface">The Dependency interface to register with the lifecycle</typeparam>
[Obsolete("use the other overload")]
void RegisterLifeStyle<TLifeStyle, TInterface>();

/// <summary>
/// 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)
/// </summary>
/// <param name="registration">The registration with details on how setup the IoC with the types which match the where clause</param>
void RegisterLifeStyle(Registration registration);
Expand Down
2 changes: 1 addition & 1 deletion src/Boxes.Integration/LoaderProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace Boxes.Integration
using Loading;

/// <summary>
/// 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
/// </summary>
internal class LoaderProxy : ILoader
Expand Down
24 changes: 1 addition & 23 deletions src/Boxes.Integration/ProcessPackageContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

0 comments on commit ba5c8fa

Please sign in to comment.