【发布时间】:2017-10-01 18:02:41
【问题描述】:
我想构建一个 Azure Function 来响应来自另一个 Azure 函数的 HTTP POST 请求,即 MasterFunction 调用 NotificationsFunction。
说,我有以下简单的 POCO 对象:
public class Car
{
public string Make { get; set; }
public string Model { get; set; }
public int Year { get; set; }
public int Mileage { get; set; }
}
两个函数将共享包含这些 POCO 对象的同一个类库。
我是否可以假设在MasterFunction 中,我必须将我的Car 对象序列化为JSON,然后进行HTTP 调用?
谁能给我一些类似场景的代码示例?
【问题讨论】:
标签: azure azure-functions