Table of Contents

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 string
device Device

The device that holds the asset to sample

inboundEndpointName string

The name of the inbound endpoint.

assetName string

The name of the asset that this dataset belongs to.

asset Asset

The asset that this dataset belongs to.

dataset AssetDataset

The dataset that the returned sampler will sample.

endpointCredentials EndpointCredentials

The 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.