<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>StresStimulus Forum - SUPPORT QUESTIONS - Help on C# Scriptable Vars - extractor value - Messages</title>
<link>https://www.stresstimulus.com/forum/help-on-c-scriptable-vars--extractor-value-790</link>
<description>StresStimulus Forum - SUPPORT QUESTIONS - Help on C# Scriptable Vars - extractor value - Messages</description>
<language>en-us</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>Jitbit AspNetForum</generator>
<pubDate>Tue, 11 Feb 2020 16:41:11 GMT</pubDate>
<lastBuildDate>Tue, 11 Feb 2020 16:41:11 GMT</lastBuildDate>
<item>
<link>https://www.stresstimulus.com/forum/help-on-c-scriptable-vars--extractor-value-790</link>
<title>Message from clinares</title>
<description><![CDATA[Great thanks, this is what I was looking for.]]></description>
<pubDate>Tue, 11 Feb 2020 16:41:11 GMT</pubDate>
</item>
<item>
<link>https://www.stresstimulus.com/forum/help-on-c-scriptable-vars--extractor-value-790</link>
<title>Message from George @StresStimulus</title>
<description><![CDATA[The SessionContext object is described <a href="http://support.stresstimulus.com/display/doc51/SessionContext" target="_blank" rel="nofollow">http://support.stresstimulus.com/display/doc51/SessionContext</a> <br/>You can access the correlation values from the ExtractorRuntime that is described <a href="http://support.stresstimulus.com/display/doc51/ExtractorRuntime" target="_blank" rel="nofollow">http://support.stresstimulus.com/display/doc51/ExtractorRuntime</a> <br/><br/><br/>From what I understood, you created an extractor that is a file name and you want to return its content. Assuming the name of the extractor is “MyFileName” here is the code:<br/><br/><br/>string IExternalVariable.GetValue(SessionContext context)<br/>{<br/>string text= File.ReadAllText(context.ExtractorRuntime.GetExtractorValue(“MyFileName”), Encoding.UTF8);<br/>return text;<br/>}]]></description>
<pubDate>Tue, 11 Feb 2020 09:59:44 GMT</pubDate>
</item>
<item>
<link>https://www.stresstimulus.com/forum/help-on-c-scriptable-vars--extractor-value-790</link>
<title>Message from clinares</title>
<description><![CDATA[Folks, <br/><br/>Is there a guide on how to use the scriptable vars, I am coding in C# and I want to make a reference of a Extraced variable into my C# code:<br/><br/><br/> string IExternalVariable.GetValue(SessionContext context)<br/>    {<br/>		string text= File.ReadAllText(@"c:\file.txt", Encoding.UTF8);<br/>        <br/>		return  text;<br/><br/>		<br/>		<br/>		//throw new NotImplementedException();<br/>    }<br/><br/><br/>I want to read the file from the extracted parameter from a correlation, I believe this can come come the context object, but cant find any help on this.]]></description>
<pubDate>Mon, 10 Feb 2020 23:22:10 GMT</pubDate>
</item>
</channel>
</rss>
