public override void Configure(Container container) { JsConfig.EmitCamelCaseNames = true; JsConfig.DateHandler = DateHandler.ISO8601; OrmLiteConfig.DialectProvider = SqlServerOrmLiteDialectProvider.Instance; SqlServerDialect.Provider.GetStringConverter().UseUnicode = true; SqlServerDialect.Provider.GetDateTimeConverter().DateStyle = DateTimeKind.Utc; Plugins.Add(new SessionFeature()); Plugins.Add(new ValidationFeature()); container.Register<IDbConnectionFactory>(c => new AppDbConnectionFactory()); container.Register<IAppDbConnectionFactory>(c => new AppDbConnectionFactory()); container.Register<ICredentialsDbConnectionFactory>(c => new CredentialsDbConnectionFactory()); container.Register<ICacheClient>(new MemoryCacheClient { FlushOnDispose = false }); container.RegisterApplicationDependencies(); container.RegisterValidators(typeof(PlayerService).Assembly); ConfigureAuth(container); RegisterOrmLiteFilters(container); //CreateAuthDb(container); }