ServiceClient Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.ObjectServiceClient
- 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 |