protected virtual void OnDeserialization(object sender) { this.mDirty = true; this.mCall = null; this.mCallWrapper = this.Run; }
// Token: 0x06000444 RID: 1092 RVA: 0x000049E4 File Offset: 0x00002BE4 public static Task smethod_3(this ScriptCall scriptCall_0) { return(Task.Run <bool>(new Func <bool>(new Class108.Class112 { scriptCall_0 = scriptCall_0 }.method_0))); }
// Token: 0x06000443 RID: 1091 RVA: 0x000211FC File Offset: 0x0001F3FC public static async Task <string> smethod_2(this ScriptCall scriptCall_0) { Class108.Class113 @class = new Class108.Class113(); @class.scriptCall_0 = scriptCall_0; await Task.Run <bool>(new Func <bool>(@class.method_0)); return(@class.scriptCall_0.Result.ToString()); }
private static bool RunScript(UserScript script, string type) { try { ScriptCall call = script.Call; if (call == null) { return(false); } call(); } catch (Exception e) { Console.WriteLine("Exception executing the {0} script:", type); Console.WriteLine(e.ToString()); return(false); } return(true); }
protected UserScript() { this.mCallWrapper = this.Run; }
public void Recompile() { this.mCall = this.CompileScript(); this.mDirty = false; }
// Token: 0x0600010D RID: 269 RVA: 0x00003694 File Offset: 0x00001894 public static string smethod_0(this ScriptCall scriptCall_0) { scriptCall_0.WaitOne(5000); return(scriptCall_0.Result.ToString()); }