如何获取Azure FunctionApp绑定的返回绑定属性

时间:2019-03-11 10:14:17

标签: function azure reflection model-binding

我有功能:

[FunctionName("test-function")]
        [return: ServiceBus("topic-name", Connection = "connection-string")]
        public static Task<Message> TestFunction([TimerTrigger("%TimerSchedule%")]TimerInfo timer, ILogger log)
        {
            return Task.FromResult(new Message());
        }

如何通过反射获得 ServiceBus 属性,因为它不是方法CustomAttributes集合的一部分?

1 个答案:

答案 0 :(得分:1)

Getting Attribute Data For Return Value of .NET Method

#include<stdlib.h>

int main(){
    system("gnome-session-quit"); //logs out.
}