Esempio n. 1
0
 public virtual T registerAsSingleton <T>(IInfoContext infoctx, string applicationType, string className, params object[] args)
 {
     if (isLoadable(infoctx, applicationType))
     {
         return((T)FunctionCaller.registerAsSingleton <T>(className, args));
     }
     return(default(T));
 }
Esempio n. 2
0
 public virtual void CleanAssemblyCache()
 {
     FunctionCaller.CleanAssemblyCache();
 }
Esempio n. 3
0
        public static T RegisterAsSingleton <T, K>(params object[] args)
        {
            Type clazz = typeof(K);

            return(FunctionCaller.registerAsSingleton <T>(clazz, args));
        }
Esempio n. 4
0
        public static T RegisterAsSingleton <T, K>()
        {
            Type clazz = typeof(K);

            return(FunctionCaller.registerAsSingleton <T>(clazz));
        }
Esempio n. 5
0
 /// <summary>
 /// Register a Singleton Class
 /// </summary>
 /// <typeparam name="T">Generic Type Interface </typeparam>
 /// <param name="className"> NameSpace and Class Name that Implement T. </param>
 /// <returns>Interface's implementation</returns>
 public static T RegisterAsSingleton <T>(string className)
 {
     return(FunctionCaller.registerAsSingleton <T>(className));
 }
Esempio n. 6
0
 /// <summary>
 /// Register a Singleton Class with its fields
 /// </summary>
 /// <typeparam name="T">Generic Type Interface </typeparam>
 /// <param name="className"> NameSpace and Class Name that Implement T. </param>
 /// <param name="args"> fields of this Class. </param>
 /// <returns>Interface's implementation</returns>
 public static T RegisterAsSingleton <T>(string className, params object[] args)
 {
     return(FunctionCaller.registerAsSingleton <T>(className, args));
 }
Esempio n. 7
0
 public CallerCoreMobile(IInfoContext infoctx)
 {
     this.infoctx     = infoctx;
     callerCoreMobile = this;
     functionCaller   = new FunctionCaller(this);
 }
Esempio n. 8
0
        public static T registerAsSingleton <T>(string className, params object[] args)
        {
            Type clazz = GetType(className);

            return(FunctionCaller.registerAsSingleton <T>(clazz, args));
        }