Aperea.Infrastructure.IoC.WebApiDependencyScope.GetService C# (CSharp) Method

GetService() public method

public GetService ( Type serviceType ) : object
serviceType System.Type
return object
        public object GetService(Type serviceType)
        {
            if (_container == null)
                throw new ObjectDisposedException("this", "This scope has already been disposed.");

            return _container.TryGetInstance(serviceType);
        }