StaticValueProvider 与常量有何不同?

How is a StaticValueProvider different from a constant?

根据this page

StaticValueProvider allows you to provide a static value to your pipeline. The value is available during pipeline construction, so you can use the value to change your pipeline's workflow graph.

Use StaticValueProvider when you know the value ahead of time. See the StaticValueProvider section for examples.

虽然这听起来像是一个常数。

你说得对,它作为一个常量运行,但它是一个单独的类型,因此它可以作为 ValueProvider<> 类型传递给需要这个的 functions/interfaces。