public static void RegisterComponents(ContainerBuilder containerBuilder) { try { NippsIoCHelper.RegisterDao <NippsParameterDao, IGenericDaoV2 <NippsParameter> >(containerBuilder); NippsIoCHelper.Register <NippsParameterLogicV2, INippsParameterLogicV2>(containerBuilder); } catch (Exception ex) { NLog.LogManager.GetCurrentClassLogger().Fatal(ex.ToString()); } }
public static void RegisterComponents(ContainerBuilder containerBuilder) { try { NippsIoCHelper.RegisterDao <NippsModuleDao, IGenericDaoV2 <NippsModule> >(containerBuilder); NippsIoCHelper.RegisterDao <NippsLogDao, IGenericDaoV2 <NippsLog> >(containerBuilder); NippsIoCHelper.Register <NippsModuleLogic, IGenericLogicV2 <NippsModule> >(containerBuilder); NippsIoCHelper.Register <NippsLogLogic, IGenericLogicV2 <NippsLog> >(containerBuilder); } catch (Exception ex) { NLog.LogManager.GetCurrentClassLogger().Fatal(ex); RestHelper.ReportCriticalError("LogManager", ex.ToString()); } }
public static void RegisterComponents(ContainerBuilder containerBuilder) { try { NippsIoCHelper.RegisterDao <UserDao, IGenericDao <User> >(containerBuilder); NippsIoCHelper.RegisterDao <ShaAndBase64Crypto, IGenericCrypto>(containerBuilder); NippsIoCHelper.RegisterDao <EMailLogic, IEMailLogic>(containerBuilder); NippsIoCHelper.Register <UserLogic, IUserLogic>(containerBuilder); } catch (Exception ex) { NLog.LogManager.GetCurrentClassLogger().Error(ex.ToString()); } }