Skip to content

Commit 08d1ebc

Browse files
author
Alon Fliess
committed
2 parents b94a7b5 + 63d58b7 commit 08d1ebc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ namespace EasyIoTHubClient
6565
You may use one of the ```[Device]``` or the ```[DPS*]``` attributes to decorate a ```DeviceClient``` property. With these attributes and their properties, we can manipulate the IoT Hub device client creation parameters.
6666
Each property value can be set as a text or can be set as an environment variable value by wrapping the value with the `````%````` character, for example:
6767
```
68-
[DeviceClient(ConnectionString="%ConStr%")]
68+
[Device(ConnectionString="%ConStr%")]
6969
DeviceClient MyClient {get;set;}
7070
```
7171
Each property value can be set as a variable name or code expression by wrapping the value with the `````[varName]````` character, for example:
7272
```
73-
[DeviceClient(ConnectionString="[ConStr]")]
73+
[Device(ConnectionString="[ConStr]")]
7474
DeviceClient MyClient {get;set;}
7575
```
7676
The ```[Device]``` attribute has a long list of properties and a set of other attributes (```[ClientOptions]```, ```[TransportSetting]```, and ```[AuthenticationMethod]```) that creates the parameter of the IoT device client Create method. The code generator chooses the correct overload version of the device client ```Create()``` function by collecting all these parameters and selecting the suitable function version. If there is a missing parameter or a collision between parameters, the code generator emits an error.

0 commit comments

Comments
 (0)