Example #1
0
 /// <summary>
 /// Attempts to get the injected service of the specified type
 /// </summary>
 /// <param name="type">The type of service to fetch</param>
 /// <returns></returns>
 public static object Get(Type type)
 {
     return(IoCContainer.Get(type));
 }
Example #2
0
 /// <summary>
 /// Attempts to get the injected service of the specified type
 /// </summary>
 /// <typeparam name="T">The type of service to fetch</typeparam>
 /// <returns></returns>
 public static T Get <T>()
 {
     return(IoCContainer.Get <T>());
 }