public override void Handle(T obj)
 {
     if (Handler != null)
     {
         GlobalReference.GetInstance().ExecutionQueue.Add(() => Handler(obj));
     }
 }
Exemple #2
0
 public static void Clear()
 {
     Module = null;
     Runner = null;
     g      = null;
     OverrideCurrentUserConfigName = null;
 }
Exemple #3
0
 public static void Init()
 {
     Module   = new Module();
     Runner   = new Runner(Module);
     g        = new GlobalReference();
     g.styles = new Styles();
     g.styles.InitStyles();
 }
Exemple #4
0
        private static Expression GetNonPublicObject(object value, Type type)
        {
            var i = GlobalReference.GetIndex(value);

            return(Expression.Convert(
                       Expression.Call(
                           typeof(GlobalReference).GetMethod(nameof(GlobalReference.GetObject)),
                           Expression.Constant(i)),
                       type));
        }
        public static List <GlobalReference> getGlobReferences(int index)
        {
            Class.manageImg managerView = HttpContext.Current.Session["managerView"] as Class.manageImg;

            List <GlobalReference> globRefList = new List <GlobalReference>();

            for (int k = 0; k < managerView.allImages[index][0].GlobalReferences.Count(); k++)
            {
                GlobalReference GlobRef = new GlobalReference();
                GlobRef.PathImageMin     = "ShowImage.ashx?NqC3ke=4&tXt9X3=0&XwjRGm=1&Hsfke2=0&yAR8st=1&WkYTCe=" + obfuscate(managerView.allImages[index][0].GlobalReferences[k].PathImageMin);
                GlobRef.PathImageMax     = "ShowImage.ashx?NqC3ke=4&tXt9X3=0&XwjRGm=1&Hsfke2=0&yAR8st=1&WkYTCe=" + obfuscate(managerView.allImages[index][0].GlobalReferences[k].PathImageMax);
                GlobRef.DescriptionScale = managerView.allImages[index][0].GlobalReferences[k].DescriptionScale;
                GlobRef.ID_TypScale      = managerView.allImages[index][0].GlobalReferences[k].ID_TypScale;
                GlobRef.Idgroup          = managerView.allImages[index][0].GlobalReferences[k].Idgroup;
                globRefList.Add(GlobRef);
            }

            return(globRefList);
        }
Exemple #6
0
 public static void Clear()
 {
     Module = null;
     Runner = null;
     g      = null;
 }
Exemple #7
0
 public static void Init()
 {
     Module = new Module();
     Runner = new Runner(Module);
     g      = new GlobalReference();
 }
Exemple #8
0
 public static void Init()
 {
     Module = new Module();
     g      = new GlobalReference();
 }
Exemple #9
0
 public static void RunInMainThread(Runnable function)
 {
     GlobalReference.GetInstance().ExecutionQueue.Add(function);
 }
Exemple #10
0
 public virtual object Visit(GlobalReference that, object value)
 {
     throw new System.NotImplementedException();
 }