Class FlowVariableChannelListener
- Namespace
- CMS.Plugin.FlowManagement.Abstractions.FlowBusiness
- Assembly
- CMS.Plugin.FlowManagement.Abstractions.dll
流程变量订阅通道
public class FlowVariableChannelListener : IVariableChannelListener
- Inheritance
-
FlowVariableChannelListener
- Implements
-
IVariableChannelListener
- Inherited Members
Constructors
FlowVariableChannelListener(ILogger, IVariableDataCache)
Initializes a new instance of the FlowVariableChannelListener class.
public FlowVariableChannelListener(ILogger logger, IVariableDataCache variableDataCache)
Parameters
logger
ILoggerThe logger.
variableDataCache
IVariableDataCacheThe variable data cache.
Properties
Token
public IDisposable Token { get; }
Property Value
Methods
CreateChannel(string, bool, TimeSpan, HashSet<string>)
Creates the channel.
public IDisposable CreateChannel(string name, bool waitListener, TimeSpan timeout, HashSet<string> variableFilter)
Parameters
name
stringThe name.
waitListener
boolif set to
true
[wait listener].timeout
TimeSpanThe timeout.
variableFilter
HashSet<string>The variable filter.
Returns
RunAsync(TagChangedEventArgs, CancellationToken)
public Task RunAsync(TagChangedEventArgs args, CancellationToken token)
Parameters
args
TagChangedEventArgstoken
CancellationToken
Returns
Events
TagChanged
Occurs when [tag changed].
public event EventHandler<TagChangedEventArgs>? TagChanged
Event Type
- EventHandler<TagChangedEventArgs>