Property Name
Namespace: Belay.Attributes
Assembly: Belay.Attributes.dll
Name
Gets or sets the name of the thread for identification and management. If not specified, a name is automatically generated based on the method name.
csharp
public string? Name { get; set; }
Property Value
Examples
[Thread(Name = "sensor_poller")]
public async Task StartSensorPollingAsync()
{
// Thread will be known as "sensor_poller" on the device
await ExecuteAsync("start_polling_thread()");
}
Remarks
Thread names are used for:
- Identifying threads in logs and diagnostics
- Managing thread lifecycle (start/stop/query)
- Inter-thread communication and synchronization