Azure-Player / Real-Time-Data-Simulator

Windows Desktop application to generating and streaming data into EventHub
MIT License
5 stars 5 forks source link

Fixed out of bounds error for FuelType(MessageIndex) #8

Closed thedaxshepherd closed 3 months ago

thedaxshepherd commented 3 months ago

If the number of messages sent per batch exceeds 19 then an [Index was outside the bounds of the array] error is generated. This iterates through fuel types ensuring that if you have 19 messages or more you will have generated each fuel type. Future enhancement could make this so that you can select whether the fuel type is randomly generated or the iteration method.

NowinskiK commented 3 months ago

Thanks!