Exemple #1
0
        public BusinessApiRegistry()
        {
            var config = new Configuration.Configuration();

            IncludeRegistry <ModelsRegistry>();
            IncludeRegistry <UtilsRegistry>();
            IncludeRegistry(new BusinessRegistry(config));
            For <ICacheManager <string, string> >().Use(new RedisManager(config.GetRedisUrl(), config.GetRedisExpiryMinutes()));
            For <ICacheStore>().Use <RedisCacheStore>()
            .Ctor <bool>().Is(true).Singleton();
            Scan(scan =>
            {
                scan.TheCallingAssembly();
                scan.WithDefaultConventions();
            });
        }