Where to get source code for the post '[10/07/2015] See Advanced ESAPI #1 on Youtube and source code on Oncopeer.com'

Nov 17, 2015 at 5:40 PM
The post below on the "home" tab provides the way of calling stand-alone exe from plug-in. Where can I find the source code of this post? It says the source code is available from Oncopeer.com. I logged in Oncopeer.com using MyVarian account, but I can't find it.

Thanks for your help!

Joy

[10/07/2015] See Advanced ESAPI #1 on Youtube and source code on Oncopeer.com
Coordinator
Nov 17, 2015 at 7:08 PM
Thanks for watching my tutorial. There is a special section of Oncopeer called the Developer Cloud. I am not sure how to gain access to that, but that is where the code is posted.

Here is the Relay code:
using System;
using System.Linq;
using System.Text;
using System.Windows;
using System.Collections.Generic;
using VMS.TPS.Common.Model.API;
using VMS.TPS.Common.Model.Types;
using System.Reflection;

namespace VMS.TPS
{
    public class Script
    {
        public Script()
        {
        }

        public void Execute(ScriptContext context, System.Windows.Window window)
        {
            var assemblyPath = @"PathToMyStandaloneHERE!";
            var assem = Assembly.UnsafeLoadFrom(assemblyPath);
            var script = Activator.CreateInstanceFrom(assemblyPath, "VMS.TPS.XScript").Unwrap();
            var type = script.GetType();
            type.InvokeMember("Execute",
                              BindingFlags.Default | BindingFlags.InvokeMethod,
                              null,
                              script,
                              new object[] { context, window });
        }

    }
}
Combo Project can be downloaded at : http://1drv.ms/1MQsq8X
Marked as answer by rexcardan on 11/17/2015 at 12:09 PM
Nov 17, 2015 at 7:31 PM
Great! Thanks a lot!

Joy