IContentmentDataSource.GetItems
does not support Async
#456
Replies: 1 comment 1 reply
-
@warrenbuckley Thanks for raising this. I've moved it over to a discussion, as it's not a bug per se, so it'd be good to explore how this feature request could be implemented. I know were in an age of "async all the things", and I'm happy to add support for this, but trying to understand the balance of those scenarios that don't require the data-source to be async (just regular sync). Otherwise the opposite of what you outline would happen, with people wrapping their non-async code with Maybe the answer is having both sync/async C# interfaces, then people can pick whichever they want and the Data List code can figure out which one to use? 🤔 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Which Contentment version are you using?
6.0.0-alpha006
Which Umbraco version are you using? For example: 13.2.1 - don't just write v13
15.3.1
Bug summary
I am trying to port some Custom Data Source over as getting the deprecation warning from Umbraco that ILocalizationService is being deprecated and that replacements of ILanguageService and IDictionaryItemService methods are async.
Steps to reproduce
Newly ported code
Note the
.Result
in theGetItems
methodExpected result / actual result
For it to allow me to support working with Async code easier
Do you have Umbraco ModelsBuilder enabled?
What browsers are you seeing the problem on?
No response
Beta Was this translation helpful? Give feedback.
All reactions