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())
//versus
foreach (var e in await nbr.GetActualRates())
yield return exch;
//versus adding to a list and return the list
ret.Add(exch);
var data = await nbr.GetActualRates().ToArrayAsync();
//versus
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
https://docs.microsoft.com/en-us/sandbox/functions-recipes/logging?tabs=csharp
Commuting to TtraceWriter
Now deployng from Visual Studio =>error: System.IO.FileNotFoundException: Could not load file or assembly ‘netstandard,Version=2.1.0.0,Culture=neutral,PublicKeyToken=cc7b13ffcd2ddd51’
Re-doing via CI – AzureDevOps : WORKS!
Leave a Reply