IAsyncEnumerable transformed to IEnumerable and making Azure Functions works- part 36
Last time I have had problems because of IAsyncEnumerable not be loaded from SystemRuntime. Decided to modify code to use instead Task<Ienumerable>
The code modifications were interesting
await foreach (var e in nbr.GetActualRates())
foreach (var e in await nbr.GetActualRates())
yield return exch;
//versus adding to a list and return the list
var data = await nbr.GetActualRates().ToArrayAsync();
var data = (await nbr.GetActualRates()).ToArray();
All in all, not so difficult.Code changes at https://github.com/ignatandrei/InfoValutar/commit/d2744dd0cc194c6e63c7efc2f262ec1b233bde7c
To test in production, it does not help that AzureDevops is taking 7 minutes. Trying in the meantime to setup AzureDevOps on my PC.
In Azure Function – the same error occurred.
Ok . Now trying to see if something smaller can be possible. Rather to load every plugin to give information, maybe I can load just the plugins directly.
Cannot bind parameter ‘log’ to type ILogger
Apparently, a known issue for package hell . Reading
Commuting to TtraceWriter
Now deployng from Visual Studio =>error: System.IO.FileNotFoundException: Could not load file or assembly ‘netstandard, Version=184.108.40.206, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’
Re-doing via CI – AzureDevOps : WORKS!And one hour passes...
(This is the result of 1 hour per day auto-challenge as a full cycle developer for an exchange rates application)
( You can see the sources at https://github.com/ignatandrei/InfoValutar/ )