I am studying the eShopOnContainers project on Microsoft. here is a line that injects IIntegrationEventLogService
in startup via this line:
services.AddTransient<Func<DbConnection, IIntegrationEventLogService>>(
sp => (DbConnection c) => new IntegrationEventLogService(c));
you can also see the whole class and project here on Github.
I would like to know the reason for using <Func<DbConnection, IIntegrationEventLogService>>( sp => (DbConnection c) => new IntegrationEventLogService(c))
and some declaration about syntax!