public static void Do(this CissyConfigBuilder cissyConfigBuilder) { mapperConfiguration = new MapperConfiguration(cfg => { MapperConfigurationExpressionList.ForEach(m => { m(cfg); }); }); if (appRunStatus == AppRunStatus.Delelopment) { mapperConfiguration.AssertConfigurationIsValid(); } mapper = mapperConfiguration.CreateMapper(); }
public static CissyConfigBuilder RegisterMapper(this CissyConfigBuilder cissyConfigBuilder, Action <IMapperConfigurationExpression> register) { MapperConfigurationExpressionList.Add(register); return(cissyConfigBuilder); }