예제 #1
0
        protected override IEnumerable <ActivityDescriptor> Describe()
        {
            yield return(ActivityDescriptor.ForTrigger <HttpRequestTrigger>(
                             Category,
                             T["HTTP Request Trigger"],
                             T["Triggers when an incoming HTTP request is received."],
                             T["Done"]));

            yield return(ActivityDescriptor.ForAction <HttpRequestAction>(
                             Category,
                             T["HTTP Request"],
                             T["Execute a HTTP request."],
                             T["Done"]));
        }
예제 #2
0
        protected override IEnumerable <ActivityDescriptor> Describe()
        {
            yield return(ActivityDescriptor.ForTrigger <HttpRequestTrigger>(
                             Category,
                             T["HTTP Request Trigger"],
                             T["Triggers when an incoming HTTP request is received."],
                             T["Done"]));

            yield return(ActivityDescriptor.For <HttpRequestAction>(
                             Category,
                             T["HTTP Request"],
                             T["Execute a HTTP request."],
                             false,
                             true,
                             a => a.SupportedStatusCodes.Select(x => T[x.ToString()])));

            yield return(ActivityDescriptor.ForAction <HttpResponseAction>(
                             Category,
                             T["HTTP Response"],
                             T["Write a HTTP response."],
                             T["Done"]));
        }