public ScriptContext(System.Object context, System.Object user, System.String appName) { if ((XC.Instance.CurrentContext) != (null)) { _client = (VMSConstructor.ConstructScriptContextFunc0(context, user, appName)); } else { throw new Exception("There is no VMS Context to create the class"); } }
public ScriptContext(object context, object user, string appName) { if (X.Instance.CurrentContext != null) { X.Instance.CurrentContext.Thread.Invoke(() => { _client = VMSConstructor.ConstructScriptContext(context, user, appName); }); } else { throw new Exception("There is no VMS Context to create the class"); } }