Example #1
0
 public void Describe(DescribeActionContext describe)
 {
     describe.For("Messaging", T("Messaging"), T("Send Templated Messages"))
     .Element(
         "SendTemplatedMessage", T("Send templated message"), T("Sends a templated message using a selected layout through the selected channel."), Send,
         DislayAction, "ActionTemplatedMessage");
 }
        public IEnumerable <TypeDescriptor <ActionDescriptor> > DescribeActions()
        {
            var context = new DescribeActionContext();

            foreach (var provider in _actionProviders)
            {
                provider.Describe(context);
            }
            return(context.Describe());
        }
        public void Describe(DescribeActionContext describe)
        {
            describe.For("Notification", T("Notification"), T("Notifications"))
            .Element(
                "Notify",
                T("Notify"),
                T("Display a message."),
                context => {
                var notification = context.Properties["notification"];
                var message      = context.Properties["message"];

                message = _tokenizer.Replace(message, context.Tokens);

                var notificationType = (NotifyType)Enum.Parse(typeof(NotifyType), notification);
                _notifier.Add(notificationType, T(message));

                return(true);
            },
                context => T("Displays \"{1}\" as {0}", T(context.Properties["notification"]).Text, T(context.Properties["message"]).Text),
                "ActionNotify");
        }
 public void Describe(DescribeActionContext context)
 {
     context.For("System", T("System"), T("System"))
     .Element("Delayed", T("Delayed Action"), T("Triggers some actions after a specific amount of time."), CreateDelayedAction, DisplayDelayedAction, "ActionDelay");
 }
Example #5
0
 public void Describe(DescribeActionContext describe)
 {
     describe.For("Comments")
     .Element("DisqusImportComments", T("Import Disqus Comments"), T("Import comments from Disqus."),
              ImportCommentsFromDisqus, context => T("Import comments from Disqus"));
 }