Example #1
0
        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);
        }
Example #2
0
 protected virtual void Add(IExternalModule externalModule)
 {
     _externalModules.Add(externalModule);
 }