public static IModulesFactory Use(this IModulesFactory factory, IExternalModule module) { if (module == null) { throw new ArgumentNullException(nameof(module)); } IConnectionFactory connectionFactory = module.ConnectionFactory; if (connectionFactory != null) { ConnectionStringFactory.Register(connectionFactory); } return(factory); }
protected virtual void Add(IExternalModule externalModule) { _externalModules.Add(externalModule); }