Class ProtoApplicationState
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
applicationNamestringbindingsIReadOnlyDictionary<string, string>
Properties
ApplicationName
Gets the selected application name.
public string ApplicationName { get; }
Property Value
Bindings
Gets the protocol-to-client bindings declared by [Application].
public IReadOnlyDictionary<string, string> Bindings { get; }
Property Value
Methods
Client(string)
Returns the client bound to a protocol by [Application], or null.
public string? Client(string protocolName)
Parameters
protocolNamestring