示例#1
0
        protected override async Task <Hades.AclService> GetAclServiceAsync()
        {
            var manager = new SqlServerManager(AppSettings.ConnectionString);
            await manager.CreateDatabaseSchemaAsync();

            return(new Hades.AclService(manager));
        }
        protected override async Task <IAclManager> GetManagerAsync()
        {
            var manager = new SqlServerManager(AppSettings.ConnectionString);

            if (!_isSchemaCreated)
            {
                await manager.CreateDatabaseSchemaAsync();

                _isSchemaCreated = true;
            }
            return(manager);
        }