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
deviceNamestringdeviceDeviceThe device that holds the asset to sample
inboundEndpointNamestringThe name of the inbound endpoint.
assetNamestringThe name of the asset that this dataset belongs to.
assetAssetThe asset that this dataset belongs to.
datasetAssetDatasetThe dataset that the returned sampler will sample.
endpointCredentialsEndpointCredentialsThe 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.