Interface IProtoApplicationBuilder

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

Configures one named application under test. Integrations extend it — for example app.AddRest(rest => rest.AddClient("Orders")) — to expose the protocols and clients the application supports. The first client registered for a protocol becomes that protocol's default.

public interface IProtoApplicationBuilder
Extension Methods

Properties

ApplicationName

Gets the application name, matching [Application(name)] and configuration.

string ApplicationName { get; }

Property Value

string

Services

Gets the service collection the application's clients are registered into.

IServiceCollection Services { get; }

Property Value

IServiceCollection

Methods

RegisterClient(string, string)

Records a named client of a protocol so accessors can resolve it by application.

void RegisterClient(string protocolName, string clientName)

Parameters

protocolName string
clientName string