public WorkerTask(CallerCoreMobile main, IInfoContext info, string functionName, FunctionContext context) { this.main = main; this.info = info; this.functionName = functionName; this.Logger = main.getLogger(); if (context != null) { this.context = new FunctionContext(context); } else { this.context = null; } asyncWorkerID++; // asyncWorkerID = worker.asyncWorkers++; }
//private Logger Logger = Logger.getLogger(); /// <summary> /// Costruisce un nuovo enterprise caller con il file di inizializzazione specificato. /// </summary> /// <param name="iniFileName"> il file di inizializzazione, contenente il mapping tra nome funzione /// e classe di implementazione. </param> public FunctionCaller(CallerCoreMobile mainCaller) { //this.dba = dba; this.main = mainCaller; /// <summary> /// contine le funzioni personalizzate per tipo applicazione: numero_applicazione ed hashtable delle funzioni assegnate 2={IgnitionManager=2.IgnitionManager} </summary> //this.functionsMap = new Dictionary<string, Dictionary<string, EnterpriseFunction>>(); /// <summary> /// Contiene le funzioni con NomeFunzione e La classe funzione es; GpsWorker=default.GpsWorker </summary> this.defaultApplicationMap = new Dictionary <string, EnterpriseFunction>(); /// <summary> /// Contiene le funzioni con MsgType ed Handler </summary> this.defaultHandlersMap = new Dictionary <string, MessageHandler>(); /// <summary> /// Contiene le funzioni con MsgType ed Handler non usato </summary> //this.handlersMap = new Dictionary<string, Dictionary<string, MessageHandler>>(); this.listenerMapDataType = new Dictionary <string, List <AbstractListener> >(); this.listenerDefaultWorkerMap = new Dictionary <string, AbstractListener>(); this.registerLogger(main.infoctx); }
/// <summary> /// Init the function system /// </summary> /// <seealso cref= CallarCore.MainCore#init() </seealso> public virtual void Load(string fullName, CallerCoreMobile main) { this.fullName = fullName; this.main = main; this.Logger = main.getLogger(); }
public CallerCoreMobile(IInfoContext infoctx) { this.infoctx = infoctx; callerCoreMobile = this; functionCaller = new FunctionCaller(this); }
/// <summary> /// Init the function /// </summary> /// <seealso cref= CallerCore.MainCore.EnterpriseListener#init() </seealso> /// public virtual void init(CallerCoreMobile main) { this.main = main; this.info = main.infoctx; this.Logger = main.getLogger(); }