Class ProtoDeviceClient
The devices of one named client, for the current test. For<TDevice>(string) creates one typed instance per (client, type, id) and test, resolves its address, attaches it to the client's transport and releases it with the test.
public sealed class ProtoDeviceClient
- Inheritance
-
ProtoDeviceClient
- Inherited Members
- Extension Methods
Properties
Name
Gets the client's name, as it was registered and as the trace records it.
public string Name { get; }
Property Value
Methods
For<TDevice>(string)
Gets the device with the given id, creating and attaching it on first use. The class needs a public parameterless constructor and must be registered on the client.
public TDevice For<TDevice>(string deviceId) where TDevice : ProtoDevice
Parameters
deviceIdstring
Returns
- TDevice
Type Parameters
TDevice