public static BlobStorageManager Instance() { if (_instance == null) { _instance = new BlobStorageManager(); } return(_instance); }
/// <summary> /// This method should be called when we do a new pi server processing.This method will download respective file and update Table object. /// </summary> /// <param name="serverName"></param> public void ReInitialize(string serverName) { string filePath = Path.Combine( System.Environment.CurrentDirectory, "\\" + Constants.CLASS_SCHEDULE_STORAGE_FILE_PREFIX + serverName + Constants.CLASS_SCHEDULE_STORAGE_FILE_EXTENSION); if (!File.Exists(filePath)) { BlobStorageManager.Instance().DownloadFileFromBlob(Constants.CLASS_SCHEDULE_STORAGE_FILE_PREFIX + serverName, Constants.CLASS_SCHEDULE_STORAGE_FILE_EXTENSION, filePath); } // read table. tableCSV = GetDataTableFromCSV(filePath); }