public static void StoreTaskForId(Task task, string id, TaskType type) { task.hostname = System.Net.Dns.GetHostName(); var dict_obj = ObjectUtils.ObjToDictObj(task); var tasktable = type.ToString(); var ts_response = TableStorage.UpmergeDictToTableStore(dict_obj, table: tasktable, partkey: master_pk, rowkey: id); GenUtils.LogMsg("status", "Scheduler.StoreTaskForId: " + id, null); }
public static void InitTaskForId(string id, TaskType type) { Scheduler.UnlockId(id, type); var task = new Task(id); var dict_obj = ObjectUtils.ObjToDictObj(task); var tasktable = type.ToString(); var ts_response = TableStorage.UpdateDictToTableStore(dict_obj, table: tasktable, partkey: master_pk, rowkey: id); var http_response = ts_response.http_response; GenUtils.LogMsg("status", "Scheduler.InitTaskForId: " + id, http_response.status.ToString()); }