【问题标题】:How can I add known type to Azure Functions, as there is no app config由于没有应用配置,如何将已知类型添加到 Azure Functions
【发布时间】:2017-11-28 02:16:48
【问题描述】:

我在应用配置中有一些已知类型。如果我想将我的代码移动到 Azure Function,我可以在哪里添加这些值

      <knownType type="ImardaAtomGatewayBusiness.AccelerationPart, ImardaAtomGatewayBusinessInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
      <knownType type="ImardaAtomGatewayBusiness.AckPart, ImardaAtomGatewayBusinessInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
      <knownType type="ImardaAtomGatewayBusiness.AnalogInputPart, ImardaAtomGatewayBusinessInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" /

【问题讨论】:

标签: c# azure-functions


【解决方案1】:

您无法通过配置文件执行此操作,因为您无法控制 Azure Functions 的 app.config 文件。

因此,您必须在代码中执行此操作。一些想法可以在this question找到。

【讨论】:

    猜你喜欢
    • 2017-03-08
    • 1970-01-01
    • 2011-07-21
    • 2011-01-25
    • 1970-01-01
    • 2019-06-10
    • 1970-01-01
    • 2019-09-30
    • 1970-01-01
    相关资源
    最近更新 更多