Class CommandResponseExtensions
Extensions for page command response.
public static class CommandResponseExtensions
- Inheritance
-
objectCommandResponseExtensions
Methods
AddErrorMessage<TCommandResponse>(TCommandResponse, string)
Adds an error message to be displayed in the administration.
public static TCommandResponse AddErrorMessage<TCommandResponse>(this TCommandResponse commandResponse, string message) where TCommandResponse : ICommandResponse
Parameters
commandResponseTCommandResponseCommand response returned from page command.
messagestringMessage text to be displayed.
Returns
- TCommandResponse
Type Parameters
TCommandResponse
AddErrorMessage<TCommandResponse>(TCommandResponse, string, bool)
Adds an error message to be displayed in the administration.
public static TCommandResponse AddErrorMessage<TCommandResponse>(this TCommandResponse commandResponse, string message, bool messageAsHtml) where TCommandResponse : ICommandResponse
Parameters
commandResponseTCommandResponseCommand response returned from page command.
messagestringMessage text to be displayed.
messageAsHtmlboolIndicates whether
messagecontains HTML markup that should be rendered as HTML.
Returns
- TCommandResponse
Type Parameters
TCommandResponse
AddInfoMessage<TCommandResponse>(TCommandResponse, string)
Adds an information message to be displayed in the administration.
public static TCommandResponse AddInfoMessage<TCommandResponse>(this TCommandResponse commandResponse, string message) where TCommandResponse : ICommandResponse
Parameters
commandResponseTCommandResponseCommand response returned from page command.
messagestringMessage text to be displayed.
Returns
- TCommandResponse
Type Parameters
TCommandResponse
AddInfoMessage<TCommandResponse>(TCommandResponse, string, bool)
Adds an information message to be displayed in the administration.
public static TCommandResponse AddInfoMessage<TCommandResponse>(this TCommandResponse commandResponse, string message, bool messageAsHtml) where TCommandResponse : ICommandResponse
Parameters
commandResponseTCommandResponseCommand response returned from page command.
messagestringMessage text to be displayed.
messageAsHtmlboolIndicates whether
messagecontains HTML markup that should be rendered as HTML.
Returns
- TCommandResponse
Type Parameters
TCommandResponse
AddMessage<TCommandResponse>(TCommandResponse, string, CommandResponseMessageLevel)
Adds a message to the page command response to be displayed in the administration UI.
public static TCommandResponse AddMessage<TCommandResponse>(this TCommandResponse commandResponse, string message, CommandResponseMessageLevel messageLevel) where TCommandResponse : ICommandResponse
Parameters
commandResponseTCommandResponseCommand response returned from page command.
messagestringMessage text to be displayed.
messageLevelCommandResponseMessageLevelSignifies the variant of the displayed message in the UI.
Returns
- TCommandResponse
Type Parameters
TCommandResponse
AddMessage<TCommandResponse>(TCommandResponse, string, CommandResponseMessageLevel, bool)
Adds a message to the page command response to be displayed in the administration UI.
public static TCommandResponse AddMessage<TCommandResponse>(this TCommandResponse commandResponse, string message, CommandResponseMessageLevel messageLevel, bool messageAsHtml) where TCommandResponse : ICommandResponse
Parameters
commandResponseTCommandResponseCommand response returned from page command.
messagestringMessage text to be displayed.
messageLevelCommandResponseMessageLevelSignifies the variant of the displayed message in the UI.
messageAsHtmlboolIndicates whether
messagecontains HTML markup that should be rendered as HTML.
Returns
- TCommandResponse
Type Parameters
TCommandResponse
AddSuccessMessage<TCommandResponse>(TCommandResponse, string)
Adds a success message to be displayed in the administration.
public static TCommandResponse AddSuccessMessage<TCommandResponse>(this TCommandResponse commandResponse, string message) where TCommandResponse : ICommandResponse
Parameters
commandResponseTCommandResponseCommand response returned from page command.
messagestringMessage text to be displayed.
Returns
- TCommandResponse
Type Parameters
TCommandResponse
AddSuccessMessage<TCommandResponse>(TCommandResponse, string, bool)
Adds a success message to be displayed in the administration.
public static TCommandResponse AddSuccessMessage<TCommandResponse>(this TCommandResponse commandResponse, string message, bool messageAsHtml) where TCommandResponse : ICommandResponse
Parameters
commandResponseTCommandResponseCommand response returned from page command.
messagestringMessage text to be displayed.
messageAsHtmlboolIndicates whether
messagecontains HTML markup that should be rendered as HTML.
Returns
- TCommandResponse
Type Parameters
TCommandResponse
AddWarningMessage<TCommandResponse>(TCommandResponse, string)
Adds a warning message to be displayed in the administration.
public static TCommandResponse AddWarningMessage<TCommandResponse>(this TCommandResponse commandResponse, string message) where TCommandResponse : ICommandResponse
Parameters
commandResponseTCommandResponseCommand response returned from page command.
messagestringMessage text to be displayed.
Returns
- TCommandResponse
Type Parameters
TCommandResponse
AddWarningMessage<TCommandResponse>(TCommandResponse, string, bool)
Adds a warning message to be displayed in the administration.
public static TCommandResponse AddWarningMessage<TCommandResponse>(this TCommandResponse commandResponse, string message, bool messageAsHtml) where TCommandResponse : ICommandResponse
Parameters
commandResponseTCommandResponseCommand response returned from page command.
messagestringMessage text to be displayed.
messageAsHtmlboolIndicates whether
messagecontains HTML markup that should be rendered as HTML.
Returns
- TCommandResponse
Type Parameters
TCommandResponse
UseCommand<TCommandResponse>(TCommandResponse, string)
Invokes specified command from the client template.
public static TCommandResponse UseCommand<TCommandResponse>(this TCommandResponse commandResponse, string commandName) where TCommandResponse : ICommandResponse
Parameters
commandResponseTCommandResponseCommand response returned from page command.
commandNamestringName of the command.
Returns
- TCommandResponse
Type Parameters
TCommandResponse