public void Initialize(RegionInfoStructure currentRegion) { CurrentRegion = currentRegion; HookupEvents(); }
// private static bool haveInitialized = false; public DotNetEngine() { RegionInfo = new RegionInfoStructure(); RegionInfo.Compilers = Compilers; RegionInfo.Schedulers = Schedulers; RegionInfo.Executors = new Dictionary<string, IScriptExecutor>(); RegionInfo.CommandProviders = new Dictionary<string, IScriptCommandProvider>(); RegionInfo.EventProviders = new Dictionary<string, IScriptEventProvider>(); }
public static IScriptEngineComponent GetComponentInstance(RegionInfoStructure info, string name, params Object[] args) { IScriptEngineComponent c = GetComponentInstance(name, args); // If module is IScriptEngineRegionComponent then it will have one instance per region and we will initialize it if (typeof(IScriptEngineRegionComponent).IsAssignableFrom(c.GetType())) ((IScriptEngineRegionComponent)c).Initialize(info); return c; }
//private RegionInfoStructure CurrentRegion; public void Initialize(RegionInfoStructure currentRegion) { //CurrentRegion = currentRegion; }