Access IPolicyList via ref
This commit is contained in:
Родитель
202f111d2d
Коммит
9c8125d333
|
@ -46,7 +46,7 @@ namespace Unity.Interception.ContainerIntegration
|
|||
/// <param name="implementationType">Type to register.</param>
|
||||
/// <param name="name">Name used to resolve the type object.</param>
|
||||
/// <param name="policies">Policy list to add policies to.</param>
|
||||
public override void AddPolicies(Type serviceType, Type implementationType, string name, IPolicyList policies)
|
||||
public override void AddPolicies<TPolicyList>(Type serviceType, Type implementationType, string name, ref TPolicyList policies)
|
||||
{
|
||||
AdditionalInterfacesPolicy policy =
|
||||
AdditionalInterfacesPolicy.GetOrCreate(policies, serviceType, name);
|
||||
|
|
|
@ -68,7 +68,7 @@ namespace Unity.Interception.ContainerIntegration
|
|||
/// <param name="implementationType">Type of concrete type being registered.</param>
|
||||
/// <param name="name">Name used to resolve the type object.</param>
|
||||
/// <param name="policies">Policy list to add policies to.</param>
|
||||
public override void AddPolicies(Type serviceType, Type implementationType, string name, IPolicyList policies)
|
||||
public override void AddPolicies<TPolicyList>(Type serviceType, Type implementationType, string name, ref TPolicyList policies)
|
||||
{
|
||||
if (IsInstanceInterceptor)
|
||||
{
|
||||
|
|
|
@ -58,7 +58,7 @@ namespace Unity.Interception.ContainerIntegration
|
|||
/// <param name="implementationType">Type to register.</param>
|
||||
/// <param name="name">Name used to resolve the type object.</param>
|
||||
/// <param name="policies">Policy list to add policies to.</param>
|
||||
public override void AddPolicies(Type serviceType, Type implementationType, string name, IPolicyList policies)
|
||||
public override void AddPolicies<TPolicyList>(Type serviceType, Type implementationType, string name, ref TPolicyList policies)
|
||||
{
|
||||
if (_explicitBehavior != null)
|
||||
{
|
||||
|
|
|
@ -65,7 +65,7 @@ namespace Unity.Interception.ContainerIntegration
|
|||
/// <param name="implementationType">Type to register.</param>
|
||||
/// <param name="name">Name used to resolve the type object.</param>
|
||||
/// <param name="policies">Policy list to add policies to.</param>
|
||||
public override void AddPolicies(Type serviceType, Type implementationType, string name, IPolicyList policies)
|
||||
public override void AddPolicies<TPolicyList>(Type serviceType, Type implementationType, string name, ref TPolicyList policies)
|
||||
{
|
||||
if (IsInstanceInterceptor)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче