'Declaration<ExtensionAttribute()> <JetBrains.Annotations.NotNullAttribute()> Public Shared Function PollFunction( _ ByVal producer As ISparkplugProducer, _ ByVal pollFunction As Func(Of SparkplugPayload) _ ) As ISparkplugProducer
'UsageDim producer As ISparkplugProducer Dim pollFunction As Func(Of SparkplugPayload) Dim value As ISparkplugProducer value = ISparkplugProducerExtension.PollFunction(producer, pollFunction)
[Extension()] [JetBrains.Annotations.NotNull()] public static ISparkplugProducer PollFunction( ISparkplugProducer producer, Func<SparkplugPayload> pollFunction )
[Extension()] [JetBrains.Annotations.NotNull()] public: static ISparkplugProducer^ PollFunction( ISparkplugProducer^ producer, Func<SparkplugPayload^>^ pollFunction )
Parameters
- producer
- The Sparkplug producer that will perform the operation.
The value of this parameter cannot be
null(Nothingin Visual Basic). - pollFunction
- The function that polls for the data and returns the payload be to be published.
The value of this parameter cannot be
null(Nothingin Visual Basic).
Return Value
This method never returns null (Nothing in Visual Basic).