Elfocrash / Cosmonaut

🌐 A supercharged Azure CosmosDB .NET SDK with ORM support
https://cosmonaut.readthedocs.io
MIT License
341 stars 44 forks source link

Error because constructor is missing for the CosmosStoreTrigger extension for azure functions #131

Open sandromastronardi opened 4 years ago

sandromastronardi commented 4 years ago

When I use the CosmosStoreTrigger in my function to trigger when a document changes, I get this error when the function app starts: The 'xxx' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'xxx'. Cosmonaut.WebJobs.Extensions: Method not found: 'Void Cosmonaut.CosmosStoreSettings..ctor(System.String, System.Uri, System.String, Microsoft.Azure.Documents.Client.ConnectionPolicy, Microsoft.Azure.Documents.IndexingPolicy, Int32, Boolean, Int32)'.

Apparently, at some point some constructors were removed, but the NuGet wasn't updated? It's still in preview, but now it just doesn't work... I tried taking an earlier version (2.9.0) but It didn't help, I guess it wasn't far enough back, but I'd rather use a more recent version.

I tried pinpointing it in the code, but couldn't seem to find where it is caused...

Regards,

Sandro Mastronardi