IProviderService::factory supports also inline annotated functions

@basarat now you should have guessed that I am playing quite a log with dependency injection ;)