Exemplo n.º 1
0
        private void Run()
        {
            channel = new Channel(host, port, ChannelCredentials.Insecure);
            client  = new multiUserSync.multiUserSyncClient(channel);
            DateTime time = DateTime.Now;

            while (!stop || channel.State != ChannelState.Shutdown)             //The synchronization happens in the while loop
            {
                SetUser(firstUser);
                GetUser(firstUserId);                 //Trick to get user which is NOT equal firstUserId, details see implementation on server
            }

            channel.ShutdownAsync().Wait();
        }
        private void Run()
        {
            channel = new Channel(host, port, ChannelCredentials.Insecure);
            client  = new multiUserSync.multiUserSyncClient(channel);

            while (!stop || channel.State != ChannelState.Shutdown)             //The synchronization happens in the while loop
            {
                SetTracker(tracker);
                if (trackerIsActive == false)
                {
                    GetTracker(00);                     //Trick to get user which is NOT equal firstUserId, details see implementation on server
                    strangeTrackerIsActive = true;
                }
            }

            channel.ShutdownAsync().Wait();
        }