Skip to content

UdsClient Class

Factory entry point for constructing IUdsClient instances. Non-instantiable.

public static class UdsClient

Inheritance Object → UdsClient

Remarks

The client always wraps an existing IIsoTpChannel: transport concerns (frame codec, N_As/N_Bs/N_Cr timing, addressing) stay owned by ISO-TP, the UDS client only layers service semantics on top. Two ownership patterns are supported: - leaveOpen: true (default) — the client borrows the channel; disposing the client does not dispose the channel. - leaveOpen: false — the client takes ownership; disposing the client also disposes the underlying channel.

Methods

UdsClient.Create(IIsoTpChannel, UdsClientOptions, bool) Method

Creates a new IUdsClient bound to channel.

public static CanKit.Pro.Uds.IUdsClient Create(CanKit.Pro.IsoTp.IIsoTpChannel channel, CanKit.Pro.Uds.UdsClientOptions? options=null, bool leaveOpen=true);

Parameters

channel IIsoTpChannel

The ISO-TP channel that transports UDS requests and responses.

options UdsClientOptions

Client options; defaults to a fresh UdsClientOptions.

leaveOpen Boolean

When true (default) disposing the returned client does not dispose channel; when false the client takes ownership.

Returns

IUdsClient