ServiceClient Class

Definition

Contains methods that services can use to send messages to devices

public abstract class ServiceClient : IDisposable
type ServiceClient = class
    interface IDisposable
Public MustInherit Class ServiceClient
Implements IDisposable
Inheritance
System.Object
ServiceClient
Implements
System.IDisposable

Methods

CloseAsync()

Close the ServiceClient instance

Dispose() System.IDisposable.Dispose
Dispose(Boolean)

Releases unmanaged and - optionally - managed resources.

GetFeedbackReceiver()

Get the FeedbackReceiver

GetFileNotificationReceiver()

Get the FeedbackReceiver

GetServiceStatisticsAsync(CancellationToken)

Gets service statistics for the Iot Hub.

InvokeDeviceMethodAsync(String, CloudToDeviceMethod, CancellationToken)

Interactively invokes a method on device

OpenAsync()

Open the ServiceClient instance

PurgeMessageQueueAsync(String, CancellationToken)

Removes all messages from a device's queue.

SendAsync(String, Message, Nullable<TimeSpan>)

Send a one-way notification to the specified device

Applies to