Ejemplo n.º 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 });
        }
Ejemplo n.º 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"));
        }
Ejemplo n.º 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 });
        }