Table of Contents

Interface IPolicyList

Namespace
Unity.Policy
Assembly
Unity.Abstractions.dll

A custom collection over object objects.

public interface IPolicyList
Extension Methods

Methods

Clear(Type, string, Type)

Remove specific policy from the list

void Clear(Type type, string name, Type policyInterface)

Parameters

type Type

Type of the registration

name string

Name of the registration

policyInterface Type

Type of policy to be removed

Get(Type, string, Type)

Get policy

object Get(Type type, string name, Type policyInterface)

Parameters

type Type

Type of the registration

name string

Name of the registration

policyInterface Type

Type of policy to retrieve

Returns

object

Instance of the policy or null if none found

Get(Type, Type)

Get default policy for the type

object Get(Type type, Type policyInterface)

Parameters

type Type

Type of the registration

policyInterface Type

Type of policy to retrieve

Returns

object

Instance of the policy or null if none found

Set(Type, string, Type, object)

Set policy

void Set(Type type, string name, Type policyInterface, object policy)

Parameters

type Type

Type of the registration

name string

Name of the registration

policyInterface Type

Type of policy to be set

policy object

Policy instance to be set

Set(Type, Type, object)

Set default policy for the type

void Set(Type type, Type policyInterface, object policy)

Parameters

type Type

Type of the registration

policyInterface Type

Type of policy to be set

policy object

Policy instance to be set