예제 #1
0
        private void bgWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            SParams parm = new SParams();

            parm.base_url  = tbUrl.Text;
            parm.test_mode = scantype;

            parm.get_uri          = textBox1.Text;
            parm.post_uri         = textBox3.Text;
            parm.post_data        = textBox4.Text;
            parm.options_uri      = textBox6.Text;
            parm.delete_uri       = textBox5.Text;
            parm.head_uri         = textBox2.Text;
            parm.put_uri          = textBox7.Text;
            parm.put_path         = textBox8.Text;
            parm.wrongmethod_met  = textBox9.Text;
            parm.wrongversion_ver = textBox10.Text;
            parm.trace_uri        = textBox11.Text;
            parm.connect_uri      = textBox12.Text;
            parm.propfind_uri     = textBox13.Text;

            for (int i = 0; i < rbs.Length; i++)
            {
                parm.test_names[i] = rbs[i].Text;
            }

            this._HttpScanner.Scan(bgWorker, parm);
        }
예제 #2
0
        void DeviceNotificationManager_OnSessionStarted(AttractionSessionStarted attractionSessionStarted)
        {
            if (AttractionDeviceManager.instance.CurrentDeviceType != DeviceType.Terminal)
            {
                if (MultiPlayerGame)
                {
                    StartHost();
                }
            }
            else
            {
                AttractionDeviceManager.instance.ResetCurrentSessionData();
                SParams.intialized = false;
                SParams.ResetAbilityCards();
            }

            if (OnCurrentSessionStarted != null)
            {
                OnCurrentSessionStarted(attractionSessionStarted);
            }
        }