Quantcast
Channel: ClearScript
Browsing all 2297 articles
Browse latest View live

Commented Unassigned: Exporting array of Number from V8. [53]

Hi again, guys.There is some way to export a array of Number ([1,2]) from JS evaluation to C# array of integer? The JS code is:```(function (data){ return new RuleExecutionResult(data.BodyFat > 2...

View Article


Edited Unassigned: Exporting array of Number from V8. [53]

Hi again, guys.There is some way to export a array of Number ([1,2]) from JS evaluation to C# array of integer? The JS code is:```(function (data){ return new RuleExecutionResult(data.BodyFat > 2...

View Article


New Post: How to call service method within same class

Hi I can successfully run a script, however I want to call another service via a hostfunction. the hostfunction works within C# since it instantiates a proxy dll and reads config from web.config... but...

View Article

New Post: How to call service method within same class

Hello! We're a bit unclear about what you mean by "hostfunction". There are exceptions, but if you can do it in C#, you should be able to do it in script code as long as you've exposed the relevant...

View Article

New Post: How to call service method within same class

Hi Ok this is the script code ... using (var engine = new JScriptEngine()) { engine.AddHostObject("host", new RFManagerService()); StringBuilder script = new StringBuilder(); script.Append("function...

View Article


New Post: How to call service method within same class

Hi again, Thanks for posting the code. There doesn't appear to be anything wrong here. Your script calls a public method of an exposed object. What are you seeing? Does the script engine throw an...

View Article

New Post: How to call service method within same class

Here is the error i see .... works when calling that method directly though ...http://1drv.ms/1sazLYx

View Article

New Post: How to call service method within same class

here is a link to prove that the method does work when called directly ... this i did just before the script attempt, and it does return a customer object. script generates socket timeouts but i do not...

View Article


New Post: How to call service method within same class

Hi iwcoetzer, At first glance socket timeouts would appear to be completely unrelated to script execution. On the other hand, you're using JScript, which is a COM component, so it may share...

View Article


New Post: How to call service method within same class

Hi. services are currently all hosted on my dev box. will post innerexception when I am back behind my laptop thanks. would be nice if I can get this to work. I want the script to call that method for...

View Article

Commented Feature: Throw specific script exception by host [43]

Hi,Would it be possible to add a custom exception, so that when it is thrown by host it throws a script exception of the specified type and message.For example, in host code:```throw new...

View Article

Commented Feature: Throw specific script exception by host [43]

Hi,Would it be possible to add a custom exception, so that when it is thrown by host it throws a script exception of the specified type and message.For example, in host code:```throw new...

View Article

Created Unassigned: Are multiline strings possible? [54]

I would like to use ClearScript to compile handlebarsjs templates. Handlebars templates can be full html documents that as far as I know there's no good way to build up in js alone ( they have to be...

View Article


New Post: Are multiline strings possible?

Togakangaroo wrote:​ I would like to use ClearScript to compile handlebarsjs templates. Handlebars templates can be full html documents that as far as I know there's no good way to build up in js alone...

View Article

Closed Unassigned: Are multiline strings possible? [54]

I would like to use ClearScript to compile handlebarsjs templates. Handlebars templates can be full html documents that as far as I know there's no good way to build up in js alone ( they have to be...

View Article


Edited Unassigned: Are multiline strings possible? [54]

I would like to use ClearScript to compile handlebarsjs templates. Handlebars templates can be full html documents that as far as I know there's no good way to build up in js alone ( they have to be...

View Article

Edited Issue: Exporting array of Number from V8. [53]

Hi again, guys.There is some way to export a array of Number ([1,2]) from JS evaluation to C# array of integer? The JS code is:```(function (data){ return new RuleExecutionResult(data.BodyFat > 2...

View Article


Commented Issue: Exporting array of Number from V8. [53]

Hi again, guys.There is some way to export a array of Number ([1,2]) from JS evaluation to C# array of integer? The JS code is:```(function (data){ return new RuleExecutionResult(data.BodyFat > 2...

View Article

New Post: Are multiline strings possible?

oooh man. That's awesome. Another question, does Clearscript not provide the JSON object to stringify?

View Article

New Post: Does ClearScript have memory leak?

I wrote a simple application, which exposed a custom type (i.e. Foo) to outside. So the user could invoke it's method like this:var val1 = new Foo(); Console.WriteLine(val1.Method()); From the memory...

View Article
Browsing all 2297 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>