Interface IDatasetSamplerFactory
- Namespace
- Azure.Iot.Operations.Connector
- Assembly
- Azure.Iot.Operations.Connector.dll
Factory interface for creating IDatasetSampler instances.
public interface IDatasetSamplerFactory
Methods
CreateDatasetSampler(string, Device, string, string, Asset, AssetDataset, EndpointCredentials?)
Factory method for creating a sampler for the provided dataset.
IDatasetSampler CreateDatasetSampler(string deviceName, Device device, string inboundEndpointName, string assetName, Asset asset, AssetDataset dataset, EndpointCredentials? endpointCredentials)
Parameters
deviceName
stringdevice
DeviceThe device that holds the asset to sample
inboundEndpointName
stringThe name of the inbound endpoint.
assetName
stringThe name of the asset that this dataset belongs to.
asset
AssetThe asset that this dataset belongs to.
dataset
AssetDatasetThe dataset that the returned sampler will sample.
endpointCredentials
EndpointCredentialsThe authentication to use when connecting to the endpoint with this asset.
Returns
- IDatasetSampler
The dataset sampler that will be used everytime this dataset needs to be sampled.