Esempio n. 1
0
 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
     }
 }
Esempio n. 2
0
 private void Register <T1, T2>(string name = null, bool singlethon = false)
 {
     _componentsManager.RegisterType(typeof(T1), typeof(T2), name, singlethon);
 }