Beispiel #1
0
        /// <summary>
        /// The on access denied.
        /// </summary>
        /// <returns>
        /// The <see cref="IEnumerable{CommandResponse}"/>.
        /// </returns>
        protected virtual IEnumerable<CommandResponse> OnAccessDenied()
        {
            var response = new CommandResponse
                               {
                                   Destination = CommandResponseDestination.PrivateMessage,
                                   Message = this.MessageService.RetrieveMessage(Messages.OnAccessDenied, this.CommandSource, null)
                               };

            return response.ToEnumerable();
        }