public EventStreamBackedClassifierParameterDescriptor()
 {
     DisplayHints = new ParameterDisplayHints()
     {
         Description = "Trigger for an event stream backed classifier orchestration",
         Prompt      = "Trigger for the specified classifier"
     };
 }
        /// <summary>
        /// Returns a ParameterDescriptor describing the parameter.
        /// </summary>
        /// <remarks>
        /// The ParameterDescriptor is the mechanism used to integrate with the WebJobs SDK
        /// Dashboard - it can return ParameterDisplayHints which dictate how the parameter
        /// is shown in the Dashboard.
        /// </remarks>
        public ParameterDescriptor ToParameterDescriptor()
        {
            ParameterDisplayHints displayHints = new ParameterDisplayHints()
            {
                Description = "Trigger for an event stream backed classifier orchestration",
                Prompt      = "Trigger for the specified classifier"
            };

            return(new EventStreamBackedClassifierParameterDescriptor
            {
                Name = this.parameterInfo.Name,
                Type = nameof(EventStreamBackedClassifierOrchestrator),
                DisplayHints = displayHints
            });
        }
예제 #3
0
        internal static ParameterDisplayHints CreateParameterDisplayHints(string entityPath, bool isInput)
        {
            ParameterDisplayHints descriptor = new ParameterDisplayHints();

            descriptor.Description = isInput ?
                                     string.Format(CultureInfo.CurrentCulture, "dequeue from '{0}'", entityPath) :
                                     string.Format(CultureInfo.CurrentCulture, "enqueue to '{0}'", entityPath);

            descriptor.Prompt = isInput ?
                                "Enter the queue message body" :
                                "Enter the output entity name";

            descriptor.DefaultValue = isInput ? null : entityPath;

            return(descriptor);
        }
        internal static ParameterDisplayHints CreateParameterDisplayHints(string channelOrKey, Mode mode, bool isInput)
        {
            ParameterDisplayHints descriptor = new ParameterDisplayHints();

            if (mode == Mode.PubSub)
            {
                descriptor.Description = isInput
                    ? string.Format(CultureInfo.CurrentCulture, "publish to channel '{0}'", channelOrKey)
                    : string.Format(CultureInfo.CurrentCulture, "subscribe to channel '{0}'", channelOrKey);
            }
            else
            {
                descriptor.Description = isInput
                    ? string.Format(CultureInfo.CurrentCulture, "key to get from cache '{0}'", channelOrKey)
                    : string.Format(CultureInfo.CurrentCulture, "key to add to cache'{0}'", channelOrKey);
            }
            descriptor.Prompt = isInput ?
                                "Enter the channel name" :
                                "Enter the key name";

            descriptor.DefaultValue = isInput ? null : channelOrKey;

            return(descriptor);
        }
예제 #5
0
            internal static ParameterDisplayHints CreateParameterDisplayHints(string channelOrKey, Mode mode, bool isInput)
            {
                ParameterDisplayHints descriptor = new ParameterDisplayHints();

                if (mode == Mode.PubSub)
                {
                    descriptor.Description = isInput ?
                        $"publish to channel '{channelOrKey}'" :
                        $"subscribe to channel '{channelOrKey}'";
                }
                else
                {
                    descriptor.Description = isInput ?
                        $"key to get from cache '{channelOrKey}'" :
                        $"key to add to cache'{channelOrKey}'";
                }
                descriptor.Prompt = isInput ?
                    "Enter the channel name" :
                    "Enter the key name";

                descriptor.DefaultValue = isInput ? null : channelOrKey;

                return descriptor;
            }
 public DisplayHintsParameterSnapshot(ParameterDisplayHints displayHints)
 {
     DisplayHints = displayHints;
 }
 public DisplayHintsParameterSnapshot()
 {
     DisplayHints = new ParameterDisplayHints();
 }
예제 #8
0
 public DisplayHintsParameterSnapshot(ParameterDisplayHints displayHints)
 {
     DisplayHints = displayHints;
 }
예제 #9
0
 public DisplayHintsParameterSnapshot()
 {
     DisplayHints = new ParameterDisplayHints();
 }