public T NewCommand <T>() where T : ICommand, new() { return(CommandPool <T> .Get()); }
public void AddCommand <T>(long id, T command) where T : ICommand, new() { Commands.Enqueue(new CommandEntity { Id = id, Type = CommandType.Normal, Command = command, Pool = CommandPool <T> .GetPool() }); }