locked
Function Filter Attributes & Dependency Injection RRS feed

  • Question

  • Hi,

    I'm looking at using the FunctionInvocationFilterAttribute to perform some preprocessing before the actual function runs. This all works fine and I understand how to configure it.

    My question is that if a singleton object is dependency injected into the main function, is there any way in which the FilterAttribute can gain access to this either by dependency injection or any other method.

    I've tried a few different methods none of which have worked, so am now wondering whether this is actually possible.

    Regards,

    Simon Tooley

    Wednesday, May 20, 2020 4:12 PM

All replies

  • Hello Simon - Function Filters is still in Preview so certain things simply may not be fully supported yet. Nonetheless, we'd be happy to dig deeper and find out where we stand on this scenario - please stay tuned while we repro and investigate.
    Monday, June 1, 2020 1:47 AM
  • Thanks Mike.
    Friday, June 5, 2020 2:33 PM