Example #1
0
        public override void Initialize <TTenantId, TUserId>()
        {
            IocManager.Resolve <Translation>().LocalizationSourceName =
                CmsConsts.LocalizationSourceName;

            //This code is used to register classes to dependency injection system for this assembly using conventions.
            IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());

            CustomDtoMapper.CreateMappings();
        }
Example #2
0
 public override void PostInitialize <TTenantId, TUserId>()
 {
     base.PostInitialize <TTenantId, TUserId>();
     CustomDtoMapper.CreateMappings();
 }