Table of Contents

Class ProvisioningTransportHandler

Namespace
Microsoft.Azure.Devices.Provisioning.Client.Transport
Assembly
Microsoft.Azure.Devices.Provisioning.Client.dll

Represents the interface for a Provisioning Transport Handler.

public abstract class ProvisioningTransportHandler : IDisposable
Inheritance
ProvisioningTransportHandler
Implements
Inherited Members

Constructors

ProvisioningTransportHandler()

Creates an instance of the ProvisioningTransportHandler class.

public ProvisioningTransportHandler()

Properties

InnerHandler

Gets or sets the inner handler.

public ProvisioningTransportHandler InnerHandler { get; set; }

Property Value

ProvisioningTransportHandler

Port

Gets or sets the port number.

public int Port { get; set; }

Property Value

int

Proxy

Gets or sets the proxy for Provisioning Client operations.

public IWebProxy Proxy { get; set; }

Property Value

IWebProxy

RemoteCertificateValidationCallback

A callback for remote certificate validation. If incorrectly implemented, your device may fail to connect to DPS and/or be open to security vulnerabilities.

public RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; set; }

Property Value

RemoteCertificateValidationCallback

Methods

Dispose()

Releases the unmanaged resources and disposes of the managed resources used by the invoker.

public void Dispose()

Dispose(bool)

Releases the unmanaged resources used by the ProvisioningTransportHandler and optionally disposes of the managed resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to releases only unmanaged resources.

RegisterAsync(ProvisioningTransportRegisterMessage, CancellationToken)

Registers a device described by the message.

public virtual Task<DeviceRegistrationResult> RegisterAsync(ProvisioningTransportRegisterMessage message, CancellationToken cancellationToken)

Parameters

message ProvisioningTransportRegisterMessage

The provisioning message.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<DeviceRegistrationResult>

The registration result.