Class AioCloudEventBuilder
- Namespace
- Azure.Iot.Operations.Connector.CloudEvents
- Assembly
- Azure.Iot.Operations.Connector.dll
Builds AIO CloudEvents according to the message_correlation.md specification.
public static class AioCloudEventBuilder
- Inheritance
-
AioCloudEventBuilder
- Inherited Members
Methods
Build(Device, string, string, Asset, AssetDataset, string, string?, MessageSchemaReference?)
Builds AIO CloudEvent for a specific asset and dataset combination.
public static AioCloudEvent Build(Device device, string deviceName, string endpointName, Asset asset, AssetDataset dataset, string assetName, string? protocolSpecificIdentifier = null, MessageSchemaReference? messageSchemaReference = null)
Parameters
deviceDeviceADR Device model.
deviceNamestringDevice name for fallback in source/subject generation.
endpointNamestringEndpoint name from the asset's deviceRef.
assetAssetADR Asset model.
datasetAssetDatasetADR AssetDataset model.
assetNamestringAsset name.
protocolSpecificIdentifierstringOptional protocol specific identifier.
messageSchemaReferenceMessageSchemaReferenceOptional message schema reference reported to ADR. Used to construct the aio-sr:// DataSchema URI.
Returns
- AioCloudEvent
Generated AIO CloudEvent.
Build(Device, string, string, Asset, AssetEvent, string, string, string?, MessageSchemaReference?)
Builds AIO CloudEvent for a specific asset and event combination.
public static AioCloudEvent Build(Device device, string deviceName, string endpointName, Asset asset, AssetEvent assetEvent, string assetName, string eventGroupName, string? protocolSpecificIdentifier = null, MessageSchemaReference? messageSchemaReference = null)
Parameters
deviceDeviceADR Device model.
deviceNamestringDevice name for fallback in source/subject generation.
endpointNamestringEndpoint name from the asset's deviceRef.
assetAssetADR Asset model.
assetEventAssetEventADR AssetEvent model.
assetNamestringAsset name for fallback in subject generation.
eventGroupNamestringEvent group name.
protocolSpecificIdentifierstringOptional protocol specific identifier.
messageSchemaReferenceMessageSchemaReferenceOptional message schema reference reported to ADR. Used to construct the aio-sr:// DataSchema URI.
Returns
- AioCloudEvent
Generated AIO CloudEvent.