public static void SetToTaskResp <TRes>(this DoResp <TRes> res, TaskResp <TRes> taskResp) where TRes : Resp, new() { taskResp.run_status = res.run_status; taskResp.resp = res.resp; }
public static void SetToTaskResp <TRes>(this DoResp <TRes> res, EventTaskResp <TRes> taskResp) //where TRes :new() { taskResp.run_status = res.run_status; taskResp.resp = res.resp; }