Browse Source

Remove not used code.

pull/179/head
Halil İbrahim Kalkan 9 years ago
parent
commit
bf93e746c9
  1. 14
      src/Volo.Abp.AutoMapper/Volo/Abp/AutoMapper/AbpAutoMapperModule.cs

14
src/Volo.Abp.AutoMapper/Volo/Abp/AutoMapper/AbpAutoMapperModule.cs

@ -22,11 +22,6 @@ namespace Volo.Abp.AutoMapper
var mapperAccessor = new MapperAccessor();
services.AddSingleton<IMapperAccessor>(_ => mapperAccessor);
services.AddSingleton<MapperAccessor>(_ => mapperAccessor);
services.Configure<AbpAutoMapperOptions>(options =>
{
options.Configurators.Add(CreateCoreMappings);
});
}
public override void OnApplicationInitialization(ApplicationInitializationContext context)
@ -103,14 +98,5 @@ namespace Volo.Abp.AutoMapper
context.MapperConfiguration.CreateAutoAttributeMaps(type);
}
}
private void CreateCoreMappings(IAbpAutoMapperConfigurationContext context)
{
//Will be done when localization system completed
//var localizationContext = IocManager.Resolve<ILocalizationContext>();
//configuration.CreateMap<ILocalizableString, string>().ConvertUsing(ls => ls?.Localize(localizationContext));
//configuration.CreateMap<LocalizableString, string>().ConvertUsing(ls => ls == null ? null : localizationContext.LocalizationManager.GetString(ls));
}
}
}

Loading…
Cancel
Save