namespace Wayne.Lib
{
///
/// Factory to create ServiceContainer.
///
public static class ServiceContainerFactory
{
///
/// Creates new service container.
///
/// New service container.
public static IServiceContainer Create()
{
return new ServiceContainer();
}
///
/// Creates new service container with a parent service locator from where the newly created service container
/// can look for services if it does not find them in its own container.
///
/// Parent service container.
/// New service container.
public static IServiceContainer Create(IServiceLocator parentServiceLocator)
{
return new ServiceContainer(parentServiceLocator);
}
}
}