Page 15: Nullable Parameters |
The provider is expected to send a value for BooleanParameter, IntegerParameter, OctetstringParameter, RealParameter, StringParameter and EnumParameterTEnum. Failure to do so lets ConsumerTRootCreateAsync fail with an exception. In the vast majority of the scenarios this behavior is desirable because it relieves client code of checking for null values.
In rare case however, a provider may not send an initial value, namely when IParameterAccess equals ParameterAccessWrite or when IParameterType equals ParameterTypeTrigger. For these cases, the library provides nullable variants for all parameter types, e.g. NullableBooleanParameter.
This concludes the static interface part of the Lawo.EmberPlusSharp.Model namespace tutorial. Proceed to Page 16: Mixed Interface.