Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Not 100% but I think you need to wait for future Epi versions to be able to do that.
I solved this issue by creating a new base controller to be used instead of BlockController:
public abstract class AsyncBlockController<TContentData> : ActionControllerBase, IRenderTemplate<TContentData> where TContentData : IContentData { public abstract Task<ActionResult> Index(TContentData currentContent); }
Hi,
I need the Index method of my blockcontroller to be async but since the base class already has a Index method that is sync this seems impossible. Anyone an idea how to fix this?
The end result I'm looking for will be something like this:
public class MyAsyncBlockController : BlockController
{
public async Task Index(MyAsyncBlock currentBlock)
{
// async code
}
}