FubarDevelopment / FtpServer

Portable FTP server written in .NET
http://fubardevelopment.github.io/FtpServer/
MIT License
482 stars 163 forks source link

allow use with dot net 4.6 by not requiring dependency injection #39

Closed beppe9000 closed 6 years ago

beppe9000 commented 6 years ago

pls allow to use without DI

fubar-coder commented 6 years ago

Sorry, but this is not going to happen. The next major version will be implemented as a .NET Generic Host and will also use Span<T> and pipelines

beppe9000 commented 6 years ago

alright, we will adapt :)

Aida-Enna commented 6 years ago

This is the reason why I can't get var services = new IServiceCollection(); to work no matter what I do, isn't it? =/ Any news on this?

fubar-coder commented 6 years ago

You cannot instantiate an IServiceCollection, as it's just a non-COM interface. You need a ServiceCollection class as provided by the Microsoft.Extensions.DependencyInjection package or something that's compatible with it (e.g. AutoFac with support for the interfaces as defined in the Microsoft.Extensions.DependencyInjection.Abstractions package.