【问题标题】:Is it possible to add an Azure Functions project to a .Net Core Api Solution and use a common repository?是否可以将 Azure Functions 项目添加到 .Net Core Api 解决方案并使用公共存储库?
【发布时间】:2019-06-19 20:15:10
【问题描述】:

我们的团队拥有现有的 .Net Core API 解决方案。我想在 V2 函数项目中添加一系列函数应用程序。这将允许重用现有的数据库存储库。

这可能/合理吗?

【问题讨论】:

  • 这到底是因为什么而被否决的?

标签: api asp.net-core repository asp.net-core-webapi azure-function-app


【解决方案1】:

这是可能的,也是合理的。你可以只部署函数应用项目,并让它在 Azure 上运行。只要记住在依赖项目发生变化时重新部署即可。

【讨论】:

  • 我设置它并让它在本地编译,但它没有响应。假设我应该在问题中这么说......知道为什么它没有回应吗?
  • 部署时是否响应?如果它在 Azure 上运行,则可能存在防火墙/端口问题,无法在本地访问它。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-01-20
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-07-13
相关资源
最近更新 更多