Closed lfalck closed 5 years ago
Hi!
When i build the service provider with validation of scopes like this: services.BuildServiceProvider(validateScopes: true)
services.BuildServiceProvider(validateScopes: true)
I get this error: Cannot resolve scoped service 'FubarDev.FtpServer.Commands.IFtpCommandHandlerProvider' from root provider.
Cannot resolve scoped service 'FubarDev.FtpServer.Commands.IFtpCommandHandlerProvider' from root provider.
ValidateScopes is also true when using CreateDefaultBuilder in ASP.NET Core which is where i encountered the issue.
Here is a minimal example of the issue, if i remove validateScopes i can connect but with it the application crashes.
Great work with 3.0, looking foward to the release!
/Ludvig
Fixed in RC5 (should be available soon)
Great, thanks!
Hi!
When i build the service provider with validation of scopes like this:
services.BuildServiceProvider(validateScopes: true)
I get this error:
Cannot resolve scoped service 'FubarDev.FtpServer.Commands.IFtpCommandHandlerProvider' from root provider.
ValidateScopes is also true when using CreateDefaultBuilder in ASP.NET Core which is where i encountered the issue.
Here is a minimal example of the issue, if i remove validateScopes i can connect but with it the application crashes.
Great work with 3.0, looking foward to the release!
/Ludvig