Open devzaak opened 3 years ago
Hello @aslezak
You can use Value
property of the Context
:
...
if (!(context.Value is Dictionary<string, string> configuration)) return;
...
or access value via Context
:
var value = context.GetValue<string>(arguments.At<string>(0));
if (value == null) return;
You should be able to use Environment.NewLine
as a workaround (probably even wrap it in an extension method):
output.Write(value);
output.Write(Environment.NewLine, false);
I'd be glad to accept a PR for this missing part.
Great, thanks for the info, I will create the PR for the second part.
Hi, In recent updates I saw in notes that context when registering helpers context is no longer dynamic and I need just a bit of help to understand how to change my code to work with new version. There are 2 issues: 1.
How should I be working with context in this case to get dictionary back?
2.
no longer exists, what was this replaced with? Thank you