public static GetSingleMessageCommandStatus ( IServiceProvider serviceProvider, int messageId ) : CommandStatus | ||
serviceProvider | IServiceProvider | |
messageId | int | |
return | CommandStatus |
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)); }