常用方法
常用方法
常用方法
常用方法
public static void ExecuteSafely <TIdentity>(IAggregate <TIdentity> self, IEnumerable <ISampleCommand> commands) where TIdentity : IIdentity { foreach (var hubCommand in commands) { self.Execute((ICommand <TIdentity>)hubCommand); } }