Skip to content

Commit

Permalink
Merge pull request #110 from hadashiA/ku/expose-registration-builder
Browse files Browse the repository at this point in the history
Expose RegistrationBuilder constructor and allow inheritance
  • Loading branch information
hadashiA authored Feb 3, 2021
2 parents 912dd83 + 1d4834a commit 072f5da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VContainer/Assets/VContainer/Runtime/RegistrationBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public class RegistrationBuilder
protected List<Type> InterfaceTypes;
protected List<IInjectParameter> Parameters;

internal RegistrationBuilder(Type implementationType, Lifetime lifetime, List<Type> interfaceTypes = null)
public RegistrationBuilder(Type implementationType, Lifetime lifetime, List<Type> interfaceTypes = null)
{
ImplementationType = implementationType;
InterfaceTypes = interfaceTypes;
Lifetime = lifetime;
}

internal RegistrationBuilder(object instance)
public RegistrationBuilder(object instance)
{
ImplementationType = instance.GetType();
Lifetime = Lifetime.Scoped;
Expand Down

1 comment on commit 072f5da

@vercel
Copy link

@vercel vercel bot commented on 072f5da Feb 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.