예제 #1
0
 public static void InitWithContainer(IUnityContainer container)
 {
     if (_instance != null)
     {
         throw new Exception("Cannot reinitialize the singleton");
     }
     else
     {
         _instance = new WaterDataImporter(container.Resolve <IWaterDataRepository>());
     }
 }
예제 #2
0
 public void Execute(IJobExecutionContext context)
 {
     WaterDataImporter.getInstance().UpdateWaterData();
 }