Example #1
0
        public static void Init(Assembly[] asmList)
        {
            RpcUtil.Init();

#if !CLIENT
            CacheConfig.Init();
#endif

            Global.TypeManager.ScanAssemblies(asmList);
            Global.TypeManager.ScanAssemblies(new Assembly[] { typeof(Global).Assembly });
        }
Example #2
0
        protected void Application_Start()
        {
            GlobalConfiguration.Configure(WebApiConfig.Register);
            Container container = SimpleInjectorConfig.RegisterContainer();

            CacheConfig.Init(container);
            AutoMapperConfig.RegisterMappings(
                Assembly.GetExecutingAssembly(),
                Assembly.Load("SportsBetting.Handlers.Queries"),
                Assembly.Load("SportsBetting.Handlers.Commands"));
        }
Example #3
0
        public static void Init(RuntimeConfig cfg, Assembly[] asmList)
        {
            RpcUtil.Init();

#if !CLIENT && USE_REDIS_IDMANAGER
            CacheConfig.Init();
#endif
            _cfg = cfg;

            Global.TypeManager.ScanAssemblies(asmList);
            Global.TypeManager.ScanAssemblies(new Assembly[] { typeof(Global).Assembly });
        }