Interface IEdgeRegistryMessageSchemaProvider
- Namespace
- Azure.Iot.Operations.Connector
- Assembly
- Azure.Iot.Operations.Connector.dll
The interface for a connector to request message schema information about datasets and/or events that is registered with the Edge Registry rather than the Schema Registry.
public interface IEdgeRegistryMessageSchemaProvider
Remarks
Provide an implementation of this interface instead of IMessageSchemaProvider when your deployment of AIO has the Edge Registry service. When both are provided, this one wins.
Methods
GetMessageSchemaAsync(string, Device, string, string, Asset, string, AssetDataset, CancellationToken)
Get the message schema associated with this dataset. If provided, the connector will register this message schema prior to forwarding any dataset telemetry for this dataset.
Task<ConnectorEdgeRegistryMessageSchema?> GetMessageSchemaAsync(string deviceName, Device device, string inboundEndpointName, string assetName, Asset asset, string datasetName, AssetDataset dataset, CancellationToken cancellationToken = default)
Parameters
deviceNamestringThe name of the device this dataset will be sampled from.
deviceDeviceThe device this dataset will be sampled from.
inboundEndpointNamestringThe name of the inbound endpoint this dataset will be sampled from.
assetNamestringThe name of the asset this dataset belongs to.
assetAssetThe asset this dataset belongs to.
datasetNamestringThe name of the dataset.
datasetAssetDatasetThe dataset.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ConnectorEdgeRegistryMessageSchema>
The message schema to register for data sampled from this dataset. If null, no message schema will be registered for this dataset.
GetMessageSchemaAsync(string, Device, string, string, Asset, string, string, AssetEvent, CancellationToken)
Get the message schema associated with this event. If provided, the connector will register this message schema prior to forwarding any event telemetry for this event.
Task<ConnectorEdgeRegistryMessageSchema?> GetMessageSchemaAsync(string deviceName, Device device, string inboundEndpointName, string assetName, Asset asset, string eventGroupName, string eventName, AssetEvent assetEvent, CancellationToken cancellationToken = default)
Parameters
deviceNamestringThe name of the device this event will be received from.
deviceDeviceThe device this event will be received from.
inboundEndpointNamestringThe name of the inbound endpoint this event will be received from.
assetNamestringThe name of the asset this event belongs to.
assetAssetThe asset this event belongs to.
eventGroupNamestringThe name of the event group the event belongs to.
eventNamestringThe name of the event.
assetEventAssetEventThe event
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ConnectorEdgeRegistryMessageSchema>
The message schema to register for data received from this event. If null, no message schema will be registered for this event.