public void AddConfig(IAppModule appModule, MethodInfo methodInfo)
        {
            Type returnType             = methodInfo.ReturnType;
            ConfigCreatorAttribute attr = methodInfo.GetCustomAttribute <ConfigCreatorAttribute>();

            this.configTypeToRegistionMap[returnType] = new CreatorConfigRegistion(appModule, attr, methodInfo);
        }
        public void Handle(AppSetup appSetup, IAppModule appModule, MethodInfo method, Attribute attribute)
        {
            if (method.ReturnType == typeof(void))
            {
                return;
            }

            ConfigAppContainerBuilder builder = appSetup.GetAppContainerBuilder <ConfigAppContainerBuilder>();

            ConfigCreatorAttribute config = (ConfigCreatorAttribute)attribute;

            builder.AddConfig(appModule, method);
        }
 public CreatorConfigRegistion(IAppModule appModule, ConfigCreatorAttribute attribute, MethodInfo method)
 {
     this.appModule = appModule;
     this.attribute = attribute;
     this.method    = method;
 }