API_9.App_Start.UnityDependencyResolver.GetService C# (CSharp) Méthode

GetService() public méthode

public GetService ( Type serviceType ) : object
serviceType System.Type
Résultat object
        public object GetService(Type serviceType)
        {
            try
            {
                return container.Resolve(serviceType);
            }
            catch
            {
                return null;
            }
        }