Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here are some important considerations when developing your device.1)     

  1. Don’t do ANY time consuming work in BaseDevice.Start() or BaseDevice.Stop().

...

  1. Use async/await where possible. This reduces the number of threads required by Connexion and results in better performance, and lower memory usage. This is especially important if the Connexion is running more than 100 channels.

...

  1. Prefer ProcessMessageAsync over ProcessMessage. Same as (2), but specific for processing messages.

...

  1. Also, ProcessMessage will be obsoleted in the next version of Connexion.
  2. Use BaseDevice.OnError to handle retrying. This uses async/await under the covers so there are no threads tied up sleeping. For an example of this please see: Sample Device with Retry (Sending)