コード例 #1
0
        public ENetServer StartupInstance(ENetServer instance)
        {
            Console.WriteLine($"Starting up Instance {instance.InstanceId}");
            _logger.LogInformation("Starting up InstanceId {instance}", instance.InstanceId);

            _ENetServers[instance.InstanceId] = instance;
            instance.Run();
            return(instance);
        }
コード例 #2
0
 public void ShutdownInstance(ENetServer instance)
 => ShutdownInstance(instance.InstanceId);