Пример #1
0
 /// <summary>
 /// Gest the service object specified with the specified type
 /// </summary>
 /// <typeparam name="T">Service type</typeparam>
 /// <returns>The requested service object</returns>
 public T GetService <T>()
 {
     return(DefaultContainer.GetService <T>());
 }
Пример #2
0
 /// <summary>
 /// Gest the service object specified with the input parameter
 /// </summary>
 /// <param name="service">Type of the service</param>
 /// <returns>Service object, or null, if the specified service not found</returns>
 public object GetService(Type service)
 {
     return(DefaultContainer.GetService(service));
 }