Method AutomaticTagGenerationAsync
- Namespace
- Kepware.Api.ClientHandler
- Assembly
- Kepware.Api.dll
AutomaticTagGenerationAsync(string, string, CancellationToken)
Initiates the Automatic Tag Generation service for a specified channel and device.
public Task<KepServerJobPromise> AutomaticTagGenerationAsync(string channelName, string deviceName, CancellationToken cancellationToken = default)
Parameters
channelName
stringThe name of the channel.
deviceName
stringThe name of the device.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<KepServerJobPromise>
A task that represents the asynchronous operation. The task result contains a KepServerJobPromise.
Remarks
Jobs are automatically cleaned up after their wait time has expired. This wait time is configurable.
Note: Not all drivers support Automatic Tag Generation. Tip for TKE: If using file sources for Automatic Tag Generation files must be located in the <installation_directory>/user_data directory. All files in the user_data directory must be world readable or owned by the TKE user and group that were created during installation, by default this is tkedge.
AutomaticTagGenerationAsync(string, string, TimeSpan, CancellationToken)
Initiates the Automatic Tag Generation service for a specified channel and device.
public Task<KepServerJobPromise> AutomaticTagGenerationAsync(string channelName, string deviceName, TimeSpan timeToLive, CancellationToken cancellationToken = default)
Parameters
channelName
stringThe name of the channel.
deviceName
stringThe name of the device.
timeToLive
TimeSpanThe job's desired Time to Live (timeout).
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<KepServerJobPromise>
A task that represents the asynchronous operation. The task result contains a KepServerJobPromise.
Remarks
Jobs are automatically cleaned up after their wait time has expired. This wait time is configurable.
Note: Not all drivers support Automatic Tag Generation. Tip for TKE: If using file sources for Automatic Tag Generation files must be located in the <installation_directory>/user_data directory. All files in the user_data directory must be world readable or owned by the TKE user and group that were created during installation, by default this is tkedge.