System.ObjectDisposedException: 'Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it has already been disposed.'
The constructor for the SignalR is as followed:
public ChatHub()
{
this._connectionService = EngineContext.Current.Resolve<IConnectionService>();
}
I have registered the service in the Nop.Web.Framework.DependencyRegistrar
builder.RegisterType<ConnectionService>().As<IConnectionService>().InstancePerLifetimeScope();
I can't figure out why when the constructor is called the first time, it works perfectly but the second time it crashes with that error