API_9.App_Start.UnityDependencyResolver.GetService C# (CSharp) Method

GetService() public method

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