Пример #1
0
        static void SingleUpdate()
        {
            SimpleExample example = new SimpleExample();
            Guid          key     = example.CreateEntity();

            example.UpdateEntity(key);
        }
Пример #2
0
 static void ForceCollision()
 {
     SimpleExample example = new SimpleExample();
     Guid key = example.CreateEntity();
     Task.WaitAll(new[]
     {
         Task.Run(() => example.UpdateEntityWithDelay(key)),
         Task.Run(() => example.UpdateEntityWithDelay(key))
     });
 }
Пример #3
0
        static void ForceCollision()
        {
            SimpleExample example = new SimpleExample();
            Guid          key     = example.CreateEntity();

            Task.WaitAll(new[]
            {
                Task.Run(() => example.UpdateEntityWithDelay(key)),
                Task.Run(() => example.UpdateEntityWithDelay(key))
            });
        }
Пример #4
0
 static void SingleUpdate()
 {
     SimpleExample example = new SimpleExample();
     Guid key = example.CreateEntity();
     example.UpdateEntity(key);
 }