Flood.Modules.ModuleManager.CheckGlobalServices C# (CSharp) Method

CheckGlobalServices() private method

private CheckGlobalServices ( Assembly assembly ) : void
assembly System.Reflection.Assembly
return void
        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);
            }
        }