public void Run(params object[] args)
 {
     _appDomain = AppDomain.CurrentDomain.Clone(typeof(T).ToString(), GetType().GetAssemblyPath());
     _activator = RemoteActivator.CreateInstance <ChronosApplicationLauncher <T> >(_appDomain);
     _activator.Run(args);
 }
Example #2
0
        public static object InvokeStaticMember(this AppDomain appDomain, Type type, string name, BindingFlags flags, params object[] args)
        {
            RemoteExecutor executor = RemoteActivator.CreateInstance <RemoteExecutor>(appDomain);

            return(executor.InvokeStaticMember(type, name, flags, args));
        }