I believe that all UseMongoStorage(this ...) should return IGlobalConfiguration<MongoStorage> instead of MongoStorage object. In case you want to attach more extensions after initializing the MongoDb storage.
Trying to attach extensions before will case an exception JobStorage.Current property value has not been initialized. You must set it before using Hangfire Client or Server API.
'MongoStorage' does not contain a definition for '' and the best extension method overload '' requires a receiver of type 'IGlobalConfiguration'
Hi,
I believe that all
UseMongoStorage(this ...)
should returnIGlobalConfiguration<MongoStorage>
instead ofMongoStorage
object. In case you want to attach more extensions after initializing the MongoDb storage.Trying to attach extensions before will case an exception
JobStorage.Current property value has not been initialized. You must set it before using Hangfire Client or Server API.
'MongoStorage' does not contain a definition for '' and the best extension method overload '' requires a receiver of type 'IGlobalConfiguration'
Thanks