Example #1
0
        private static void Client_OnNewObject(DistClient sender, DistObject o, DistSession session)
        {
            if (object_counter == 0)
            {
                new_object_timer = new Timer();
            }

            object_counter++;

            sender.SubscribeAttributes(o, true);

            if (object_counter == OBJECTS)
            {
                Console.WriteLine($"Got {OBJECTS} new objects in {new_object_timer.GetTime()} seconds -> Frequency: {new_object_timer.GetFrequency(OBJECTS)} ");
                object_counter = 0;
            }
        }
 private static void Client_OnNewObject(DistClient sender, DistObject o, DistSession session)
 {
     sender.SubscribeAttributes(o, true);
 }