Closed Last8Exile closed 2 years ago
@Last8Exile - Thank you. Sure will soon update the document. Until then this issue can be referred if someone else faces similar issue.
@imranmomin
It is possible to manually set ItemRequestOptions.EnableContentResponseOnWrite = true
on each request that needs it.
I try to find time to make pull request with forced content responses.
I updated from 1.3 to 2.0.1 and trying to use new CosmosDbStorage constructor with shared CosmosClient. But i got exception when Hangfire triggering recurring job scheduled with:
RecurringJob.AddOrUpdate("Test", ()=>Console.WriteLine("Test"), Cron.Minutely());
After investigation i figured out that
CosmosClientOptions.EnableContentResponseOnWrite
must be enabled to work properly. I disable that setting to save bandwidth, because i don't have triggers and post process in database.I think this should be mentioned in docs and CosmosDbStorage constructor should throw exception with proper message if this setting not enabled (until support for both cases are implemented).