Esempio n. 1
0
        public MainForm()
        {
            InitializeComponent();

            this.timer1.Interval = 100;

            client1 = new SocketClient("127.1.1.1", 911, Program.ErrorLog, Program.DebugLog);
            client2 = new SocketClient("127.1.1.1", 911, Program.ErrorLog, Program.DebugLog);

            client1.SetValue("Testing", AssemblyInfo.Version, true);

            this.timer1.Enabled = true;

            this.socketMemCacheList1.Client = client1;
        }
Esempio n. 2
0
        void MakeSocketClick(object sender, EventArgs e)
        {
            for (var x=0;x<1000; x++)
            {
                for (var i = 0; i<100; i++)
                {
                    using(var client = new SocketClient("127.0.0.1", 911, Program.ErrorLog, Program.DebugLog))
                    {
                        client.SetValue("sarTesting", AssemblyInfo.Version, true);

                        Thread.Sleep(250);
                    }
                }

                System.GC.Collect();
                Thread.Sleep(1250);
            }
        }