Exemplo n.º 1
0
 /// <summary>
 /// Resolves all.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="containerName">Name of the container.</param>
 /// <returns></returns>
 static public IEnumerable <T> ResolveAll <T>(string containerName)
 {
     UnityHelper.ResolveContainer(containerName);
     return(UnityHelper._unityContainers[containerName].ResolveAll <T>());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Resolves the specified container name.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="containerName">Name of the container.</param>
 /// <returns></returns>
 static public T Resolve <T>(string containerName)
 {
     UnityHelper.ResolveContainer(containerName);
     return(UnityHelper._unityContainers[containerName].Resolve <T>());
 }