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