Created
August 12, 2013 00:24
-
-
Save DevJohnC/6207515 to your computer and use it in GitHub Desktop.
Example scripting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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