private void Register <T1, T2>(string name = null, bool singlethon = false) { try { _componentsManager.RegisterType(typeof(T1), typeof(T2), name, singlethon); } catch (Exception ex) { _logger.Info("NvrService Register() Exception:" + ex.Message); string Message = "NvrService-NvrService Register-- Exception = " + ex.Message; //InsertBrokerOperationLog.AddProcessLog(Message); InsertIntegrationLog.AddProcessLogIntegration(Message);//jatin } }
private void Register <T1, T2>(string name = null, bool singlethon = false) { _componentsManager.RegisterType(typeof(T1), typeof(T2), name, singlethon); }