Skip to content

Instantly share code, notes, and snippets.

@DevJohnC
Created August 12, 2013 00:24
Show Gist options
  • Select an option

  • Save DevJohnC/6207515 to your computer and use it in GitHub Desktop.

Select an option

Save DevJohnC/6207515 to your computer and use it in GitHub Desktop.
Example scripting
Imports System
Imports FragLabs.Adjutant.API.Helpers
Namespace ScriptingExample
Public Class Script
Sub Run
Services.Call("/scripts/csharp", Sub(str as String, ex as Exception)
Console.WriteLine("CSharp says: {0}", str)
End Sub
)
End Sub
End Class
End Namespace
using System;
using FragLabs.Adjutant.API.Helpers;
namespace ScriptingExample
{
public class Script
{
public void Run()
{
Services.Add("/scripts/csharp", delegate() {
return "Hello Scripts From CSharp";
});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment