Skip to content

UnityWeld.Ioc

Rory Dungan edited this page Jun 1, 2018 · 1 revision

DefaultWeldContainer

Implementation of IWeldContainerIoC to be used by defaults if no other type has been specified by WeldContainerAttribute This implementation only allows for IAdapter types with a constructor with no arguments

public class UnityWeld.Ioc.DefaultWeldContainer
    : IWeldContainerIoC

Methods

Type Name Summary
T Resolve()
T Resolve(Type type)

IWeldContainerIoC

Base type for weld containers, used by AdapterResolver to get the instance of adapters. Combine with the WeldContainerAttribute to use your implementation instead of DefaultWeldContainer

public interface UnityWeld.Ioc.IWeldContainerIoC

Methods

Type Name Summary
T Resolve()
T Resolve(Type type)

WeldContainerAttribute

Class use: Marks the class to be used as WeldContainer, and it will be responsible for creating the adapter instances Method use: If the class also has the attribute, and this method returns IWeldContainerIoC or an inherting type, the returned value will be used as the instance used by AdapterResolver

public class UnityWeld.Ioc.WeldContainerAttribute
    : Attribute, _Attribute