Esempio n. 1
0
 public T NewCommand <T>() where T : ICommand, new()
 {
     return(CommandPool <T> .Get());
 }
Esempio n. 2
0
 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()
     });
 }