private void RegisterApi(IEnumerable <IApi> apis, IConfigurationRoot config) { foreach (var api in apis) { api.Init(config); var actions = api.GetActions(); if (actions != null) { _processor.RegisterActions(actions); } var readers = api.GetReaders(); if (readers != null) { _processor.RegisterReaders(readers); } } }