///// <summary> ///// Adds the manual registration. ///// </summary> ///// <param name="services">The services.</param> public static void AddManualRegistration(this IServiceCollection services) { services.AddTransient <IUnitOfWork, UnitOfWork>(); services.AddTransient <DbContext, SolutionOwnerDbContext>(); services.AddTransient <RI.Framework.Core.Logging.Contracts.ILoggerExtension, LoggerExtension>(); services.AddScoped(typeof(IAuditLogger), (p) => { var auditLogger = new AuditLogger(); var dbContext = p.GetService(typeof(DbContext)); auditLogger.Init(dbContext); return(auditLogger); }); }