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 }); }
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")); }
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 }); }