Class ProtoApplicationState

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

The application selected for the current test and any per-protocol client bindings.

public sealed class ProtoApplicationState : IProtoContext
Inheritance
ProtoApplicationState
Implements
Inherited Members
Extension Methods

Constructors

ProtoApplicationState(string, IReadOnlyDictionary<string, string>)

public ProtoApplicationState(string applicationName, IReadOnlyDictionary<string, string> bindings)

Parameters

applicationName string
bindings IReadOnlyDictionary<string, string>

Properties

ApplicationName

Gets the selected application name.

public string ApplicationName { get; }

Property Value

string

Bindings

Gets the protocol-to-client bindings declared by [Application].

public IReadOnlyDictionary<string, string> Bindings { get; }

Property Value

IReadOnlyDictionary<string, string>

Methods

Client(string)

Returns the client bound to a protocol by [Application], or null.

public string? Client(string protocolName)

Parameters

protocolName string

Returns

string