IotFeedbackBatchTrigger

所属分类:物联网
开发工具:C#
文件大小:24KB
下载次数:0
上传日期:2019-01-08 22:34:50
上 传 者sh-1993
说明:  简化Azure函数的创建,以捕获来自物联网中心客户端的完成和拒绝消息。
(Simplify creation of Azure Function to catch Complete & Reject message from your Iot Hub client.)

文件列表:
IotFeedbackBatchTrigger.sln (1854, 2019-01-09)
IotFeedbackBatchTrigger (0, 2019-01-09)
IotFeedbackBatchTrigger\FeedBackBacthWebJobsStartup.cs (390, 2019-01-09)
IotFeedbackBatchTrigger\FeedBackBatchWebJobsBuilderExtension.cs (487, 2019-01-09)
IotFeedbackBatchTrigger\FeedbackBatchExtensionConfig.cs (1094, 2019-01-09)
IotFeedbackBatchTrigger\FeedbackBatchTriggerAttributeBindingProvider.cs (1444, 2019-01-09)
IotFeedbackBatchTrigger\FeedbackBatchValueBinder.cs (868, 2019-01-09)
IotFeedbackBatchTrigger\IotFeedbackBatchTrigger.csproj (642, 2019-01-09)
IotFeedbackBatchTrigger\IotFeedbackBatchTrigger.nuspec (1074, 2019-01-09)
IotFeedbackBatchTrigger\IotFeedbackListener.cs (1942, 2019-01-09)
IotFeedbackBatchTrigger\IotFeedbackTriggerAttribute.cs (429, 2019-01-09)
IotFeedbackBatchTrigger\IotFeedbackTriggerBinding.cs (4463, 2019-01-09)
IotFeedbackBatchTrigger\IotFeedbackTriggerParameterDescriptor.cs (410, 2019-01-09)
LICENSE (1070, 2019-01-09)
TestFunction (0, 2019-01-09)
TestFunction\FeedbackListener.cs (616, 2019-01-09)
TestFunction\TestFunction.csproj (740, 2019-01-09)
TestFunction\host.json (24, 2019-01-09)
TestFunction\local.settings.json (219, 2019-01-09)
images (0, 2019-01-09)
images\AzureIoTHub.png (7387, 2019-01-09)
images\AzureIoTHub.svg (1881, 2019-01-09)

# IotFeedbackBatchTrigger Simplify creation of Azure Function to catch Complete & Reject message from your Iot Hub client. You will found a sample project named "TestFunction" in this repository. It is a project using the first version of the Azure Function SDK. ### Sample ```cs [FunctionName("FeedbackListener")] public static void Run([IotFeedbackTrigger] FeedbackBatch req, TraceWriter log) { if (req == null) return; foreach (var record in req.Records) { log.Info($"Device : {record.DeviceId}, MessageId: {record.OriginalMessageId}, Status: {record.StatusCode}"); } } ``` You can found documentation about the FeedbackBatch [here](https://github.com/JulienCroain/IotFeedbackBatchTrigger/blob/master/). The trigger will search after a setting named 'IotHubConnectionString' to connect to the Iot Hub ([see](https://github.com/JulienCroain/IotFeedbackBatchTrigger/blob/master//TestFunction/local.settings.json)). #Version 1.1.0 - [2018-01-08] ## Added Add support on Azure Functions SDK V2. If you use Azure Functions SDK V1 please keep version 1.0.0 #Version 1.0.0 Initial version

近期下载者

相关文件


收藏者