@iliyan.tanev
can you help?
Thanks!
Hi!
This is my DependencyRegistrar.cs
namespace Nop.Plugin.Misc.NewReminderRules
{
public class DependencyRegistrar : IDependencyRegistrar
{
public virtual void Register(ContainerBuilder builder, ITypeFinder typeFinder)
{
builder.RegisterType<MakeCommentRulesService>().As<IReminderRule>().InstancePerHttpRequest();
builder.RegisterType<BuyMoreRulesService>().As<IReminderRule>().InstancePerHttpRequest();
}
public int Order
{
get { return 0; }
}
}
}
Btw, Im getting this error when click Run Now from customer reminder task, in task manager:
Exception type: ObjectDisposedException
Exception message: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it has already been disposed.
at Autofac.Core.Lifetime.LifetimeScope.CheckNotDisposed()
Im using InstancePerHttpRequest in DependencyRegistrar class (nop 3.3)
I have uninstalled and reinstalled my plugin, but same error.
help!
Is there a way to clear or truncate all messages sent? From Nop Admin (3.3).
Hi!
How to make page go to the top, after filtering and change page. I have 24 products page size and the scroll is big.
Thanks!
Forget it.
Delete topic is not working!
thanks!
Hi. Thanks!!
Can you show me a sample, please?
Ivan.
I have created a plugin, but my new reminders are not displayed in Reminder Rule list.
My plugin has 2 classes inside Services folder. Each for a new reminder I want.
Is the DependencyRegistrar file needed? How to create it, like this?
public virtual void Register(ContainerBuilder builder, ITypeFinder typeFinder)
{
builder.RegisterType<Reminder1Service>().As<IReminderRule>().InstancePerHttpRequest();
builder.RegisterType<Reminder2Service>().As<IReminderRule>().InstancePerHttpRequest();
}
Hi Boyko.
Thanks for the answer. In our case, we use CDN to load images, so, each ribbon comes from a differente cdn server, what is creating multiple requests.
You can enable CDN and see it happens by webpagetest.org.
Thanks!!
Hi there.
As you know, product ribbons do a lot of extra requests to get the ribbon images.
It makes one request for each ribbon from each product, that is a lot of requests.
So, should be nice use sprites or less request.
It makes site slowers and increase server usage.
Can you take a look?