Ejemplo n.º 1
0
 public IEnumerable<TypeDescriptor<ActionDescriptor>> DescribeActions() {
     var context = new DescribeActionContext();
     foreach (var provider in _actionProviders) {
         provider.Describe(context);
     }
     return context.Describe();
 }
Ejemplo n.º 2
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"));
        }
 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 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");
 }
 public void Describe(DescribeActionContext context)
 {
     context.For("System", T("System"), T("System"))
         .Element("FieldsTrigger", T("Ações sensiveis ao contexto"), T("Ações sensiveis ao contexto"), Action, Display, "ActionFieldsTrigger");
 }
Ejemplo n.º 7
0
        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, actionContext => T("Triggers \"{0}\" in {1}", "foo", "bar"), "ActionDelay");
//                .Element("Scheduled", T("Scheduled Action"), T("Triggers some actions at a specific date and time."), CreateScheduledAction, actionContext => T("Triggers \"{0}\" on {1}", "foo", "bar"), "ActionSchedule");
        }
Ejemplo n.º 8
0
 public void Describe(DescribeActionContext describe) {
     describe.For("Pushover", T("Pushover"), T("Pushover"))
         .Element("Push", T("Send Pushover Message"), T("Sends a Pushover message to the selected user"),
                  Push, context => T("Send Pushover Message"), "PushoverMessageSettings");
 }