Service Rules
Service rules are used to bind services and devices. A rule is needed that device information can be accessed by the service plugin.
See the HumanOS® Runtime Manual to design rules.
The service rule configuration specifies the kind of rules to bind and unbind services.
Attribute | Description | Data Type |
---|---|---|
BindingRuleId | Id of the binding rule | System.Guid |
UnbindingRuleId | Id of the unbinding rule | System.Guid |
Type | Type of service rule
| EServiceRuleType |
SelectedDevices | List of device ids | System.Guid[] |
SelectedDrivers | List of driver ids | System.Guid[] |
IMPORTANT
If the BindingRuleId or the UnbindingRuleId is empty, the service rules are not created.
Example:
"ServiceRule": {
"BindingRuleId": "{8A80927A-B1F8-4505-B4BA-FB2DFED765E4}",
"UnbindingRuleId": "{1058566D-0787-48C3-95A5-235E9A55CCF3}",
"Type": "All"
}