예제 #1
0
        public static bool EnsureMainProcess(Action action)
        {
            ICommService service = GetChannel();

            if (service != null && service.IsMainProcess())
            {
                return(true);
            }
            ExecuteOnMainProcess(action, false);
            return(false);
        }