reef-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julia Wang (QIUHE)" <>
Subject RE: Question about taskIds
Date Thu, 27 Jul 2017 00:37:26 GMT
I guess you are talking about to get task id inside task. 

Both UpdateTaskHost and MapTaskHost constructor have tasked injected. So they are able to
access task id. But task id is not passed to map/update functions.

In map function and update function, if user wants, they can inject task id in the constructor:
[Parameter(typeof(TaskConfigurationOptions.Identifier))] string taskId

You will then able to access it inside the constructor. Here user means map/update function


-----Original Message-----
From: Julia Wang (QIUHE) [] 
Sent: Wednesday, July 26, 2017 5:27 PM
Subject: RE: Question about taskIds

Do you mean specify task id at user end in the driver? 

-----Original Message-----
From: Rogan Carr [] 
Sent: Wednesday, July 26, 2017 5:25 PM
Subject: Question about taskIds

Hi All,

Is there any way for a task to determine it's own ID? I've been digging through the code and
I haven't seen any examples of this. I can always inject in in the constructor, but I wanted
to see if I could get it for free.


View raw message