This commit is contained in:
Eugene Sadovoi 2018-09-30 16:05:33 -04:00
Родитель 202f111d2d
Коммит 9c8125d333
4 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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)
{