Пример #1
0
 /// <summary>
 /// 命令过滤器,如果为true,则发送命令,否则不发送
 /// </summary>
 /// <param name="e">The e.</param>
 /// <param name="commandBehaviorStorage">The Command behavior storage.</param>
 /// <returns></returns>
 protected virtual bool CommandFilter(IOperateCommand e, CommandBehaviorStorager commandBehaviorStorage)
 {
     return(true);
 }
Пример #2
0
 /// <summary>
 /// 命令过滤器,如果为true,则发送命令,否则不发送
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="command">The command</param>
 /// <param name="commandBehaviorStorage">The Command behavior storage.</param>
 /// <returns></returns>
 protected virtual bool CommandFilter <T>(T command, CommandBehaviorStorager commandBehaviorStorage) where T : ICommand
 {
     return(true);
 }