Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Hosting API   (RSS)

Using LINQ and the DLR in the same application

The recent beta release of the DLR allows the usage of LINQ and other CSharp 3.0 features in an application that hosts the DLR. Harry , our IronPython PM has a detailed post explaining why this was not possible before and whats changed now.
Posted by seshadripv | 1 Comments
Filed under: , ,

DLR Hosting API : How to create a ScriptRuntime object without using App.Config files using language specific hosting API

This previous post demonstrates the use of App.Config files to create script runtimes to host dynamic languages in an application. It is also possible to create runtimes without using a config file. The API to create a runtime and a python engine without

DLR Hosting Sample : Simple dlr host using the new App.Config based ScriptRuntime creation

Due to the recent changes to the DLR Hosting API , dlr hosts now have to use the App.Config file to configure the languages they intend to use in the application. It’s probably a little bit more complex than before to get started on Hosting the DLR after

DLR Hosting API : latest version of the spec is available online (includes changes to runtime initialization)

The latest version of the Hosting API spec is available here . The most recent source code drop to the IronPython codeplex site conforms to this spec (except for some open bugs). The biggest change this spec introduces to the beta4 binaries is the way

DLR Hosting API : How to create ScriptScopes using backing symbol dictionaries to implement dynamic variable lookup

The factory methods used to create a ScriptScope object have overloads that take a 'IAttributeCollection' object to create the scope using the collection as a backing store. This feature is very useful and any app that needs non trivial Hosting would

Quick notes on ScriptScope

ScriptScope is one of the key types available in the DLR Hosting API. They act as a context in which hosts execute code and record the effects of execution like changes in object values, creation of new objects etc. Prior to any code execution, ScriptScopes

4 different ways to execute IronPython code using the DLR Hosting API

Normal 0 false false false EN-US ZH-TW X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes;

How to create IronPython objects of types defined in C#

The DLR Hosting API lets the hosted script instantiate objects of types defined in the hosting C# / VB module. This post describes how to do that using the appropriate methods from the API. Here are the simple steps - 1) Load the assembly containing the

DLR Hosting Sample : QikScript - Handle Visual Studio 2008 extensibility events in IronPython

The DLR Hosting API offers a well defined interface for managed applications to host and utilize the power of the DLR (Dynamic Language Runtime) to enable end user scripting. The objective of this sample (and the forthcoming series of posts based on this

How to redirect output from python using the DLR Hosting API

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes;

How to invoke a IronPython function from C# using the DLR Hosting API

Like I wrote in my previous post , the Hosting API lets you do some very interesting and powerful things with the DLR. One of the things I had listed was the ability to invoke a method implemented in python from C#. This post describes how to set up the
Posted by seshadripv | 4 Comments

How to write a simple DLR host in C# using Hosting API

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes;
Posted by seshadripv | 3 Comments
Filed under: , ,
 
Page view tracker