示例#1
0
 public static void ExecuteSafely <TIdentity>(IAggregate <TIdentity> self, IEnumerable <ISampleCommand> commands)
     where TIdentity : IIdentity
 {
     foreach (var hubCommand in commands)
     {
         self.Execute((ICommand <TIdentity>)hubCommand);
     }
 }