-
Notifications
You must be signed in to change notification settings - Fork 256
/
IotHubBaseClient.xml
436 lines (435 loc) · 32 KB
/
IotHubBaseClient.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
<Type Name="IotHubBaseClient" FullName="Microsoft.Azure.Devices.Client.IotHubBaseClient">
<TypeSignature Language="C#" Value="public abstract class IotHubBaseClient : IDisposable" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract beforefieldinit IotHubBaseClient extends System.Object implements class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Microsoft.Azure.Devices.Client.IotHubBaseClient" />
<TypeSignature Language="VB.NET" Value="Public MustInherit Class IotHubBaseClient
Implements IDisposable" />
<TypeSignature Language="F#" Value="type IotHubBaseClient = class
 interface IDisposable" />
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Devices.Client</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Docs>
<summary>
Contains methods that a client can use to send messages to and receive messages from the service,
respond to direct method invocations from the service, and send and receive twin property updates.
</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName="CloseAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task CloseAsync (System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task CloseAsync(valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Devices.Client.IotHubBaseClient.CloseAsync(System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function CloseAsync (Optional cancellationToken As CancellationToken = Nothing) As Task" />
<MemberSignature Language="F#" Value="member this.CloseAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task" Usage="iotHubBaseClient.CloseAsync cancellationToken" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Devices.Client</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="cancellationToken">A cancellation token to cancel the operation.</param>
<summary>
Close the client instance.
</summary>
<returns>To be added.</returns>
<remarks>
The instance can be re-opened after closing and before disposing. However, subscriptions
to cloud to device messages/twin/methods do not persist when re-opening a client.
</remarks>
<exception cref="T:System.OperationCanceledException">Thrown when the operation has been canceled.</exception>
</Docs>
</Member>
<Member MemberName="ConnectionStatusChangeCallback">
<MemberSignature Language="C#" Value="public Action<Microsoft.Azure.Devices.Client.ConnectionStatusInfo> ConnectionStatusChangeCallback { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Action`1<class Microsoft.Azure.Devices.Client.ConnectionStatusInfo> ConnectionStatusChangeCallback" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Devices.Client.IotHubBaseClient.ConnectionStatusChangeCallback" />
<MemberSignature Language="VB.NET" Value="Public Property ConnectionStatusChangeCallback As Action(Of ConnectionStatusInfo)" />
<MemberSignature Language="F#" Value="member this.ConnectionStatusChangeCallback : Action<Microsoft.Azure.Devices.Client.ConnectionStatusInfo> with get, set" Usage="Microsoft.Azure.Devices.Client.IotHubBaseClient.ConnectionStatusChangeCallback" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Devices.Client</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Action<Microsoft.Azure.Devices.Client.ConnectionStatusInfo></ReturnType>
</ReturnValue>
<Docs>
<summary>
The callback to be executed each time connection status change notification is received.
</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
<example>
deviceClient.ConnectionStatusChangeCallback = OnConnectionStatusChanged;
//...
public void OnConnectionStatusChanged(ConnectionStatusInfo connectionStatusInfo)
{
// Add connection status changed logic as needed
}
</example>
</Docs>
</Member>
<Member MemberName="ConnectionStatusInfo">
<MemberSignature Language="C#" Value="public Microsoft.Azure.Devices.Client.ConnectionStatusInfo ConnectionStatusInfo { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Microsoft.Azure.Devices.Client.ConnectionStatusInfo ConnectionStatusInfo" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Devices.Client.IotHubBaseClient.ConnectionStatusInfo" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property ConnectionStatusInfo As ConnectionStatusInfo" />
<MemberSignature Language="F#" Value="member this.ConnectionStatusInfo : Microsoft.Azure.Devices.Client.ConnectionStatusInfo" Usage="Microsoft.Azure.Devices.Client.IotHubBaseClient.ConnectionStatusInfo" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Devices.Client</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Microsoft.Azure.Devices.Client.ConnectionStatusInfo</ReturnType>
</ReturnValue>
<Docs>
<summary>
The latest connection status information since the last status change.
</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Dispose">
<MemberSignature Language="C#" Value="public void Dispose ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Dispose() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Devices.Client.IotHubBaseClient.Dispose" />
<MemberSignature Language="VB.NET" Value="Public Sub Dispose ()" />
<MemberSignature Language="F#" Value="abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit" Usage="iotHubBaseClient.Dispose " />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.IDisposable.Dispose</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Devices.Client</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>
Releases the unmanaged resources used by the client and optionally disposes of the managed resources.
</summary>
<remarks>
The method <see cref="M:Microsoft.Azure.Devices.Client.IotHubBaseClient.CloseAsync(System.Threading.CancellationToken)" /> should be called before disposing.
</remarks>
</Docs>
</Member>
<Member MemberName="Dispose">
<MemberSignature Language="C#" Value="protected virtual void Dispose (bool disposing);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void Dispose(bool disposing) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Devices.Client.IotHubBaseClient.Dispose(System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Protected Overridable Sub Dispose (disposing As Boolean)" />
<MemberSignature Language="F#" Value="abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit" Usage="iotHubBaseClient.Dispose disposing" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Devices.Client</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="disposing" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="disposing">Setting to true will release both managed and unmanaged resources. Setting to
false will only release the unmanaged resources.</param>
<summary>
Releases the unmanaged resources used by the client and allows for any derived class to override and
provide custom implementation.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetTwinPropertiesAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.TwinProperties> GetTwinPropertiesAsync (System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class Microsoft.Azure.Devices.Client.TwinProperties> GetTwinPropertiesAsync(valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Devices.Client.IotHubBaseClient.GetTwinPropertiesAsync(System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function GetTwinPropertiesAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of TwinProperties)" />
<MemberSignature Language="F#" Value="member this.GetTwinPropertiesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.TwinProperties>" Usage="iotHubBaseClient.GetTwinPropertiesAsync cancellationToken" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Devices.Client</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.TwinProperties></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="cancellationToken">A cancellation token to cancel the operation.</param>
<summary>
Retrieve the twin properties for the current client.
</summary>
<returns>The twin object for the current client.</returns>
<remarks>
The client instance must be opened already.
<para>
This API gives you the client's view of the twin. For more information on twins in IoT hub, see <see href="https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins" />.
</para></remarks>
<exception cref="T:System.InvalidOperationException">Thrown if the client instance is not opened already.</exception>
<exception cref="T:System.OperationCanceledException">Thrown when the operation has been canceled.</exception>
</Docs>
</Member>
<Member MemberName="OpenAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task OpenAsync (System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task OpenAsync(valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Devices.Client.IotHubBaseClient.OpenAsync(System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function OpenAsync (Optional cancellationToken As CancellationToken = Nothing) As Task" />
<MemberSignature Language="F#" Value="member this.OpenAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task" Usage="iotHubBaseClient.OpenAsync cancellationToken" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Devices.Client</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="cancellationToken">A cancellation token to cancel the operation.</param>
<summary>
Open the client instance. Must be done before any operation can begin.
</summary>
<returns>To be added.</returns>
<remarks>
This client can be re-opened after it has been closed, but cannot be re-opened after it has
been disposed. Subscriptions to cloud to device messages/twin/methods do not persist when
re-opening a client.
</remarks>
<exception cref="T:System.OperationCanceledException">Thrown when the operation has been canceled.</exception>
</Docs>
</Member>
<Member MemberName="SendTelemetryAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task SendTelemetryAsync (Microsoft.Azure.Devices.Client.TelemetryMessage message, System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task SendTelemetryAsync(class Microsoft.Azure.Devices.Client.TelemetryMessage message, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Devices.Client.IotHubBaseClient.SendTelemetryAsync(Microsoft.Azure.Devices.Client.TelemetryMessage,System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function SendTelemetryAsync (message As TelemetryMessage, Optional cancellationToken As CancellationToken = Nothing) As Task" />
<MemberSignature Language="F#" Value="member this.SendTelemetryAsync : Microsoft.Azure.Devices.Client.TelemetryMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task" Usage="iotHubBaseClient.SendTelemetryAsync (message, cancellationToken)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Devices.Client</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="message" Type="Microsoft.Azure.Devices.Client.TelemetryMessage" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="message">The message to send.</param>
<param name="cancellationToken">A cancellation token to cancel the operation.</param>
<summary>
Sends a telemetry message to IoT hub.
</summary>
<returns>To be added.</returns>
<remarks>
The client instance must be opened already.
<para>
In case of a transient issue, retrying the operation should work. In case of a non-transient issue, inspect
the error details and take steps accordingly.
</para></remarks>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="message" /> is null.</exception>
<exception cref="T:System.OperationCanceledException">Thrown when the operation has been canceled.</exception>
<exception cref="T:System.InvalidOperationException">Thrown if the client instance is not opened already.</exception>
<exception cref="T:System.Net.Sockets.SocketException">Thrown if a socket error occurs.</exception>
<exception cref="T:System.Net.WebSockets.WebSocketException">Thrown if an error occurs when performing an operation on a WebSocket connection.</exception>
<exception cref="T:System.IO.IOException">Thrown if an I/O error occurs.</exception>
<exception cref="T:Microsoft.Azure.Devices.Client.IotHubClientException">Thrown if an error occurs when communicating with IoT hub service.</exception>
</Docs>
</Member>
<Member MemberName="SendTelemetryBatchAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task SendTelemetryBatchAsync (System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Client.TelemetryMessage> messages, System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task SendTelemetryBatchAsync(class System.Collections.Generic.IEnumerable`1<class Microsoft.Azure.Devices.Client.TelemetryMessage> messages, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Devices.Client.IotHubBaseClient.SendTelemetryBatchAsync(System.Collections.Generic.IEnumerable{Microsoft.Azure.Devices.Client.TelemetryMessage},System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function SendTelemetryBatchAsync (messages As IEnumerable(Of TelemetryMessage), Optional cancellationToken As CancellationToken = Nothing) As Task" />
<MemberSignature Language="F#" Value="member this.SendTelemetryBatchAsync : seq<Microsoft.Azure.Devices.Client.TelemetryMessage> * System.Threading.CancellationToken -> System.Threading.Tasks.Task" Usage="iotHubBaseClient.SendTelemetryBatchAsync (messages, cancellationToken)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Devices.Client</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="messages" Type="System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Client.TelemetryMessage>" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="messages">An <see cref="T:System.Collections.Generic.IEnumerable`1" /> set of message objects.</param>
<param name="cancellationToken">A cancellation token to cancel the operation.</param>
<summary>
Sends a batch of telemetry message to IoT hub.
</summary>
<returns>To be added.</returns>
<remarks>
The client instance must be opened already.
<para>
Use AMQP for a true batch operation. MQTT will just send the messages one after the other.
</para><para>
For more information on IoT Edge module routing for <see cref="T:Microsoft.Azure.Devices.Client.IotHubModuleClient" /> see
<see href="https://docs.microsoft.com/azure/iot-edge/module-composition?view=iotedge-2018-06#declare-routes" />.
</para></remarks>
<exception cref="T:System.InvalidOperationException">Thrown if the client instance is not opened already.</exception>
<exception cref="T:System.OperationCanceledException">Thrown when the operation has been canceled.</exception>
</Docs>
</Member>
<Member MemberName="SetDesiredPropertyUpdateCallbackAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task SetDesiredPropertyUpdateCallbackAsync (Func<Microsoft.Azure.Devices.Client.DesiredProperties,System.Threading.Tasks.Task> callback, System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task SetDesiredPropertyUpdateCallbackAsync(class System.Func`2<class Microsoft.Azure.Devices.Client.DesiredProperties, class System.Threading.Tasks.Task> callback, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Devices.Client.IotHubBaseClient.SetDesiredPropertyUpdateCallbackAsync(System.Func{Microsoft.Azure.Devices.Client.DesiredProperties,System.Threading.Tasks.Task},System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function SetDesiredPropertyUpdateCallbackAsync (callback As Func(Of DesiredProperties, Task), Optional cancellationToken As CancellationToken = Nothing) As Task" />
<MemberSignature Language="F#" Value="member this.SetDesiredPropertyUpdateCallbackAsync : Func<Microsoft.Azure.Devices.Client.DesiredProperties, System.Threading.Tasks.Task> * System.Threading.CancellationToken -> System.Threading.Tasks.Task" Usage="iotHubBaseClient.SetDesiredPropertyUpdateCallbackAsync (callback, cancellationToken)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Devices.Client</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="callback" Type="System.Func<Microsoft.Azure.Devices.Client.DesiredProperties,System.Threading.Tasks.Task>" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="callback">The callback to be invoked when a desired property update is received from the service.</param>
<param name="cancellationToken">A cancellation token to cancel the operation.</param>
<summary>
Set a callback that will be called whenever the client receives a desired state update
from the service. The client instance must be opened already.
</summary>
<returns>To be added.</returns>
<remarks>
Calling this API more than once will result in the callback set last overwriting any previously set callback.
A method callback can be unset by setting <paramref name="callback" /> to null.
<para>
This has the side-effect of subscribing to the PATCH topic on the service.
</para></remarks>
<exception cref="T:System.OperationCanceledException">Thrown when the operation has been canceled.</exception>
</Docs>
</Member>
<Member MemberName="SetDirectMethodCallbackAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task SetDirectMethodCallbackAsync (Func<Microsoft.Azure.Devices.Client.DirectMethodRequest,System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.DirectMethodResponse>> directMethodCallback, System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task SetDirectMethodCallbackAsync(class System.Func`2<class Microsoft.Azure.Devices.Client.DirectMethodRequest, class System.Threading.Tasks.Task`1<class Microsoft.Azure.Devices.Client.DirectMethodResponse>> directMethodCallback, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Devices.Client.IotHubBaseClient.SetDirectMethodCallbackAsync(System.Func{Microsoft.Azure.Devices.Client.DirectMethodRequest,System.Threading.Tasks.Task{Microsoft.Azure.Devices.Client.DirectMethodResponse}},System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function SetDirectMethodCallbackAsync (directMethodCallback As Func(Of DirectMethodRequest, Task(Of DirectMethodResponse)), Optional cancellationToken As CancellationToken = Nothing) As Task" />
<MemberSignature Language="F#" Value="member this.SetDirectMethodCallbackAsync : Func<Microsoft.Azure.Devices.Client.DirectMethodRequest, System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.DirectMethodResponse>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task" Usage="iotHubBaseClient.SetDirectMethodCallbackAsync (directMethodCallback, cancellationToken)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Devices.Client</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="directMethodCallback" Type="System.Func<Microsoft.Azure.Devices.Client.DirectMethodRequest,System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.DirectMethodResponse>>" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="directMethodCallback">The callback to be invoked when any method is invoked by the cloud service.</param>
<param name="cancellationToken">A cancellation token to cancel the operation.</param>
<summary>
Sets the callback for all direct method calls from the service.
This instance must be opened already.
</summary>
<returns>To be added.</returns>
<remarks>
Calling this API more than once will result in the callback set last overwriting any previously set callback.
A method callback can be unset by setting <paramref name="directMethodCallback" /> to null.
</remarks>
<exception cref="T:System.OperationCanceledException">Thrown when the operation has been canceled.</exception>
</Docs>
</Member>
<Member MemberName="SetIncomingMessageCallbackAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task SetIncomingMessageCallbackAsync (Func<Microsoft.Azure.Devices.Client.IncomingMessage,System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.MessageAcknowledgement>> messageCallback, System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task SetIncomingMessageCallbackAsync(class System.Func`2<class Microsoft.Azure.Devices.Client.IncomingMessage, class System.Threading.Tasks.Task`1<valuetype Microsoft.Azure.Devices.Client.MessageAcknowledgement>> messageCallback, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Devices.Client.IotHubBaseClient.SetIncomingMessageCallbackAsync(System.Func{Microsoft.Azure.Devices.Client.IncomingMessage,System.Threading.Tasks.Task{Microsoft.Azure.Devices.Client.MessageAcknowledgement}},System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function SetIncomingMessageCallbackAsync (messageCallback As Func(Of IncomingMessage, Task(Of MessageAcknowledgement)), Optional cancellationToken As CancellationToken = Nothing) As Task" />
<MemberSignature Language="F#" Value="member this.SetIncomingMessageCallbackAsync : Func<Microsoft.Azure.Devices.Client.IncomingMessage, System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.MessageAcknowledgement>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task" Usage="iotHubBaseClient.SetIncomingMessageCallbackAsync (messageCallback, cancellationToken)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Devices.Client</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="messageCallback" Type="System.Func<Microsoft.Azure.Devices.Client.IncomingMessage,System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.MessageAcknowledgement>>" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="messageCallback">The callback to be invoked when a cloud-to-device message is received by the client.</param>
<param name="cancellationToken">A cancellation token to cancel the operation.</param>
<summary>
Sets a callback for receiving a message from the device or module queue using a cancellation token.
This instance must be opened already.
</summary>
<returns>To be added.</returns>
<remarks>
Calling this API more than once will result in the callback set last overwriting any previously set callback.
A method callback can be unset by setting <paramref name="messageCallback" /> to null.
</remarks>
<exception cref="T:System.InvalidOperationException">Thrown if instance is not opened already.</exception>
<exception cref="T:System.OperationCanceledException">Thrown when the operation has been canceled.</exception>
</Docs>
</Member>
<Member MemberName="UpdateReportedPropertiesAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<long> UpdateReportedPropertiesAsync (Microsoft.Azure.Devices.Client.ReportedProperties reportedProperties, System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<int64> UpdateReportedPropertiesAsync(class Microsoft.Azure.Devices.Client.ReportedProperties reportedProperties, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Devices.Client.IotHubBaseClient.UpdateReportedPropertiesAsync(Microsoft.Azure.Devices.Client.ReportedProperties,System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function UpdateReportedPropertiesAsync (reportedProperties As ReportedProperties, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Long)" />
<MemberSignature Language="F#" Value="member this.UpdateReportedPropertiesAsync : Microsoft.Azure.Devices.Client.ReportedProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int64>" Usage="iotHubBaseClient.UpdateReportedPropertiesAsync (reportedProperties, cancellationToken)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Devices.Client</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<System.Int64></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="reportedProperties" Type="Microsoft.Azure.Devices.Client.ReportedProperties" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="reportedProperties">Reported properties to push</param>
<param name="cancellationToken">A cancellation token to cancel the operation.</param>
<summary>
Push reported property changes up to the service.
</summary>
<returns>The new version of the updated twin if the update was successful.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.OperationCanceledException">Thrown when the operation has been canceled.</exception>
</Docs>
</Member>
</Members>
</Type>