When searching for how to set Request Scope as the default object scope, I could not find any code snippets to accomplish this.
I found many snippets that would set scope for an individual binding:
But no examples of how to set request scope as the default for all bindings.
Here is a code snippet of how I accomplished this:
kernel .Bind(i => i.FromThisAssembly() .SelectAllClasses() .BindDefaultInterface() .Configure(x => x.InRequestScope()));