/
Commands within the client

Commands within the client

General

antony provides a general way to display commands to out clients. This might be within a ribbonbar, contextmenu or f.e. toolbar. Every provided ExtensionPoint which provides an command deviates from an IAntonyCommand. This contains some general Information to get the command displayed.

AntonyCommandInfo

As the main part of this interface you need to provide an AntonyCommandInfo object holding the essential presentation information. This includes the displayName of your action, Group- and Pagename and an icon. To create this class we recommend to use the AntonyCommandInfoBuilder with comes with the https://www.nuget.org/packages/antony.Groupware.ExtensionInterfaces.

This build is used as a builder is used. The code snippet shows an example

public AntonyCommandInfo ActionInfo => new AntonyCommandInfoBuilder() .WithDisplayName("My static or dynamic displayname"") .WithGeneralPageName() .WithGroupName("My RibbonBar Groupname (if provided)") .WithSvgImage(Resources.my_image_as_svg) .Build();

Reporter

antony passes an IProgressReporter to report progress to. It is a mix of creating a protocol and logging. If you use the “Report…” Methods this will be displayed to the AntUser. If you use the “Log…” methods this will only write into the log files.

These interface is only implemented in the AntonyHub. The AntonyGroupware Commands will get a Reporter which reports to log file.

Conclusion

Its not difficult to add a command to antony. As we use the same classes within alle commands, it should be easy to reuse them.

 

Related content

Navigate to a configuration view
Navigate to a configuration view
More like this
Create a ICallCommand
Create a ICallCommand
More like this
Howto provide a Command from the Dashboard.
Howto provide a Command from the Dashboard.
More like this
Create a command within an flexobject
Create a command within an flexobject
More like this
Howto write an antony registry
Howto write an antony registry
More like this
Howto write an ChatCommand
Howto write an ChatCommand
More like this