Interface IWorkerMapper<T>
Assembly: Holoride.ElasticSDK.Runtime.dll
Syntax
public interface IWorkerMapper<T> : IWorkerMapper
Type Parameters
Methods
Map(IPipelineWorker, CancellationToken)
This method maps the data from the connected worker to the type defined by the DataMappingProviderInfoAttribute.
Declaration
UniTask<T> Map(IPipelineWorker worker, CancellationToken cancellationToken = null)
Parameters
| Type |
Name |
Description |
| IPipelineWorker |
worker |
|
| CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| UniTask<><T> |
|
Map(IPipelineWorker, GlobalPosition, CancellationToken)
This method maps the data from the connected worker at the position to the type defined by the DataMappingProviderInfoAttribute.
Declaration
UniTask<T> Map(IPipelineWorker worker, GlobalPosition position, CancellationToken cancellationToken = null)
Parameters
Returns
| Type |
Description |
| UniTask<><T> |
|