internal void CheckGlobalServices(Assembly assembly)
{
foreach (var type in assembly.GetTypes())
{
var attribute = type.GetCustomAttribute<GlobalServiceAttribute>();
if (attribute == null)
continue;
if(!serviceManager.HasGlobalService(type))
throw new Exception("Context does not instantiate global service "+type);
}
}