private object CreateService(IServiceContainer container, Type serviceType)
{
if (container != this)
{
return null;
}
if (typeof(SCommandManagerService) == serviceType)
{
return new CommandManagerServiceService(this);
}
if (typeof(SEventManager) == serviceType)
{
return new EventManagerService(this);
}
return null;
}