コード例 #1
0
        public static void BackgroundInstantiate(BackgroundInstantiateCallback Callback, string Address, ushort Port = 3999)
        {
            if (Callback == null)
            {
                return;
            }

            InstantiateParams instantiateParams = new InstantiateParams();

            instantiateParams.Callback = Callback;
            instantiateParams.Address  = Address;
            instantiateParams.Port     = Port;

            instantiateThread = new Thread(InstantiateProc);
            instantiateThread.Start(instantiateParams);
        }
コード例 #2
0
        public static void BackgroundInstantiate(BackgroundInstantiateCallback Callback, string PortName, bool UseNotifications, bool UseLpcdPolling)
        {
            if (Callback == null)
            {
                return;
            }

            InstantiateParams instantiateParams = new InstantiateParams();

            instantiateParams.Callback         = Callback;
            instantiateParams.PortName         = PortName;
            instantiateParams.UseNotifications = UseNotifications;
            instantiateParams.UseLpcdPolling   = UseLpcdPolling;

            instantiateThread = new Thread(InstantiateProc);
            instantiateThread.Start(instantiateParams);
        }