public static void InitWithContainer(IUnityContainer container)
 {
     if (_instance != null)
     {
         throw new Exception("Cannot reinitialize the singleton");
     }
     else
     {
         _instance = new DroughtMonitorImporter(container.Resolve<IDroughtMonitorRepository>());
     }
 }
 public static void InitWithContainer(IUnityContainer container)
 {
     if (_instance != null)
     {
         throw new Exception("Cannot reinitialize the singleton");
     }
     else
     {
         _instance = new DroughtMonitorImporter(container.Resolve <IDroughtMonitorRepository>());
     }
 }
Exemple #3
0
 public void Execute(IJobExecutionContext context)
 {
     DroughtMonitorImporter.getInstance().RunDMImport(DateTime.Now);
 }