| Overload | Description |
|---|---|
| WriteValueAction<TValue>(SparkplugMetric,Type,Action<TValue>) | Modifies the metric for consuming values by a specified action, for the push data consumption model.
This method always makes the metric writable; however, its timestamp will not be writable, i.e. Sparkplug host applications will not be able to modify them. If you need a different behavior, use one of the WriteFunction(SparkplugMetric,Type,Func<SparkplugData,Boolean>) method overloads instead. This method does not change the readability access of the metric. By default, metrics are readable. If you need a metric that is writable but non-readable, combine this method with calling Readable(SparkplugMetric,Boolean) method with the 'readable' parameter set to The write operation defined by this method always succeeds. If you need support the option of failing the write operation to fail, use one of the WriteValueFunction<TValue>(SparkplugMetric,Type,Func<TValue,Boolean>) method overloads instead. Makes a metric that consumes the Sparkplug data using the write value action. Specify the declared type. |
| WriteValueAction<TValue>(SparkplugMetric,TypeCode,Action<TValue>) | Makes a metric that consumes the Sparkplug data using the write value action. Specify the declared type code. |
| WriteValueAction<TValue>(SparkplugMetric,SparkplugDataType,Action<TValue>) | Makes a metric that consumes the Sparkplug data using the write value action. Specify the Sparkplug data type. |
| WriteValueAction<TValue>(SparkplugMetric,Action<TValue>) | Makes a metric that consumes the Sparkplug data using the write value action. The declared type is specified using generic type parameter. |