GetSingleMessageCommandStatus() public static method

Дефолтная логика получения статуса команды производящей операции над единственным сообщением.
public static GetSingleMessageCommandStatus ( IServiceProvider serviceProvider, int messageId ) : CommandStatus
serviceProvider IServiceProvider
messageId int
return CommandStatus
Example #1
0
 public CommandStatus QueryGoToMessageCommandStatus(
     ICommandContext context, int?messageId)
 {
     return(ForumCommandHelper.GetSingleMessageCommandStatus(context, messageId)
            .UnavailableIfNot(
                () => Forums.Instance.ActiveForum == null ||
                ForumMessageCommandHelper.GetMessage(context, messageId).ForumID !=
                Forums.Instance.ActiveForum.ID));
 }
 public CommandStatus QueryMessageCommandStatus(ICommandContext context, int?messageId)
 {
     return(ForumCommandHelper.GetSingleMessageCommandStatus(context, messageId));
 }