JobClient Class

Definition

Job management

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

Constructors

JobClient()

Methods

CancelJobAsync(String)

Cancels/Deletes the job with the specified ID.

CancelJobAsync(String, CancellationToken)

Cancels/Deletes the job with the specified ID.

CloseAsync()

Closes the JobClient instance and disposes its resources.

CreateFromConnectionString(String)

Creates a JobClient from the Iot Hub connection string.

CreateQuery()

Get IQuery through which job responses for all job types and statuses are retrieved page by page

CreateQuery(Nullable<Int32>)

Get IQuery through which job responses are retrieved page by page and specify page size

CreateQuery(Nullable<JobType>, Nullable<JobStatus>)

Get IQuery through which job responses for specified jobType and jobStatus are retrieved page by page

CreateQuery(Nullable<JobType>, Nullable<JobStatus>, Nullable<Int32>)

Get IQuery through which job responses for specified jobType and jobStatus are retrieved page by page, and specify page size

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

Releases unmanaged and - optionally - managed resources.

GetJobAsync(String)

Gets the job with the specified ID.

GetJobAsync(String, CancellationToken)

Gets the job with the specified ID.

OpenAsync()

Explicitly open the JobClient instance.

ScheduleDeviceMethodAsync(String, String, CloudToDeviceMethod, DateTime, Int64)

Creates a new Job to run a device method on one or multiple devices

ScheduleDeviceMethodAsync(String, String, CloudToDeviceMethod, DateTime, Int64, CancellationToken)

Creates a new Job to run a device method on one or multiple devices

ScheduleTwinUpdateAsync(String, String, Twin, DateTime, Int64)

Creates a new Job to update twin tags and desired properties on one or multiple devices

ScheduleTwinUpdateAsync(String, String, Twin, DateTime, Int64, CancellationToken)

Creates a new Job to update twin tags and desired properties on one or multiple devices

Applies to