//***********************Interface definition
Using System; Namespace Plugin
{///
/// AppService's summary description.
///
Public Interface iHandle
{String Execute (String XML);}}
************* PLUGIN call *********
Using ihandle;
PUBLIC CLASS Process {
Private ihandle handler;
#region Handle try {string plugStr = null; newcom = Repository.XmlDecode (this.requestCommand, "Command"); classname = Repository.XmlDecode (this.requestCommand, "ClassName"); xml = Repository.XmlInsertValue (xml, "Command ", newcom); assembly ass = null; // -------- String path = appdomain.currentdomain.basedirectory @" DLL / HANDLE / " THIS.SYSObject ". DLL "; ass = askEMBLOADFROM ( PATH); if (ass! = null) {handler = (appservice) ass.createInstance (classname); // plugstr = handler.execute (xml); // implement method} // --------- returnString = this.FormatResponse (xml, "0", "", plugStr); Repository.Log (sysUserName, newcom, ipAddress, sysObject, "success"); return returnString;} catch (Exception ex) {string errMessage = ex. Message; Return ErrMessage;}} #endregion
}