Class ProvisioningTransportHandler
- 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
Port
Gets or sets the port number.
public int Port { get; set; }
Property Value
Proxy
Gets or sets the proxy for Provisioning Client operations.
public IWebProxy Proxy { get; set; }
Property Value
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
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
booltrue 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
ProvisioningTransportRegisterMessageThe provisioning message.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<DeviceRegistrationResult>
The registration result.