Class ProtoHostBuilderExtensions

Namespace
ProtoTest.Devices
Assembly
ProtoTest.Devices.dll

Registers the device clients a suite talks to, on the host or under an application.

public static class ProtoHostBuilderExtensions
Inheritance
ProtoHostBuilderExtensions
Inherited Members

Methods

AddDevices(IProtoApplicationBuilder, Action<ProtoDeviceBuilder>?)

Registers device clients under an application: a client without an explicit address uses the application's address with its path template, so the same suite follows the application into every environment.

public static IProtoApplicationBuilder AddDevices(this IProtoApplicationBuilder application, Action<ProtoDeviceBuilder>? configure = null)

Parameters

application IProtoApplicationBuilder
configure Action<ProtoDeviceBuilder>

Returns

IProtoApplicationBuilder

AddDevices(IProtoHostBuilder, Action<ProtoDeviceBuilder>?)

Registers device clients. Each client names its transport and where its devices live; the typed devices that use it hang off AddClient(...).AddDevice<TDevice>().

public static IProtoHostBuilder AddDevices(this IProtoHostBuilder builder, Action<ProtoDeviceBuilder>? configure = null)

Parameters

builder IProtoHostBuilder
configure Action<ProtoDeviceBuilder>

Returns

IProtoHostBuilder