mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-06-13 22:48:42 +00:00
15 lines
470 B
C#
15 lines
470 B
C#
using Esiur.Resource;
|
|
|
|
/// <summary>
|
|
/// Observable sensor resource. Setting <c>value</c> raises a property-change notification that the
|
|
/// Esiur runtime propagates to every attached subscriber — the fan-out path under measurement.
|
|
/// (The generated property is named <c>Value</c>; subscribers filter on that name.)
|
|
/// </summary>
|
|
[Resource]
|
|
public partial class SensorResource : Resource
|
|
{
|
|
public int SensorId { get; set; }
|
|
|
|
[Export] public double value;
|
|
}
|