Table of Contents

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 ILogger

The logger.

variableDataCache IVariableDataCache

The variable data cache.

Properties

Token

public IDisposable Token { get; }

Property Value

IDisposable

Methods

CreateChannel(string, bool, TimeSpan, HashSet<string>)

Creates the channel.

public IDisposable CreateChannel(string name, bool waitListener, TimeSpan timeout, HashSet<string> variableFilter)

Parameters

name string

The name.

waitListener bool

if set to true [wait listener].

timeout TimeSpan

The timeout.

variableFilter HashSet<string>

The variable filter.

Returns

IDisposable

RunAsync(TagChangedEventArgs, CancellationToken)

public Task RunAsync(TagChangedEventArgs args, CancellationToken token)

Parameters

args TagChangedEventArgs
token CancellationToken

Returns

Task

Events

TagChanged

Occurs when [tag changed].

public event EventHandler<TagChangedEventArgs>? TagChanged

Event Type

EventHandler<TagChangedEventArgs>