The following example shows how to set the lifetime token handle in a host-side adapter.
下面的示例演示如何在宿主端适配器中设置生存期标记句柄。
If your pipeline passes custom types, you must acquire the token handle in all contract-to-view adapter classes that you implement.
如果管线传递自定义类型,则您必须在您实现的所有“协定到视图”适配器类中获得标记句柄。
Once you acquire the token handle, the system takes care of all lifetime management functions and requires no additional programming.
在获得标记句柄后,该系统处理所有生存期管理功能并且不需要进行额外编程。
Once you acquire the token handle, the system takes care of all lifetime management functions and requires no additional programming.
在获得标记句柄后,该系统处理所有生存期管理功能并且不需要进行额外编程。
应用推荐