0

I have some knowntype in app config. If i wanna move my code to Azure Function, where can I add those value

      <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" /
Lawrence song
  • 158
  • 1
  • 15
  • this might help, guide to referencing assemblies in azure functions https://blogs.msdn.microsoft.com/benjaminperkins/2017/04/13/how-to-add-assembly-references-to-an-azure-function-app/ – Matthew Thurston Nov 28 '17 at 02:37
  • I know how to assembly the reference, but how does it work with knowntype – Lawrence song Nov 28 '17 at 02:48

1 Answers1

1

You cannot do this via a config file, since there's no app.config file for Azure Functions that you can control.

So, you would have to do that in code. Some ideas can be found in this question.

Mikhail Shilkov
  • 34,128
  • 3
  • 68
  • 107