/// <summary>
 /// Gets the service object of the specified type.
 /// </summary>
 /// <param name="serviceType"></param>
 /// <returns></returns>
 public object GetService(Type serviceType)
 {
     using (new InterceptableServiceProviderContextScope())
     {
         return(_engine.GetService(serviceType));
     }
 }
Exemplo n.º 2
0
 public object GetService(Type serviceType, string name)
 {
     if (serviceType == null)
     {
         throw new ArgumentNullException(nameof(serviceType));
     }
     return(engine.GetService(serviceType, name));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Gets the service object of the specified type.
 /// </summary>
 /// <param name="serviceType"></param>
 /// <returns></returns>
 public object GetService(Type serviceType) => _engine.GetService(serviceType);
Exemplo n.º 4
0
 public object GetService(Type serviceType)
 {
     return(_engine.GetService(serviceType));
 }